Problem | lunchbox |
---|---|
User | fanqie |
Submission Time | 2023-11-15 14:00:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:4:9: error: ‘m’ was not declared in this scope; did you mean ‘tm’?
4 | int arr[m];
| ^
| tm
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:10:22: error: expected primary-expression before ‘)’ token
10 | for (x=0, x<=m, x++;){
| ^
lunchbox.cpp:10:22: error: expected ‘;’ before ‘)’ token
10 | for (x=0, x<=m, x++;){
| ^
| ;
lunchbox.cpp:11:10: error: ‘arr’ was not declared in this scope
11 | cin >> arr[x];
| ^~~
lunchbox.cpp:13:7: error: ‘arr’ was not declared in this scope
13 | sort(arr, arr+m);
| ^~~