0_0_16466344_12237.cpp:8:1: error: 'vector' does not name a type
vector<int>v[N];
^
0_0_16466344_12237.cpp: In function 'void dfs(int, int)':
0_0_16466344_12237.cpp:12:15: error: 'v' was not declared in this scope
int len = v[s].size();
^
0_0_16466344_12237.cpp:29:53: error: 'min' was not declared in this scope
t = max(t, min(dp[s][j-k], dp[ss][k])); //各个子树威力值最小的
^
0_0_16466344_12237.cpp:29:54: error: 'max' was not declared in this scope
t = max(t, min(dp[s][j-k], dp[ss][k])); //各个子树威力值最小的
^
0_0_16466344_12237.cpp:36:57: error: 'max' was not declared in this scope
dp[s][j] = max(dp[s][j], dp[s][j-k]+hp[s][k]);
^
0_0_16466344_12237.cpp: In function 'int main()':
0_0_16466344_12237.cpp:41:19: error: 'scanf' was not declared in this scope
scanf("%d", &t);
^
0_0_16466344_12237.cpp:45:33: error: 'v' was not declared in this scope
for(int i=1; i<=n; i++) v[i].clear();
^
0_0_16466344_12237.cpp:46:33: error: 'memset' was not declared in this scope
memset(hp, 0, sizeof(hp));
^
0_0_16466344_12237.cpp:51:13: error: 'v' was not declared in this scope
v[x].push_back(y);
^
0_0_16466344_12237.cpp:62:45: error: 'max' was not declared in this scope
hp[i][x] = max( hp[i][x] ,y );
^
0_0_16466344_12237.cpp:67:52: error: 'max' was not declared in this scope
hp[i][j] = max(hp[i][j], hp[i][j-1]);
^
0_0_16466344_12237.cpp:70:32: error: 'printf' was not declared in this scope
printf("%d\n", dp[1][m]);
^
|