0_0_30180464_31625.cpp:7:1: error: expected ',' or ';' before 'int'
int trie[maxn][2],len,root,tot,ans[maxn],a[maxn];
^
0_0_30180464_31625.cpp: In function 'void insert(int)':
0_0_30180464_31625.cpp:12:5: error: 'root' was not declared in this scope
root=0;
^
0_0_30180464_31625.cpp:17:13: error: 'trie' was not declared in this scope
if(!trie[root][id]) trie[root][id]=++tot;
^
0_0_30180464_31625.cpp:17:46: error: 'tot' was not declared in this scope
if(!trie[root][id]) trie[root][id]=++tot;
^
0_0_30180464_31625.cpp:18:14: error: 'trie' was not declared in this scope
root=trie[root][id];
^
0_0_30180464_31625.cpp:20:5: error: 'ans' was not declared in this scope
ans[root]=x;
^
0_0_30180464_31625.cpp: In function 'int search(int)':
0_0_30180464_31625.cpp:24:5: error: 'root' was not declared in this scope
root=0;
^
0_0_30180464_31625.cpp:29:12: error: 'trie' was not declared in this scope
if(trie[root][!id])
^
0_0_30180464_31625.cpp:38:11: error: 'ans' was not declared in this scope
return ans[root];
^
0_0_30180464_31625.cpp: In function 'int main()':
0_0_30180464_31625.cpp:47:16: error: 'trie' was not declared in this scope
memset(trie,0,sizeof(trie));
^
0_0_30180464_31625.cpp:49:9: error: 'tot' was not declared in this scope
tot=0;
^
0_0_30180464_31625.cpp:50:16: error: 'ans' was not declared in this scope
memset(ans,0,sizeof(ans));
^
0_0_30180464_31625.cpp:53:25: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
|