Main.cc: In function 'int main()':
Main.cc:11:9: error: redeclaration of 'int s'
int s=a%1000/100;
^
Main.cc:10:9: note: 'int s' previously declared here
int s=a%100/10;
^
Main.cc:12:12: error: 'b' was not declared in this scope
if(g>s+b+q)num++
^
Main.cc:13:4: error: expected ';' before '}' token
}
^