prog.cpp:1:15: error: ‘::main’ must return ‘int’
void main(void) //All C++ projects need a main function
^
prog.cpp: In function ‘int main()’:
prog.cpp:3:11: error: ‘function1’ was not declared in this scope
function1();
^
prog.cpp: In function ‘void function1()’:
prog.cpp:8:1: error: ‘cout’ was not declared in this scope
cout<<"Hello!\n";
^
prog.cpp:9:17: error: ‘function2’ was not declared in this scope
cout<<function2();
^