0_0_32865126_11203.cpp:9:1: error: 'vector' does not name a type
vector<int>v[N];
^
0_0_32865126_11203.cpp: In function 'void dfs(int)':
0_0_32865126_11203.cpp:30:20: error: 'v' was not declared in this scope
for(int i=0; i<v[s].size(); i++)
^
0_0_32865126_11203.cpp:36:45: error: 'max' was not declared in this scope
dp[s][0] += max(dp[ss][1], dp[ss][0]);
^
0_0_32865126_11203.cpp: In function 'bool ok(int, int)':
0_0_32865126_11203.cpp:43:31: error: 'memset' was not declared in this scope
memset(vis, 0, sizeof(vis));
^
0_0_32865126_11203.cpp:48:56: error: 'max' was not declared in this scope
res += max( dp[ ct[i].y ][0], dp[ ct[i].y ][1] );
^
0_0_32865126_11203.cpp: In function 'int main()':
0_0_32865126_11203.cpp:82:19: error: 'scanf' was not declared in this scope
scanf("%d", &t);
^
0_0_32865126_11203.cpp:86:29: error: 'v' was not declared in this scope
for(i=1; i<=n; i++) v[i].clear();
^
0_0_32865126_11203.cpp:87:35: error: 'memset' was not declared in this scope
memset(cnt, 0, sizeof(cnt));
^
0_0_32865126_11203.cpp:90:26: error: 'sort' was not declared in this scope
sort(ct+1, ct+1+c);
^
0_0_32865126_11203.cpp:94:13: error: 'v' was not declared in this scope
v[x].push_back(y);
^
0_0_32865126_11203.cpp:97:47: error: 'printf' was not declared in this scope
printf("Case #%d: %d\n", ++tt, solve());
^
|