Main.cc: In function 'int main()':
Main.cc:12:3: error: 'x' was not declared in this scope
x=1;
^
Main.cc:19:8: error: 'i' was not declared in this scope
cout>>i;
^
Main.cc:7:10: warning: unused variable 'n' [-Wunused-variable]
int s=0,n;
^