Problem lunchbox
User Quackadodo110411
Submission Time 2024-04-27 10:49:20
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:7:21: error: ‘N’ was not declared in this scope
7 | int remaining = N;
| ^
lunchbox.cpp:8:19: error: ‘k’ was not declared in this scope; did you mean ‘ki’?
8 | for (int ki : k) {
| ^
| ki
lunchbox.cpp: At global scope:
lunchbox.cpp:19:5: error: redefinition of ‘int main()’
19 | int main() {
| ^~~~
lunchbox.cpp:3:5: note: ‘int main()’ previously defined here
3 | int main (){
| ^~~~
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:26:18: error: ‘max_schools’ was not declared in this scope
26 | std::cout << max_schools(N, m, k) << std::endl;
| ^~~~~~~~~~~