Problem flamethrower
User SMJ360
Submission Time 2024-06-20 08:29:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:5:13: error: expected unqualified-id before ‘int’
5 | int N = 0, int K = 0, int com = 0;
| ^~~
flamethrower.cpp:7:9: error: ‘K’ was not declared in this scope
7 | cin >> K;
| ^
flamethrower.cpp:8:2: error: ‘com’ was not declared in this scope; did you mean ‘cos’?
8 | com = N + 1 - K;
| ^~~
| cos
flamethrower.cpp:20:3: error: ‘cost’ was not declared in this scope; did you mean ‘cosl’?
20 | cost[j] = total;
| ^~~~
| cosl
flamethrower.cpp:22:15: error: expected unqualified-id before ‘int’
22 | int sum = 0, int max_sum = 0;
| ^~~
flamethrower.cpp:24:9: error: ‘cost’ was not declared in this scope; did you mean ‘cosl’?
24 | sum = cost[l];
| ^~~~
| cosl
flamethrower.cpp:25:13: error: ‘max_sum’ was not declared in this scope<