Problem | lunchbox |
---|---|
User | SioHuang |
Submission Time | 2023-11-09 13:48:57 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp:2:20: error: expected ‘;’ before ‘int32_t’
2 | using namespace std
| ^
| ;
......
5 | int32_t main(){
| ~~~~~~~
lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:9:15: error: ‘schools’ was not declared in this scope; did you mean ‘schs’?
9 | cin >> lb >> schools;
| ^~~~~~~
| schs
lunchbox.cpp:12:10: error: ‘arr’ was not declared in this scope; did you mean ‘array’?
12 | cin >> arr[i];
| ^~~
| array
lunchbox.cpp:15:7: error: ‘arr’ was not declared in this scope; did you mean ‘array’?
15 | sort(arr, arr + schools, greater<int>());
| ^~~
| array