Main.cc: In function 'int main()': Main.cc:6:16: error: no match for call to '(std::ostream {aka std::basic_ostream}) (int)' cout(c*10+d)/(a*10+b); ^