Problem adjmatrix
User chenyuming
Submission Time 2026-11-17 19:16:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:8:49: error: template argument 1 is invalid
8 | vector<vector<int> adj(n+1, vector<int>(n+1, 0));
| ^
adjmatrix.cpp:8:49: error: template argument 2 is invalid
adjmatrix.cpp:12:3: error: ‘adj’ was not declared in this scope
12 | adj[u][v] = 1;
| ^~~
adjmatrix.cpp:18:12: error: ‘adj’ was not declared in this scope
18 | cout << adj[i][j];
| ^~~