Main.cc: In function 'int main()': Main.cc:11:15: error: expected unqualified-id before ';' token int n,x,y,; ^ Main.cc:16:20: error: lvalue required as left operand of assignment else if(n-(y/x)=0){ ^ Main.cc:12:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d",&n,&x,&y); ^