| Problem | adjmatrix |
|---|---|
| User | xyzidk9 |
| Submission Time | 2026-07-25 09:45:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:5:2: error: ‘vector’ was not declared in this scope
5 | vector<vector<int>> matr(n,vector<int>(n,0));
| ^~~~~~
adjmatrix.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 | using namespace std;
adjmatrix.cpp:5:16: error: expected primary-expression before ‘int’
5 | vector<vector<int>> matr(n,vector<int>(n,0));
| ^~~
adjmatrix.cpp:9:3: error: ‘matr’ was not declared in this scope
9 | matr[a - 1][b - 1] = 1;
| ^~~~
adjmatrix.cpp:14:4: error: ‘dout’ was not declared in this scope; did you mean ‘stdout’?
14 | dout << matr[i][j];
| ^~~~
| stdout
adjmatrix.cpp:14:12: error: ‘matr’ was not declared in this scope
14 | dout <&l