Problem | boxispull |
---|---|
User | rogueee |
Submission Time | 2024-10-23 20:16:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
boxispull.cpp: In function ‘int getTest()’:
boxispull.cpp:3:7: error: ‘cin’ is not a member of ‘std’
3 | std::cin >> x;
| ^~~
boxispull.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int getTest() {
boxispull.cpp: In function ‘int main()’:
boxispull.cpp:23:8: error: ‘cin’ is not a member of ‘std’
23 | std::cin >> x1 >> y1 >> x2 >> y2;
| ^~~
boxispull.cpp:23:8: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
boxispull.cpp:24:8: error: ‘cout’ is not a member of ‘std’
24 | std::cout << getDistance(x1, y1, x2, y2)-1 << '\n';
| ^~~~
boxispull.cpp:24:8: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?