Problem splithunny
User Student101
Submission Time 2024-10-19 15:24:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:19:5: error: ‘cin’ was not declared in this scope
19 | cin >> x >> y;
| ^~~
splithunny.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <vector>
+++ |+#include <iostream>
2 | using namespace std;
splithunny.cpp:38:5: error: ‘cout’ was not declared in this scope
38 | cout << counter;
| ^~~~
splithunny.cpp:38:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?