prog.cpp:1:1: error: stray ‘\177’ in program
prog.cpp:1:1: error: stray ‘#’ in program
prog.cpp:1:3: error: ‘include’ does not name a type
prog.cpp: In member function ‘void Bar::add(int, int)’:
prog.cpp:9:27: error: ‘cout’ is not a member of ‘std’
prog.cpp:9:53: error: ‘endl’ is not a member of ‘std’
prog.cpp: At global scope:
prog.cpp:12:31: warning: variadic templates only available with -std=c++11 or -std=gnu++11 [enabled by default]
prog.cpp:14:2: error: ‘function’ in namespace ‘std’ does not name a type
prog.cpp:16:29: error: expected ‘,’ or ‘...’ before ‘&&’ token
prog.cpp:18:29: warning: variadic templates only available with -std=c++11 or -std=gnu++11 [enabled by default]
prog.cpp: In constructor ‘Foo<T, Arguments>::Foo(F)’:
prog.cpp:16:37: error: class ‘Foo<T, Arguments>’ does not have any field named ‘f’
prog.cpp:16:39: error: ‘forward’ is not a member of ‘std’
prog.cpp:16:53: error: expected primary-expression before ‘>’ token
prog.cpp:16:55: error: ‘f’ was not declared in this scope
prog.cpp: In function ‘int main()’:
prog.cpp:25:2: warning: ‘auto’ changes meaning in C++11; please remove it [-Wc++0x-compat]
prog.cpp:25:7: error: ‘b’ does not name a type
prog.cpp:26:2: error: ‘b’ was not declared in this scope