Fix linter warnings in fixgraph branch.

This commit is contained in:
Filip Hlásek
2020-08-01 22:55:50 -07:00
parent c107f99db9
commit e2f344c498
8 changed files with 92 additions and 131 deletions

View File

@@ -107,7 +107,7 @@ void depth_first_search(const std::vector<std::vector<size_t>> &adj,
/** Main function */
int main() {
size_t vertices, edges;
size_t vertices = 0, edges = 0;
std::cout << "Enter the Vertices : ";
std::cin >> vertices;
std::cout << "Enter the Edges : ";
@@ -120,7 +120,7 @@ int main() {
std::cout << "Enter the vertices which have edges between them : "
<< std::endl;
while (edges--) {
size_t u, v;
size_t u = 0, v = 0;
std::cin >> u >> v;
graph::addEdge(&adj, u, v);
}
@@ -130,4 +130,4 @@ int main() {
std::cout << std::endl;
return 0;
}
}