[ create a new paste ] login | about

Link: http://codepad.org/qEEFUnyg    [ raw code | output | fork ]

Nameless - C++, pasted on Mar 21:
1
2
3
4
5
6
7
8
9
10
#include <iostream>

int main()
{
   int foo(const int n)
   {
      return n+2;
   }
   return 0;
}


Output:
1
2
3
In function 'int main()':
Line 6: error: a function-definition is not allowed here before '{' token
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: