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_29491485_19994.cpp: In function 'void solve()':
0_0_29491485_19994.cpp:7:23: error: 'Fill' was not declared in this scope
     int n,m; Fill(dp,0);
                       ^
0_0_29491485_19994.cpp:8:23: error: 'scanf' was not declared in this scope
     scanf("%d%d",&n,&m);
                       ^
0_0_29491485_19994.cpp:18:30: error: 'inf' was not declared in this scope
             else dp[1][i] = -inf;
                              ^
0_0_29491485_19994.cpp:24:68: error: 'max' was not declared in this scope
                 dp[i][a[i]] = max(dp[i][a[i]],dp[i-1][j]+s[j][a[i]]);
                                                                    ^
0_0_29491485_19994.cpp:30:63: error: 'max' was not declared in this scope
                     dp[i][j] = max(dp[i][j],dp[i-1][k]+s[k][j]);
                                                               ^
0_0_29491485_19994.cpp:37:31: error: 'max' was not declared in this scope
         ans = max(ans,dp[n][i]);
                               ^
0_0_29491485_19994.cpp:39:5: error: 'cout' was not declared in this scope
     cout << ans << endl;
     ^
0_0_29491485_19994.cpp:39:20: error: 'endl' was not declared in this scope
     cout << ans << endl;
                    ^


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-29 19:50:33, Gzip enabled