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_21682790_8157.cpp: In function 'void debug(int)':
0_0_21682790_8157.cpp:22:38: error: invalid types 'int[int]' for array subscript
                 cout << dp[n][j][k][i] << " ";
                                      ^
0_0_21682790_8157.cpp: In function 'int main()':
0_0_21682790_8157.cpp:45:57: error: invalid types 'int[int]' for array subscript
                             t = max(t, dp[i-1][j][k][l-1]     + w[i]);
                                                         ^
0_0_21682790_8157.cpp:47:61: error: invalid types 'int[int]' for array subscript
                             t = max(t, dp[i-1][j-c1[i]][k][l] + w[i]);
                                                             ^
0_0_21682790_8157.cpp:49:61: error: invalid types 'int[int]' for array subscript
                             t = max(t, dp[i-1][j][k-c2[i]][l] + w[i]);
                                                             ^
0_0_21682790_8157.cpp:50:38: error: invalid types 'int[int]' for array subscript
                         dp[i][j][k][l] = max(t, dp[i-1][j][k][l]);
                                      ^
0_0_21682790_8157.cpp:50:64: error: invalid types 'int[int]' for array subscript
                         dp[i][j][k][l] = max(t, dp[i-1][j][k][l]);
                                                                ^
0_0_21682790_8157.cpp:56:36: error: invalid types 'int[int]' for array subscript
         answer = dp[n][v1][v2][mian];
                                    ^


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-16 18:53:51, Gzip enabled