Problem flamethrower
User G
Submission Time 2024-02-15 20:50:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:7:2: error: expected initializer before ‘for’
7 | for(int i;i<n;i++){
| ^~~
flamethrower.cpp:7:12: error: ‘i’ was not declared in this scope
7 | for(int i;i<n;i++){
| ^
flamethrower.cpp:12:6: error: ‘arr’ was not declared in this scope
12 | if(arr[i]+arr[i+1]+arr[i+2]>max) max=arr[i]+arr[i+1]+arr[i+2];
| ^~~