Problem subgraphs
User YEethui
Submission Time 2023-10-21 23:28:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subgraphs.cpp:6:5: error: ‘vector’ does not name a type
6 | vector<vector<int>> adjacencyList;
| ^~~~~~
subgraphs.cpp: In constructor ‘Graph::Graph(int)’:
subgraphs.cpp:10:19: error: ‘class Graph’ has no member named ‘adjacencyList’
10 | this->adjacencyList.push_back(vector<int>());
| ^~~~~~~~~~~~~
subgraphs.cpp:10:43: error: ‘vector’ was not declared in this scope
10 | this->adjacencyList.push_back(vector<int>());
| ^~~~~~
subgraphs.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;
subgraphs.cpp:10:50: error: expected primary-expression before ‘int’
10 | this->adjacencyList.push_back(vector<int>());
|