Main.cc: In function 'int main()': Main.cc:6:5: error: 's' was not declared in this scope s=a/100+a%10+(a/10-a/100*10) ^