Problem lunchbox
User AppleOnAstick
Submission Time 2023-11-15 13:38:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:7:8: error: ‘i’ was not declared in this scope
7 | int a[i];
| ^
lunchbox.cpp:8:20: error: ‘m’ was not declared in this scope
8 | for (int i=0; i < m; i++) {
| ^
lunchbox.cpp:9:10: error: ‘a’ was not declared in this scope
9 | cin >> a[i];
| ^
lunchbox.cpp:10:8: error: ‘A’ was not declared in this scope
10 | sort (A, A+m);
| ^
lunchbox.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
lunchbox.cpp:5:16: note: to match this ‘{’
5 | int32_t main() {
| ^