prog.cpp:1: error: ‘std::string’ has not been declared
prog.cpp: In function ‘void f()’:
prog.cpp:4: error: ‘cout’ was not declared in this scope
prog.cpp:4: error: ‘endl’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:7: error: ‘std::string’ has not been declared
prog.cpp: In function ‘void g()’:
prog.cpp:10: error: ‘cout’ was not declared in this scope
prog.cpp:10: error: ‘endl’ was not declared in this scope
prog.cpp: At global scope:
prog.cpp:14: error: ‘string’ in namespace ‘std’ does not name a type
prog.cpp: In function ‘int main()’:
prog.cpp:17: error: ‘s’ was not declared in this scope
prog.cpp:18: error: no matching function for call to ‘f()’
prog.cpp:19: error: ‘s’ cannot appear in a constant-expression
prog.cpp:19: error: no matching function for call to ‘g()’
prog.cpp:20: error: ‘cout’ was not declared in this scope
prog.cpp:20: error: ‘endl’ was not declared in this scope