Main.cc: In function 'int main()': Main.cc:6:5: error: 's' was not declared in this scope s=y%x; ^ Main.cc:7:5: error: 'c' was not declared in this scope c=n-s; ^