Problem lunchbox
User claireau
Submission Time 2023-11-15 15:00:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:1:2: error: stray ‘#’ in program
1 | (#include <bits/stdc++.h>
| ^
lunchbox.cpp:1:10: error: expected ‘)’ before ‘<’ token
1 | (#include <bits/stdc++.h>
| ~ ^~
| )
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> N;
| ^~~
lunchbox.cpp:13:7: error: request for member ‘push’ in ‘arr’, which is of non-class type ‘int [m]’
13 | arr.push(k);
| ^~~~
lunchbox.cpp:13:12: error: ‘k’ was not declared in this scope
13 | arr.push(k);
| ^
lunchbox.cpp:15:8: error: ‘arr_m’ was not declared in this scope; did you mean ‘arr’?
15 | sort (arr_m, arr_m + m);
| ^~~~~
| arr
lunchbox.cpp:15:2: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
15 | sort (arr_m, arr_m + m);
| ^~~~
| sh