Problem hungrycats2
User ninaa
Submission Time 2026-11-06 13:35:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hungrycats2.cpp: In function ‘int main()’:
hungrycats2.cpp:5:2: error: ‘ios_base’ has not been declared
5 | ios_base::sync_with_stdio(false);
| ^~~~~~~~
hungrycats2.cpp:6:5: error: ‘cin’ was not declared in this scope
6 | cin.tie(NULL);
| ^~~
hungrycats2.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <ratio>
+++ |+#include <iostream>
2 | using namespace std;
hungrycats2.cpp:6:13: error: ‘NULL’ was not declared in this scope
6 | cin.tie(NULL);
| ^~~~
hungrycats2.cpp:2:1: note: ‘NULL’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
1 | #include <ratio>
+++ |+#include <cstddef>
2 | using namespace std;
hungrycats2.cpp:9:5: error: ‘vector’ was not declared in this scope
9 | vector<int> h(n);
|