Main.cc: In function 'int main()': Main.cc:5:9: error: 's' was not declared in this scope cin>>n,s=0; ^