Main.cc: In function 'int main()':
Main.cc:15:14: error: redeclaration of 'int b'
int a,b,g,s,b,q,cnt=0;
^
Main.cc:15:8: note: 'int b' previously declared here
int a,b,g,s,b,q,cnt=0;
^
Main.cc:17:17: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++){
^
Main.cc:18:7: error: 'm' was not declared in this scope
g = m%10;
^