0_0_20291570_11277.cpp:5:1: error: expected initializer before 'int'
int dp[MAX];
^
0_0_20291570_11277.cpp: In function 'int main()':
0_0_20291570_11277.cpp:19:7: error: 'w' was not declared in this scope
w[0][i] = 0;
^
0_0_20291570_11277.cpp:23:7: error: 'w' was not declared in this scope
w[t][i] = dp[i] = sum[i];
^
0_0_20291570_11277.cpp:23:17: error: 'dp' was not declared in this scope
w[t][i] = dp[i] = sum[i];
^
0_0_20291570_11277.cpp:30:20: error: 'w' was not declared in this scope
printf("%d\n", w[m%2][n]); //由于w退化了,没了w[m][n]因此m%2可以表示第m次,你可以用m = 1,和2试试便知道了
^
|