Problem flamethrower
User auser24241
Submission Time 2026-02-19 20:10:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i=0; i<n; i++){
| ^
flamethrower.cpp:11:7: error: ‘j’ was not declared in this scope
11 | for (j=0; j<v.size()-k+1; j++){
| ^
flamethrower.cpp:11:16: error: request for member ‘size’ in ‘v’, which is of non-class type ‘int [n]’
11 | for (j=0; j<v.size()-k+1; j++){
| ^~~~
flamethrower.cpp:14:7: error: ‘i’ was not declared in this scope
14 | for(i=0; i<k; i++){
| ^
flamethrower.cpp:21:10: error: ‘largest’ was not declared in this scope
21 | cout << largest;
| ^~~~~~~