Problem flamethrower
User Daddy
Submission Time 2023-11-06 13:07:17
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:10:21: error: expected ‘;’ before ‘)’ token
10 | for(int i=0;i<n-k+1){
| ^
| ;
flamethrower.cpp:11:6: error: ‘a’ was not declared in this scope
11 | if(a[i]+a[i+1]+a[i+2]>x){
| ^
flamethrower.cpp:14:10: error: expected ‘}’ at end of input
14 | }cout<<x;
| ^
flamethrower.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^