Problem flamethrower
User xlpaun
Submission Time 2024-05-15 16:52:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:8:16: error: expected ‘;’ before ‘}’ token
8 | cin >> a[i]
| ^
| ;
9 | }
| ~
flamethrower.cpp: At global scope:
flamethrower.cpp:10:3: error: expected unqualified-id before ‘for’
10 | for (int i = 0; i < N - K + 1; i++){
| ^~~
flamethrower.cpp:10:19: error: ‘i’ does not name a type
10 | for (int i = 0; i < N - K + 1; i++){
| ^
flamethrower.cpp:10:34: error: ‘i’ does not name a type
10 | for (int i = 0; i < N - K + 1; i++){
| ^
flamethrower.cpp:18:1: error: expected declaration before ‘}’ token
18 | }
| ^