Problem lunchbox
User eliasxyz
Submission Time 2025-05-24 18:26:02
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:16:21: error: expected ‘;’ before ‘)’ token
16 | for(int k=0;k<m,k++){
| ^
| ;
lunchbox.cpp:17:10: error: expected ‘;’ before ‘}’ token
17 | t+=A[k]
| ^
| ;
18 | }
| ~