Problem | 4russians |
---|---|
User | hwy |
Submission Time | 2023-06-19 20:37:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
4russians.cpp:5:4: error: structured binding declaration cannot have type ‘int’
5 | int[N] C, S;
| ^~~
4russians.cpp:5:4: note: type must be cv-qualified ‘auto’ or reference to cv-qualified ‘auto’
4russians.cpp:5:5: error: conflicting declaration ‘auto N’
5 | int[N] C, S;
| ^
4russians.cpp:4:5: note: previous declaration as ‘int N’
4 | int N, K;
| ^
4russians.cpp:5:8: error: expected initializer before ‘C’
5 | int[N] C, S;
| ^
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] - (