Main.cc: In function 'int main()': Main.cc:8:9: error: expected ';' before 'a' cin a,b; ^ Main.cc:8:12: warning: statement has no effect [-Wunused-value] cin a,b; ^ Main.cc:10:7: error: 'b' was not declared in this scope d=b/a; ^ Main.cc:10:9: error: 'a' was not declared in this scope d=b/a; ^ Main.cc:13:18: error: no match for call to '(std::ostream {aka std::basic_ostream}) (const char [4], int&)' cout("%d\n",h); ^