#include<iostream.h>
int x, nr, s;
main()
{cout<<"x=";
cin>>x;
nr=0;
s=0;
while(x!=0)
{if(x<0)
{nr++;
s=s+x;}
cout<<endl<<"x=";
cin<<x;}
cout<<"numarul elementelor negative="<<nr<<endl<<"suma elementelor negative="<<s;
}
E in C++, pentru MinGW, tu ce program folosesti?