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_22709012_25683.cpp:4:7: error: 'maxn' does not name a type
 const maxn = 2005; 
       ^
0_0_22709012_25683.cpp:5:8: error: 'maxn' was not declared in this scope
 int dp[maxn][maxn];
        ^
0_0_22709012_25683.cpp:5:14: error: 'maxn' was not declared in this scope
 int dp[maxn][maxn];
              ^
0_0_22709012_25683.cpp:6:10: error: 'maxn' was not declared in this scope
 int flag[maxn][maxn];
          ^
0_0_22709012_25683.cpp:6:16: error: 'maxn' was not declared in this scope
 int flag[maxn][maxn];
                ^
0_0_22709012_25683.cpp: In function 'int main()':
0_0_22709012_25683.cpp:13:11: error: 'maxn' was not declared in this scope
     int w[maxn];//µ¥·فا®
           ^
0_0_22709012_25683.cpp:23:16: error: 'dp' was not declared in this scope
         memset(dp, 0, sizeof(dp));
                ^
0_0_22709012_25683.cpp:24:16: error: 'flag' was not declared in this scope
         memset(flag, 0, sizeof(flag));
                ^
0_0_22709012_25683.cpp:28:29: error: 'w' was not declared in this scope
             scanf("%d%d%d",&w[i],&a[i],&b[i]);
                             ^
0_0_22709012_25683.cpp:28:35: error: 'a' was not declared in this scope
             scanf("%d%d%d",&w[i],&a[i],&b[i]);
                                   ^
0_0_22709012_25683.cpp:28:41: error: 'b' was not declared in this scope
             scanf("%d%d%d",&w[i],&a[i],&b[i]);
                                         ^
0_0_22709012_25683.cpp:35:25: error: 'w' was not declared in this scope
                 if(j >= w[i])
                         ^
0_0_22709012_25683.cpp:39:50: error: 'a' was not declared in this scope
                         temp = dp[i][j - w[i]] + a[i] + b[i];
                                                  ^
0_0_22709012_25683.cpp:39:57: error: 'b' was not declared in this scope
                         temp = dp[i][j - w[i]] + a[i] + b[i];
                                                         ^
0_0_22709012_25683.cpp:43:50: error: 'a' was not declared in this scope
                         temp = dp[i][j - w[i]] + a[i];
                                                  ^
0_0_22709012_25683.cpp:45:60: error: 'a' was not declared in this scope
                     temp = max(temp, dp[i - 1][j - w[i]] + a[i] + b[i]);
                                                            ^
0_0_22709012_25683.cpp:45:67: error: 'b' was not declared in this scope
                     temp = max(temp, dp[i - 1][j - w[i]] + a[i] + b[i]);
                                                                   ^


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