0_0_36886222_14578.cpp:5:1: error: expected initializer before 'int'
int cnt[100005];;
^
0_0_36886222_14578.cpp: In function 'void insert(std::string, int)':
0_0_36886222_14578.cpp:24:5: error: 'vis' was not declared in this scope
if(vis[p]!=x) cnt[p]++;
^
0_0_36886222_14578.cpp:24:16: error: 'cnt' was not declared in this scope
if(vis[p]!=x) cnt[p]++;
^
0_0_36886222_14578.cpp:25:2: error: 'vis' was not declared in this scope
vis[p]=x;
^
0_0_36886222_14578.cpp: In function 'int search(std::string)':
0_0_36886222_14578.cpp:38:9: error: 'cnt' was not declared in this scope
return cnt[p];
^
|