fork download
  1. int main(void)
  2. {
  3. foo(5);
  4. return 0;
  5. }
  6.  
  7. int foo(int i)
  8. {
  9. return i;
  10. }
  11.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:3:10: error: ‘foo’ was not declared in this scope
     foo(5);
          ^
stdout
Standard output is empty