Problem | rblock |
---|---|
User | DihydrogenMonoxide |
Submission Time | 2022-12-29 02:06:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
rblock.cpp:4:17: error: ‘pair’ was not declared in this scope; did you mean ‘std::pair’?
4 | std::vector<pair<int, int> > adjlist [1000000]; //node, weight. size of array is max number of edges
| ^~~~
| std::pair
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from rblock.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: ‘std::pair’ declared here
208 | struct pair
| ^~~~
rblock.cpp:4:30: error: template argument 1 is invalid
4 | std::vector<pair<int, int> > adjlist [1000000]; //node, weight. size of array is max number of edges
| ^
rblock.cpp:4:30: error: template argument 2 is