0_0_17283802_12149.cpp:15:1: error: 'vector' does not name a type
vector<int>v[NN];//failĘ÷
^
0_0_17283802_12149.cpp: In function 'void insert(char*, int, int)':
0_0_17283802_12149.cpp:28:25: error: 'strlen' was not declared in this scope
int len = strlen(str);
^
0_0_17283802_12149.cpp: In function 'void build_fail(int)':
0_0_17283802_12149.cpp:37:5: error: 'queue' was not declared in this scope
queue<int>q;
^
0_0_17283802_12149.cpp:37:11: error: expected primary-expression before 'int'
queue<int>q;
^
0_0_17283802_12149.cpp:39:5: error: 'q' was not declared in this scope
q.push(p);
^
0_0_17283802_12149.cpp:43:15: error: 'v' was not declared in this scope
if(p) v[fail[p]].push_back(p);
^
0_0_17283802_12149.cpp: In function 'void dfs(int)':
0_0_17283802_12149.cpp:60:15: error: 'v' was not declared in this scope
int len = v[s].size();
^
0_0_17283802_12149.cpp: In function 'int query(int, int, int, int)':
0_0_17283802_12149.cpp:71:35: error: 'max' was not declared in this scope
mx[k<<1] = max(mx[k<<1], mx[k]);
^
0_0_17283802_12149.cpp: In function 'int main()':
0_0_17283802_12149.cpp:94:19: error: 'scanf' was not declared in this scope
scanf("%d", &m);
^
0_0_17283802_12149.cpp:103:54: error: 'strlen' was not declared in this scope
pos[i] = pos[i-1] + strlen(str + pos[i-1]);
^
0_0_17283802_12149.cpp:108:33: error: 'memset' was not declared in this scope
memset(mx, 0, sizeof(mx));
^
0_0_17283802_12149.cpp:117:38: error: 'max' was not declared in this scope
tmp = max(preTmp, tmp) + v;
^
0_0_17283802_12149.cpp:123:34: error: 'printf' was not declared in this scope
printf("Case #%d: ", ++tt);
^
0_0_17283802_12149.cpp:124:9: error: 'cout' was not declared in this scope
cout<<ans<<endl;
^
0_0_17283802_12149.cpp:124:20: error: 'endl' was not declared in this scope
cout<<ans<<endl;
^
|