Problem flamethrower
User DuckOverlord
Submission Time 2026-05-19 12:10:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:8:14: error: ‘K’ was not declared in this scope
8 | cin >> N >> K;
| ^
flamethrower.cpp:11:10: error: ‘trees’ was not declared in this scope; did you mean ‘tress’?
11 | cin >> trees[i];
| ^~~~~
| tress
flamethrower.cpp:13:7: error: ‘trees’ was not declared in this scope; did you mean ‘tress’?
13 | sort(trees.begin(), trees.end());
| ^~~~~
| tress