Problem lunchbox
User HBL
Submission Time 2023-04-14 15:08:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:12:2: error: expected initializer before ‘for’
12 | for(int x=0;x<n;x++){
| ^~~
lunchbox.cpp:12:14: error: ‘x’ was not declared in this scope
12 | for(int x=0;x<n;x++){
| ^
lunchbox.cpp:16:7: error: ‘arr’ was not declared in this scope
16 | sort(arr,arr+n);
| ^~~