fireworks.cpp:16:24: error: 'priority_queue' has not been declared
16 | void DFS2(int x, ll k, priority_queue<ll>&q) {
| ^~~~~~~~~~~~~~
fireworks.cpp:16:38: error: expected ',' or '...' before '<' token
16 | void DFS2(int x, ll k, priority_queue<ll>&q) {
| ^
fireworks.cpp: In function 'void DFS2(int, ll, int)':
fireworks.cpp:19:17: error: 'q' was not declared in this scope
19 | q.push(0);
| ^
fireworks.cpp:24:38: error: 'q' was not declared in this scope
24 | DFS2(V[x][0].st, V[x][0].nd, q);
| ^
fireworks.cpp:25:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
25 | for(int i=1; i<V[x].size(); ++i) {
| ~^~~~~~~~~~~~
fireworks.cpp:26:17: error: 'priority_queue' was not declared in this scope
26 | priority_queue<ll>p;
| ^~~~~~~~~~~~~~
fireworks.cpp:5:1: note: 'std::priority_queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
4 | #include<algorithm>
+++ |+#include <queue>
5 | using namespace std;
fireworks.cpp:26:34: error: expected primary-expression before '>' token
26 | priority_queue<ll>p;
| ^
fireworks.cpp:26:35: error: 'p' was not declared in this scope
26 | priority_queue<ll>p;
| ^
fireworks.cpp:8:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
8 | #define rep(a, b) for(int a = 0; a < (b); ++a)
| ^
fireworks.cpp:34:9: note: in expansion of macro 'rep'
34 | rep(i, V[x].size()-1) q.pop();
| ^~~
fireworks.cpp: In function 'int main()':
fireworks.cpp:47:9: error: 'priority_queue' was not declared in this scope
47 | priority_queue<ll>Q;
| ^~~~~~~~~~~~~~
fireworks.cpp:47:9: note: 'std::priority_queue' is defined in header '<queue>'; did you forget to '#include <queue>'?
fireworks.cpp:47:26: error: expected primary-expression before '>' token
47 | priority_queue<ll>Q;
| ^
fireworks.cpp:47:27: error: 'Q' was not declared in this scope
47 | priority_queue<ll>Q;
| ^