[ create a new paste ] login | about

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

C++, pasted on May 12:
1
2
3
4
5
6
void foo() { printf("ok\n"); }

int main() {
   foo(1, 2, 3, 4, 5);
   return 0;
}


Output:
1
2
3
In function 'int main()':
Line 1: error: too many arguments to function 'void foo()'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: