Problem rank
User PlayVoltz
Submission Time 2023-09-18 12:20:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rank.cpp: In function ‘int main()’:
rank.cpp:30:35: error: wrong number of template arguments (1, should be 2)
30 | graph.resize(n+1, vector<pair<int> >(n+1));
| ^
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 rank.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:208:12: note: provided for ‘template<class _T1, class _T2> struct std::pair’
208 | struct pair
| ^~~~
rank.cpp:30:37: error: template argument 1 is invalid
30 | graph.resize(n+1, vector<pair<int> >(n+1));
| ^
rank.cpp:30:37: error: template argument 2 is invalid
rank.cpp:58:41: error: no matching function for call to ‘ma