TOPIC

10% error C++

afscampos asked 5 years ago

include

using namespace std;

main(){

long long escolha=1,n1=0,n2=0,teste=1,v1,v2;

for(;;){ cin>>escolha; if(escolha==0){ break; } cout<<"Teste "<<teste<<endl; for(int i =0;i<escolha;i++){ cin>>v1>>v2; n1+=v1; n2+=v2; cout<<n1-n2<<endl; } cout<<endl; escolha++; } }

This topic was solved and cannot recieve new replies.