Problem lunchbox
User lxmine
Submission Time 2026-05-26 22:33:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:13: error: expected initializer before ‘x’
6 | int arr[m] x;
| ^
lunchbox.cpp:7:34: error: ‘x’ was not declared in this scope
7 | for(int i=0; i<m;i++){std::cin>>x[i];}
| ^
lunchbox.cpp:8:12: error: ‘x’ was not declared in this scope
8 | std::sort(x, x+m);
| ^