There is a code:
int g[500][500], n; cin >> n; for(int i=0; i<n; i++) for(int j=0; j<n; j++) cin >> g[i][j]; How do I replace a static array with a vector?
Those. vector <vector <int>> g(n);
How to carry out data input from the keyboard into a vector (two-dimensional)?
PS This is for graphs.