Problem network
User haydendoo
Submission Time 2023-02-20 23:21:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

network.cpp: In function ‘void dfs2(long long int, long long int)’:
network.cpp:274:11: error: ‘endpt’ was not declared in this scope
274 | EACH(it, endpt[idx]) {
| ^~~~~
network.cpp:61:34: note: in definition of macro ‘EACH’
61 | #define EACH(x, a) for (auto& x: a)
| ^
network.cpp:276:14: error: invalid types ‘long long int [200001][long long int [200001]]’ for array subscript
276 | if(h[lowest] < h[highest[it]]) lowest=highest[it];
| ^
In file included from /usr/include/c++/9/ext/pb_ds/detail/pat_trie_/pat_trie_.hpp:45,
from /usr/include/c++/9/ext/pb_ds/detail/container_base_dispatch.hpp:90,
from /usr/include/c++/9/ext/pb_ds/assoc_container.hpp:48,
from network.cpp:10:
network.cpp:278:17: error: invalid types ‘long long int [200001][long long int [200001]]’ for array subscript
278 | assert(h[lowest]&g