Main.cpp: In function 'void bf(int, int)':
Main.cpp:28:5: error: 'cout' was not declared in this scope
28 | cout << viz[l] - 1 << '\n';
| ^~~~
Main.cpp:4:1: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
3 | #include <queue>
+++ |+#include <iostream>
4 | #include <vector>
Main.cpp: In function 'int main()':
Main.cpp:32:5: error: 'cin' was not declared in this scope
32 | cin >> n >> m >> q;
| ^~~
Main.cpp:32:5: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?