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