Problem | floors |
---|---|
User | TheInvadr |
Submission Time | 2023-12-13 14:22:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
floors.cpp: In function ‘int main()’:
floors.cpp:7:5: error: ‘cin’ was not declared in this scope
7 | cin >> n >> c;
| ^~~
floors.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <vector>
+++ |+#include <iostream>
2 |
floors.cpp:21:9: error: ‘cout’ was not declared in this scope
21 | cout << targetFloor << endl;
| ^~~~
floors.cpp:21:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
floors.cpp:21:32: error: ‘endl’ was not declared in this scope
21 | cout << targetFloor << endl;
| ^~~~
floors.cpp:2:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
1 | #include <vector>
+++ |+#include <