| Problem | adjmatrix |
|---|---|
| User | keresh |
| Submission Time | 2026-10-22 07:07:59 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int32_t main()’:
adjmatrix.cpp:12:46: error: template argument 1 is invalid
12 | vector <vector<int> adj(n, vector<int>(n, 0));
| ^
adjmatrix.cpp:12:46: error: template argument 2 is invalid
adjmatrix.cpp:14:10: error: ‘a’ was not declared in this scope
14 | cin >> a >> b;
| ^
adjmatrix.cpp:14:15: error: ‘b’ was not declared in this scope
14 | cin >> a >> b;
| ^
adjmatrix.cpp:15:3: error: ‘adjmatrix’ was not declared in this scope
15 | adjmatrix[a][b] = 1;
| ^~~~~~~~~
adjmatrix.cpp:21:12: error: ‘adj’ was not declared in this scope
21 | cout << adj[i][ii];
| ^~~