Main.cc: In function 'int main()': Main.cc:6:5: error: 's' was not declared in this scope s=n-y/x ^ Main.cc:4:15: warning: unused variable 'a' [-Wunused-variable] int n,x,y,a; ^