Problem lunchbox
User aa24codebreaker
Submission Time 2023-11-09 10:26:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:17:27: error: expected ‘,’ before ‘-’ token
17 | sort(arr, arr + [m-1]);
| ^
| ,
lunchbox.cpp:17:27: error: expected identifier before ‘-’ token
lunchbox.cpp: In lambda function:
lunchbox.cpp:17:30: error: expected ‘{’ before ‘)’ token
17 | sort(arr, arr + [m-1]);
| ^
lunchbox.cpp: In function ‘int32_t main()’:
lunchbox.cpp:17:23: error: no match for ‘operator+’ (operand types are ‘long long int [m]’ and ‘main()::<lambda()>’)
17 | sort(arr, arr + [m-1]);
In file included from /usr/include/c++/9/bits/stl_algobase.h:67,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,