Problem flamethrower
User YongXin
Submission Time 2023-06-02 10:22:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i=0;i<n;++i) cin>>a[i];
| ^
flamethrower.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i=0;i+k<n;++i){
| ^
flamethrower.cpp:10:8: error: ‘j’ was not declared in this scope
10 | for (j=0;j<k;++j){
| ^
flamethrower.cpp:15:9: error: expected ‘;’ before ‘}’ token
15 | cout<<m
| ^
| ;
16 | }
| ~