Problem lunchbox
User zhaoyz
Submission Time 2026-06-23 16:52:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:12:16: error: ‘class std::vector<long long int>’ has no member named ‘sort’
12 | int sorted =a.sort(a.begin(),a.end());
| ^~~~
lunchbox.cpp:18:2: error: expected ‘,’ or ‘;’ before ‘}’ token
18 | }
| ^
lunchbox.cpp:19:8: error: expected primary-expression before ‘<<’ token
19 | cout<<<<endl;
| ^~