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_26147498_4114.cpp:6:25: error: expected ']' before numeric constant
 int n,w[1005],dp[1005][[1005];
                         ^
0_0_26147498_4114.cpp: In function 'int main()':
0_0_26147498_4114.cpp:23:16: error: invalid types 'int[int]' for array subscript
         dp[i][1]=0;
                ^
0_0_26147498_4114.cpp:28:20: error: invalid types 'int[int]' for array subscript
             dp[i][t]=Ma_x;
                    ^
0_0_26147498_4114.cpp:30:24: error: invalid types 'int[int]' for array subscript
                 dp[i][t]=min(dp[i][t],dp[i][k]+dp[(i+k-1)%n+1][t-k]+sum(i,t));
                        ^
0_0_26147498_4114.cpp:30:37: error: invalid types 'int[int]' for array subscript
                 dp[i][t]=min(dp[i][t],dp[i][k]+dp[(i+k-1)%n+1][t-k]+sum(i,t));
                                     ^
0_0_26147498_4114.cpp:4:18: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                  ^
0_0_26147498_4114.cpp:30:46: error: invalid types 'int[int]' for array subscript
                 dp[i][t]=min(dp[i][t],dp[i][k]+dp[(i+k-1)%n+1][t-k]+sum(i,t));
                                              ^
0_0_26147498_4114.cpp:4:20: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                    ^
0_0_26147498_4114.cpp:30:67: error: invalid types 'int[int]' for array subscript
                 dp[i][t]=min(dp[i][t],dp[i][k]+dp[(i+k-1)%n+1][t-k]+sum(i,t));
                                                                   ^
0_0_26147498_4114.cpp:4:20: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                    ^
0_0_26147498_4114.cpp:30:37: error: invalid types 'int[int]' for array subscript
                 dp[i][t]=min(dp[i][t],dp[i][k]+dp[(i+k-1)%n+1][t-k]+sum(i,t));
                                     ^
0_0_26147498_4114.cpp:4:22: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                      ^
0_0_26147498_4114.cpp:30:46: error: invalid types 'int[int]' for array subscript
                 dp[i][t]=min(dp[i][t],dp[i][k]+dp[(i+k-1)%n+1][t-k]+sum(i,t));
                                              ^
0_0_26147498_4114.cpp:4:24: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                        ^
0_0_26147498_4114.cpp:30:67: error: invalid types 'int[int]' for array subscript
                 dp[i][t]=min(dp[i][t],dp[i][k]+dp[(i+k-1)%n+1][t-k]+sum(i,t));
                                                                   ^
0_0_26147498_4114.cpp:4:24: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                        ^
0_0_26147498_4114.cpp:37:30: error: invalid types 'int[int]' for array subscript
         mini=min(mini,dp[i][n]);
                              ^
0_0_26147498_4114.cpp:4:20: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                    ^
0_0_26147498_4114.cpp:37:30: error: invalid types 'int[int]' for array subscript
         mini=min(mini,dp[i][n]);
                              ^
0_0_26147498_4114.cpp:4:24: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                        ^


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:45:01, Gzip enabled