Problem | adjmatrix |
---|---|
User | Hengweezy |
Submission Time | 2024-01-31 20:05:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int> output(nodes * nodes);
| ^~~~~~
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:7:9: error: expected primary-expression before ‘int’
7 | vector<int> output(nodes * nodes);
| ^~~
adjmatrix.cpp:13:3: error: ‘output’ was not declared in this scope
13 | output[a * nodes + b] = 1;
| ^~~~~~
adjmatrix.cpp:19:12: error: ‘output’ was not declared in this scope
19 | cout << output[i * nodes + j];
| ^~~~~~