Main.cc:3:5: error: cannot declare ‘::main’ to be a global variable int main ^~~~ Main.cc:5:36: error: expected ‘}’ before ‘;’ token cout<<"my name is frank."<::__ostream_type {aka std::basic_ostream}’ to ‘int’ [-fpermissive] cout<<"my name is frank."<::operator bool() const [with _CharT = char; _Traits = std::char_traits] explicit operator bool() const ^~~~~~~~ /usr/include/c++/7/bits/basic_ios.h:117:16: note: return type ‘bool’ of explicit conversion function cannot be converted to ‘int’ with a qualification conversion Main.cc:6:5: error: expected unqualified-id before ‘return’ return o; ^~~~~~ Main.cc:7:1: error: expected declaration before ‘}’ token } ^