fireworks.cpp: In function 'int main()':
fireworks.cpp:49:3: error: 'priority' was not declared in this scope
49 | priority<i64> q = dfs(dfs, 0);
| ^~~~~~~~
fireworks.cpp:49:15: error: expected primary-expression before '>' token
49 | priority<i64> q = dfs(dfs, 0);
| ^
fireworks.cpp:49:17: error: 'q' was not declared in this scope
49 | priority<i64> q = dfs(dfs, 0);
| ^
fireworks.cpp: In instantiation of 'main()::<lambda(auto:23&&, i64)> [with auto:23 = main()::<lambda(auto:23&&, i64)>&; i64 = long long int]':
fireworks.cpp:49:31: required from here
fireworks.cpp:38:23: warning: comparison of integer expressions of different signedness: 'i64' {aka 'long long int'} and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (int i = 0; i < adj[node].size() - 1; i++) q.pop();
| ~~^~~~~~~~~~~~~~~~~~~~~~