In competitive programming, I see people initializing vector of pairs like below:
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> ii;
typedef vector<ii> vii;
vector<vii> AL;
int main(){
int V, E; scanf("%d %d", &V, &E);
AL.assign(V, vii());
}
I want to ask about AL.assign(V, vii());
I know that it is going to have V
pairs in AL
, but what's the meaning of vii()
here?