F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 05:00:15, Gzip enabled