Problem lunchbox
User wjolk
Submission Time 2025-06-19 14:24:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:16:5: error: ‘cin’ was not declared in this scope
16 | cin >> N >> m;
| ^~~
lunchbox.cpp:4:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
3 | #include <algorithm>
+++ |+#include <iostream>
4 | using namespace std;
lunchbox.cpp:26:5: error: ‘cout’ was not declared in this scope
26 | cout << c << "\n";
| ^~~~
lunchbox.cpp:26:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?