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_17974999_29895.cpp: In function 'void dfs(int)':
0_0_17974999_29895.cpp:6:14: error: 'i' was not declared in this scope
  int cost=(s[i]+19)/20;
              ^
0_0_17974999_29895.cpp:13:8: error: 'k' was not declared in this scope
    for(k=1; k<=j-cost; k++)
        ^
0_0_17974999_29895.cpp:13:16: error: 'j' was not declared in this scope
    for(k=1; k<=j-cost; k++)
                ^
0_0_17974999_29895.cpp:14:38: error: 'dp' was not declared in this scope
                  f[x][j]=max(f[x][j],dp[x][j-k]+dp[v][k]);
                                      ^
0_0_17974999_29895.cpp:14:57: error: 'max' was not declared in this scope
                  f[x][j]=max(f[x][j],dp[x][j-k]+dp[v][k]);
                                                         ^
0_0_17974999_29895.cpp:16:9: error: a function-definition is not allowed here before '{' token
 int KM(){
         ^
0_0_17974999_29895.cpp:31:26: error: expected '}' at end of input
 int main(){ while(KM()); }
                          ^


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-12-03 17:46:48, Gzip enabled