Problem lunchbox
User eliasxyz
Submission Time 2025-05-24 18:24:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:13:9: error: request for member ‘begin’ in ‘A’, which is of non-class type ‘int [m]’
13 | sort(A.begin(),A.end()); //sorting algorithm?
| ^~~~~
lunchbox.cpp:13:19: error: request for member ‘end’ in ‘A’, which is of non-class type ‘int [m]’
13 | sort(A.begin(),A.end()); //sorting algorithm?
| ^~~
lunchbox.cpp:14:7: error: request for member ‘sum’ in ‘A’, which is of non-class type ‘int [m]’
14 | if(A.sum()<=N){
| ^~~