int main(void){ foo(5); return 0;} int foo(int i){ return i;}
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:3:10: error: ‘foo’ was not declared in this scope foo(5); ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!