Main.cc: In function 'int main()': Main.cc:5:2: error: expected initializer before 'cin' cin>>n>>x>>y; ^ Main.cc:6:11: error: 'y' was not declared in this scope int s= n-y/x; ^