Problem | lunchbox |
---|---|
User | JonahKoh |
Submission Time | 2025-04-23 16:08:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
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+n);
| ^~~~
| qsort
lunchbox.cpp:14:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
14 | ans=0;
| ^~~
| abs
lunchbox.cpp:16:8: error: ‘a’ was not declared in this scope
16 | ans+=a[i];
| ^