Problem snack
User Mashulyong
Submission Time 2024-04-12 15:24:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snack.cpp: In function ‘int main()’:
snack.cpp:26:6: error: storage size of ‘a’ isn’t known
26 | int a[];
| ^
snack.cpp:27:24: error: expected primary-expression before ‘]’ token
27 | for (int i = 0; i < a[]; i++){
| ^
snack.cpp:35:1: error: expected ‘}’ at end of input
35 | }
| ^
snack.cpp:25:1: note: to match this ‘{’
25 | {
| ^