Problem lunchbox
User Tez
Submission Time 2024-03-03 22:28:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:3:17: error: ‘m’ has not been declared
3 | int max(int N, m, K[]){
| ^
lunchbox.cpp:3:20: error: ‘K’ has not been declared
3 | int max(int N, m, K[]){
| ^
lunchbox.cpp: In function ‘int max(int, int, int*)’:
lunchbox.cpp:5:8: error: ‘i’ was not declared in this scope
5 | for (i=1;m<=i;i++) {
| ^
lunchbox.cpp:5:12: error: ‘m’ was not declared in this scope
5 | for (i=1;m<=i;i++) {
| ^
lunchbox.cpp:6:10: error: ‘k’ was not declared in this scope
6 | if (t+k[i] <= N){
| ^