Problem flamethrower
User austenj
Submission Time 2026-07-17 13:58:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:10:18: error: ‘n’ was not declared in this scope
10 | if (!(cin >> n >> k)) return 0;
| ^
flamethrower.cpp:10:23: error: ‘k’ was not declared in this scope
10 | if (!(cin >> n >> k)) return 0;
| ^
flamethrower.cpp:12:29: error: ‘n’ was not declared in this scope
12 | vector<long long> costs(n);
| ^
flamethrower.cpp:19:25: error: ‘k’ was not declared in this scope
19 | for (int i = 0; i < k; ++i) {
| ^
flamethrower.cpp:26:18: error: ‘k’ was not declared in this scope
26 | for (int i = k; i < n; ++i) {
| ^