Problem | 4russians |
---|---|
User | hwy |
Submission Time | 2023-06-19 20:37:00 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
4russians.cpp:5:8: error: array bound is not an integer constant before ‘]’ token
5 | int C[N], S[N];
| ^
4russians.cpp:5:14: error: array bound is not an integer constant before ‘]’ token
5 | int C[N], S[N];
| ^
4russians.cpp: In function ‘int dp(int, int, int)’:
4russians.cpp:13:12: error: ‘C’ was not declared in this scope
13 | return -(C[curr_bunker-1]*C[curr_bunker-2]);
| ^
4russians.cpp:19:10: error: ‘S’ was not declared in this scope
19 | bomb = S[curr_bunker-1] - (C[curr_bunker-1] * C[curr_bunker-2]);
| ^
4russians.cpp:19:30: error: ‘C’ was not declared in this scope
19 | bomb = S[curr_bunker-1] - (C[curr_bunker-1] * C[curr_bunker-2]);
| ^
4russians.cpp:22:10: error: ‘S’ was not declared in this scope
22 | bomb = S[curr_bunker-1];
| ^
4russians.cpp: In function ‘int main()’:
4rus