fork download
  1. namespace work {
  2. namespace test {
  3.  
  4. int get_age();
  5. }
  6. }
  7.  
  8. int work::test::get_age() {
  9. return 42;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i486-linux-gnu/4.8/../../../i386-linux-gnu/crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: error: ld returned 1 exit status
stdout

Standard output is empty