Problem | flamethrower |
---|---|
User | SMJ360 |
Submission Time | 2024-06-19 20:47:32 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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, int total = 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
8 | com = N + 1 - K;
| ^~~
flamethrower.cpp:16:4: error: ‘total’ was not declared in this scope
16 | total += trees[j+k];
| ^~~~~
flamethrower.cpp:18:3: error: ‘cost’ was not declared in this scope
18 | cost[j] = total;
| ^~~~
flamethrower.cpp:18:13: error: ‘total’ was not declared in this scope
18 | cost[j] = total;
| ^~~~~
flamethrower.cpp:22:9: error: ‘cost’ was not declared in this scope
22 | sum = cost[l];
| ^~~~