Problem flamethrower
User lxmine
Submission Time 2026-05-16 10:56:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:6:10: error: expected initializer before ‘a’
6 | int arr a;
| ^
flamethrower.cpp:7:33: error: ‘a’ was not declared in this scope
7 | for (int i=0; i<n; i++){cin >> a[i];}
| ^
flamethrower.cpp:11:10: error: ‘a’ was not declared in this scope
11 | sum += a[i];
| ^
flamethrower.cpp:14:7: error: expected ‘;’ before ‘}’ token
14 | i++
| ^
| ;
15 | }
| ~