Problem lunchbox
User JK13
Submission Time 2023-11-09 10:31:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:23: error: missing template arguments before ‘[’ token
7 | int x = sort(array[n]smaller(x));)
| ^
lunchbox.cpp:7:38: error: expected primary-expression before ‘)’ token
7 | int x = sort(array[n]smaller(x));)
| ^
lunchbox.cpp:12:5: error: ‘else’ without a previous ‘if’
12 | else if (int x>=k){
| ^~~~
lunchbox.cpp:12:19: error: expected initializer before ‘>=’ token
12 | else if (int x>=k){
| ^~
lunchbox.cpp:12:19: error: expected ‘)’ before ‘>=’ token
12 | else if (int x>=k){
| ~ ^~
| )
lunchbox.cpp:14:12: error: expected ‘;’ before ‘}’ token
14 | n-k
| ^
| ;
15 | }
| ~
lunchbox.cpp:16:19: error: e