Problem lunchbox
User JonahKoh
Submission Time 2025-04-23 16:19:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
13 | sort(arr,arr+m);
| ^~~~
| qsort
lunchbox.cpp:15:8: error: ‘a’ was not declared in this scope
15 | ans+=a[i];
| ^