Problem catlunch
User LeoYoungLion
Submission Time 2026-11-13 14:49:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:15:32: error: expected ‘;’ before ‘)’ token
15 | for (int i = 1; i <= n - k + 1){
| ^
| ;
catlunch.cpp:18:3: error: expected primary-expression before ‘}’ token
18 | }
| ^
catlunch.cpp:17:14: error: expected ‘)’ before ‘}’ token
17 | if (a[j] >
| ~ ^
| )
18 | }
| ~
catlunch.cpp:18:3: error: expected primary-expression before ‘}’ token
18 | }
| ^
catlunch.cpp: At global scope:
catlunch.cpp:22:5: error: expected unqualified-id before numeric constant
22 | 5 4 4 0 2 54 5 4 5 ...
| ^