Problem lunchbox
User neogaoen2007
Submission Time 2023-12-06 16:57:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:20: error: expected ‘;’ before ‘for’
12 | sort(arr, arr + m) //, greater<int>());
| ^
| ;
13 | for (int i = 0;i<m;i++){
| ~~~
lunchbox.cpp:13:17: error: ‘i’ was not declared in this scope
13 | for (int i = 0;i<m;i++){
| ^
lunchbox.cpp: At global scope:
lunchbox.cpp:24:5: error: redefinition of ‘int main()’
24 | int main() {
| ^~~~
lunchbox.cpp:4:5: note: ‘int main()’ previously defined here
4 | int main(){
| ^~~~