[ create a new paste ] login | about

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

C++, pasted on Oct 16:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream> #include <cstring> using namespace std;

int main() {

char n[10];

char x[20];

x[0] = '\0';

strcat(n,"0123456"); strcat(n,x);

strcat(n,x);

cout << strlen(n);
}


Output:
1
Line 20: error: extra tokens at end of #include directive


Create a new paste based on this one


Comments: