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_37041678_28662.cpp:7:1: error: 'vector' does not name a type
 vector<int> G[N];
 ^
0_0_37041678_28662.cpp: In function 'void init()':
0_0_37041678_28662.cpp:12:25: error: 'memset' was not declared in this scope
  memset(dp,-1,sizeof(dp));
                         ^
0_0_37041678_28662.cpp:15:22: error: 'G' was not declared in this scope
  for(int i=0;i<N;i++)G[i].clear();
                      ^
0_0_37041678_28662.cpp: In function 'bool input()':
0_0_37041678_28662.cpp:19:8: error: 'cin' was not declared in this scope
  while(cin>>n>>m>>f) {
        ^
0_0_37041678_28662.cpp:20:44: error: 'scanf' was not declared in this scope
   for(int i=1;i<=n;i++)scanf("%d",&value[i]);
                                            ^
0_0_37041678_28662.cpp:24:23: error: 'scanf' was not declared in this scope
    scanf("%d %d",&u,&v);
                       ^
0_0_37041678_28662.cpp:25:4: error: 'G' was not declared in this scope
    G[u].push_back(v);
    ^
0_0_37041678_28662.cpp: In function 'int dfs(int, int)':
0_0_37041678_28662.cpp:35:5: error: 'G' was not declared in this scope
  if(G[pos].size() == 0)return dp[pos][mark&1] = value[pos];
     ^
0_0_37041678_28662.cpp:37:23: error: 'inf' was not declared in this scope
  int maxn = -1,minn = inf;
                       ^
0_0_37041678_28662.cpp:38:16: error: 'G' was not declared in this scope
  for(int i=0;i<G[pos].size();i++) {
                ^
0_0_37041678_28662.cpp:40:44: error: 'max' was not declared in this scope
   if(mark&1)maxn = max(maxn,dfs(v,mark + 1));
                                            ^
0_0_37041678_28662.cpp:41:39: error: 'min' was not declared in this scope
   else minn = min(minn,dfs(v,mark + 1));
                                       ^
0_0_37041678_28662.cpp: In function 'void cal()':
0_0_37041678_28662.cpp:52:26: error: 'max' was not declared in this scope
    ans = max(ans,dfs(i,1));
                          ^
0_0_37041678_28662.cpp:54:25: error: 'puts' was not declared in this scope
  if(ans < f)puts("Glory");
                         ^
0_0_37041678_28662.cpp:55:21: error: 'puts' was not declared in this scope
  else puts("Victory");
                     ^


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-05-05 09:57:09, Gzip enabled