Problem splithunny
User ayreentazz
Submission Time 2026-07-25 10:48:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

splithunny.cpp: In function ‘int main()’:
splithunny.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> R >> C;
| ^~~
splithunny.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
splithunny.cpp:14:5: error: ‘memset’ was not declared in this scope
14 | memset(vis, 0, sizeof(vis));
| ^~~~~~
splithunny.cpp:1:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
+++ |+#include <cstring>
1 |
splithunny.cpp:23:13: error: ‘queue’ was not declared in this scope
23 | queue<pair<int, int>> Q;
| ^~~~~
splithunny.cpp:1:1: note: ‘std::queue’ is defined in header ‘<queue>’; did you forget to ‘#include <queue>’?
+++ |+#include <queue>
1 |
splithunny.