fireworks.cpp: In function 'void dfs(long long int)':
fireworks.cpp:18:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
18 | for (auto [v, x] : adj[u]) {
| ^
fireworks.cpp:20:22: warning: comparison of integer expressions of different signedness: 'std::priority_queue<long long int>::size_type' {aka 'long unsigned int'} and 'long long int' [-Wsign-compare]
20 | if (pq[v].size() > mx) {
| ~~~~~~~~~~~~~^~~~
fireworks.cpp:34:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17'
34 | for (auto [v, x] : adj[u]) {
| ^
fireworks.cpp:49:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::array<long long int, 2> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
49 | for (int i=1; i<adj[u].size(); ++i) {
| ~^~~~~~~~~~~~~~
fireworks.cpp: In function 'int main()':
fireworks.cpp:74:19: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int, std::allocator<long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for (ll i=0; i+1<V.size(); ++i) {
| ~~~^~~~~~~~~