Problem lunchbox
User dieunq1309
Submission Time 2023-02-18 15:17:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp:4:10: error: ‘arr’ was not declared in this scope
4 | int func(arr[]; int N; int m)
| ^~~
lunchbox.cpp:4:14: error: expected primary-expression before ‘]’ token
4 | int func(arr[]; int N; int m)
| ^
lunchbox.cpp:4:29: error: expected initializer before ‘)’ token
4 | int func(arr[]; int N; int m)
| ^
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:22:14: error: ‘m’ was not declared in this scope
22 | cin >> N >> m;
| ^
lunchbox.cpp:25:10: error: ‘arr’ was not declared in this scope
25 | cin >> arr[i];
| ^~~
lunchbox.cpp:25:14: error: ‘i’ was not declared in this scope
25 | cin >> arr[i];
| ^
lunchbox.cpp:27:7: error: ‘arr’ was not declared in this scope
27 | sort(arr, arr + m);
| ^~~
lunchbox.cpp:28:26: error: ‘func’ can