| Problem | lunchbox |
|---|---|
| User | UglyFish |
| Submission Time | 2025-04-12 10:28:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:3:10: error: ‘cin’ is not a member of ‘std’
3 | std::cin >> N >> m;
| ^~~
lunchbox.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
lunchbox.cpp:5:10: error: ‘vector’ is not a member of ‘std’
5 | std::vector<int> k(m);
| ^~~~~~
lunchbox.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | int main() {
lunchbox.cpp:5:17: error: expected primary-expression before ‘int’
5 | std::vector<int> k(m);
| ^~~
lunchbox.cpp:7:14: error: ‘cin’ is not a member of ‘std’
7 | std::cin >> k[i];
| ^~~
lunchbox.cpp:7:14: note: ‘std::cin’ is define