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
^
|