0_0_37157383_24531.cpp:4:19: error: expected ']' before ';' token
#define maxn 1<<20;
^
0_0_37157383_24531.cpp:6:10: note: in expansion of macro 'maxn'
int tire[maxn][10];
^
0_0_37157383_24531.cpp:6:14: error: expected unqualified-id before ']' token
int tire[maxn][10];
^
0_0_37157383_24531.cpp:4:19: error: expected ']' before ';' token
#define maxn 1<<20;
^
0_0_37157383_24531.cpp:7:9: note: in expansion of macro 'maxn'
int num[maxn];
^
0_0_37157383_24531.cpp:7:13: error: expected unqualified-id before ']' token
int num[maxn];
^
0_0_37157383_24531.cpp: In function 'void insert(char*)':
0_0_37157383_24531.cpp:13:7: error: 'tire' was not declared in this scope
if(!tire[p][j]) tire[p][j]=++cnt;
^
0_0_37157383_24531.cpp:14:5: error: 'tire' was not declared in this scope
p=tire[p][j];
^
0_0_37157383_24531.cpp:15:3: error: 'num' was not declared in this scope
num[p]++;
^
0_0_37157383_24531.cpp: In function 'int search(char*)':
0_0_37157383_24531.cpp:22:5: error: 'tire' was not declared in this scope
p=tire[p][j];
^
0_0_37157383_24531.cpp:24:9: error: 'num' was not declared in this scope
return num[p]==1?1:0;
^
0_0_37157383_24531.cpp: In function 'int main()':
0_0_37157383_24531.cpp:30:13: error: 'tire' was not declared in this scope
memset(tire,0,sizeof(tire));
^
0_0_37157383_24531.cpp:31:13: error: 'num' was not declared in this scope
memset(num,0,sizeof(num));
^
|