Problem | lunchbox |
---|---|
User | Hijackedsoul |
Submission Time | 2023-06-15 19:27:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lunchbox.cpp: In function ‘int main()’:
lunchbox.cpp:4:10: error: ‘cin’ is not a member of ‘std’
4 | 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 |
lunchbox.cpp:8:14: error: ‘cin’ is not a member of ‘std’
8 | std::cin >>Ki;
| ^~~
lunchbox.cpp:8:14: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
lunchbox.cpp:13:14: error: ‘cout’ is not a member of ‘std’
13 | std::cout << m-1<<"\n";
| ^~~~
lunchbox.cpp:13:14: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
lunchbox.cpp:16:14: error: ‘cout’ is not a member of ‘std’
16 | std::cout <<m<<"\n";
|