| Problem | adjmatrix |
|---|---|
| User | BigBackAdrino |
| Submission Time | 2026-06-15 10:50:18 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:6:2: error: ‘vector’ was not declared in this scope
6 | vector<vector<int>> arr(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:6:16: error: expected primary-expression before ‘int’
6 | vector<vector<int>> arr(N, vector<int>(N, 0));
| ^~~
adjmatrix.cpp:10:3: error: ‘arr’ was not declared in this scope
10 | arr[b][c] = 1;
| ^~~
adjmatrix.cpp:15:7: error: ‘arr’ was not declared in this scope
15 | cout<<arr[d][e];
| ^~~