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

Compile Error

snack.cpp: In function ‘int main()’:
snack.cpp:26:8: error: ‘n’ was not declared in this scope
26 | int a[n];
| ^
snack.cpp:30:17: error: ‘a’ was not declared in this scope
30 | int n = sizeof(a) / sizeof(a[0]);
| ^