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_26147494_29198.cpp:6:19: error: expected ']' before numeric constant
 int n,w[1005],dp[[1005][[1005];
                   ^
0_0_26147494_29198.cpp: In function 'int main()':
0_0_26147494_29198.cpp:23:13: error: invalid types 'int[int]' for array subscript
         dp[i][1]=0;
             ^
0_0_26147494_29198.cpp:28:17: error: invalid types 'int[int]' for array subscript
             dp[i][t]=Ma_x;
                 ^
0_0_26147494_29198.cpp:30:21: 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_26147494_29198.cpp:30:34: 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_26147494_29198.cpp:4:18: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                  ^
0_0_26147494_29198.cpp:30:43: 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_26147494_29198.cpp:4:20: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                    ^
0_0_26147494_29198.cpp:30:62: 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_26147494_29198.cpp:4:20: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                    ^
0_0_26147494_29198.cpp:30:34: 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_26147494_29198.cpp:4:22: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                      ^
0_0_26147494_29198.cpp:30:43: 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_26147494_29198.cpp:4:24: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                        ^
0_0_26147494_29198.cpp:30:62: 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_26147494_29198.cpp:4:24: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                        ^
0_0_26147494_29198.cpp:37:27: error: invalid types 'int[int]' for array subscript
         mini=min(mini,dp[i][n]);
                           ^
0_0_26147494_29198.cpp:4:20: note: in definition of macro 'min'
 #define min(a,b) a<b?a:b
                    ^
0_0_26147494_29198.cpp:37:27: error: invalid types 'int[int]' for array subscript
         mini=min(mini,dp[i][n]);
                           ^
0_0_26147494_29198.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:58:40, Gzip enabled