[ create a new paste ] login | about

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

C++, pasted on May 12:
1
2
3
4
5
6
int main() {
   foo();
   return 0;
}

void foo() { printf("ok\n"); }


Output:
1
2
3
In function 'int main()':
Line 2: error: 'foo' was not declared in this scope
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: