0_0_36457781_29174.cpp:6:1: error: expected initializer before 'll'
ll a[N],arr[N];
^
0_0_36457781_29174.cpp: In function 'void add(ll)':
0_0_36457781_29174.cpp:13:12: error: 'trans' was not declared in this scope
if(trans[p][c] == 0) trans[p][c] = ++tot;
^
0_0_36457781_29174.cpp:14:13: error: 'trans' was not declared in this scope
p = trans[p][c];
^
0_0_36457781_29174.cpp:16:5: error: 'arr' was not declared in this scope
arr[p] = x;
^
0_0_36457781_29174.cpp: In function 'll dfs(ll)':
0_0_36457781_29174.cpp:24:12: error: 'trans' was not declared in this scope
if(trans[p][c^1]) p = trans[p][c^1];
^
0_0_36457781_29174.cpp:27:12: error: 'arr' was not declared in this scope
return arr[p];
^
0_0_36457781_29174.cpp: In function 'int main()':
0_0_36457781_29174.cpp:35:16: error: 'trans' was not declared in this scope
memset(trans,0,sizeof(trans));
^
0_0_36457781_29174.cpp:36:16: error: 'arr' was not declared in this scope
memset(arr,0,sizeof(arr));
^
0_0_36457781_29174.cpp:41:27: error: 'a' was not declared in this scope
scanf("%lld",&a[i]);
^
|