0_0_32055054_17877.cpp:6:20: error: expected ']' before ';' token
#define MAXN 1e6+10;
^
0_0_32055054_17877.cpp:8:8: note: in expansion of macro 'MAXN'
char p[MAXN];
^
0_0_32055054_17877.cpp:8:12: error: expected unqualified-id before ']' token
char p[MAXN];
^
0_0_32055054_17877.cpp:6:20: error: expected ']' before ';' token
#define MAXN 1e6+10;
^
0_0_32055054_17877.cpp:9:9: note: in expansion of macro 'MAXN'
int nxt[MAXN];
^
0_0_32055054_17877.cpp:9:13: error: expected unqualified-id before ']' token
int nxt[MAXN];
^
0_0_32055054_17877.cpp: In function 'void getNext(char*)':
0_0_32055054_17877.cpp:13:5: error: 'nxt' was not declared in this scope
nxt[0] = -1;
^
0_0_32055054_17877.cpp: In function 'int main()':
0_0_32055054_17877.cpp:32:20: error: 'p' was not declared in this scope
scanf("%s",p);
^
0_0_32055054_17877.cpp:38:25: error: 'nxt' was not declared in this scope
int j = i - nxt[i];
^
|