homework - #10
Conversation
|
|
||
| const long long INF = std::numeric_limits<long long>::max(); | ||
|
|
||
| long long BussesInVasyuki(std::vector<std::vector<Edge>>& g, size_t from, |
There was a problem hiding this comment.
warning: unknown type name 'size_t'; did you mean 'std::size_t'? [clang-diagnostic-error]
| long long BussesInVasyuki(std::vector<std::vector<Edge>>& g, size_t from, | |
| long long BussesInVasyuki(std::vector<std::vector<Edge>>& g, std::size_t from, |
Additional context
/usr/include/x86_64-linux-gnu/c++/12/bits/c++config.h:297: 'std::size_t' declared here
typedef __SIZE_TYPE__ size_t;
^| const long long INF = std::numeric_limits<long long>::max(); | ||
|
|
||
| long long BussesInVasyuki(std::vector<std::vector<Edge>>& g, size_t from, | ||
| size_t to) { |
There was a problem hiding this comment.
warning: unknown type name 'size_t'; did you mean 'std::size_t'? [clang-diagnostic-error]
| size_t to) { | |
| std::size_t to) { |
Additional context
/usr/include/x86_64-linux-gnu/c++/12/bits/c++config.h:297: 'std::size_t' declared here
typedef __SIZE_TYPE__ size_t;
^| size_t to) { | ||
| std::vector<long long> departure_time(g.size(), INF); | ||
| departure_time[from] = 0; | ||
| std::set<std::pair<long long, size_t>> q; |
There was a problem hiding this comment.
warning: use of undeclared identifier 'size_t'; did you mean 'sizeof'? [clang-diagnostic-error]
| std::set<std::pair<long long, size_t>> q; | |
| std::set<std::pair<long long, sizeof>> q; |
| size_t to) { | ||
| std::vector<long long> departure_time(g.size(), INF); | ||
| departure_time[from] = 0; | ||
| std::set<std::pair<long long, size_t>> q; |
There was a problem hiding this comment.
warning: expected expression [clang-diagnostic-error]
std::set<std::pair<long long, size_t>> q;
^| std::set<std::pair<long long, size_t>> q; | ||
| q.insert(std::make_pair(0, from)); | ||
| while (!q.empty()) { | ||
| std::pair<size_t, unsigned long long> cur = *q.begin(); |
There was a problem hiding this comment.
warning: unknown type name 'size_t'; did you mean 'std::size_t'? [clang-diagnostic-error]
| std::pair<size_t, unsigned long long> cur = *q.begin(); | |
| std::pair<std::size_t, unsigned long long> cur = *q.begin(); |
Additional context
/usr/include/x86_64-linux-gnu/c++/12/bits/c++config.h:297: 'std::size_t' declared here
typedef __SIZE_TYPE__ size_t;
^| @@ -0,0 +1,6 @@ | |||
| #pragma once | |||
|
|
|||
| #include <graph.hpp> | |||
There was a problem hiding this comment.
warning: 'graph.hpp' file not found [clang-diagnostic-error]
#include <graph.hpp>
^|
|
||
| class FindCutVertexesFunction : public TinUpFunction { | ||
| public: | ||
| FindCutVertexesFunction(size_t n) : TinUpFunction(n) {} |
There was a problem hiding this comment.
warning: constructor does not initialize these fields: cut_vertexes_ [cppcoreguidelines-pro-type-member-init]
task_02/src/cut_vertex_finder.cpp:29:
- std::vector<size_t> cut_vertexes_;
+ std::vector<size_t> cut_vertexes_{};| @@ -0,0 +1,6 @@ | |||
| #pragma once | |||
|
|
|||
| #include <graph.hpp> | |||
There was a problem hiding this comment.
warning: 'graph.hpp' file not found [clang-diagnostic-error]
#include <graph.hpp>
^| @@ -1,6 +1,155 @@ | |||
|
|
|||
| #include <gtest/gtest.h> | |||
There was a problem hiding this comment.
warning: 'gtest/gtest.h' file not found [clang-diagnostic-error]
#include <gtest/gtest.h>
^| @@ -0,0 +1,23 @@ | |||
| #pragma once | |||
|
|
|||
| #include <abstract_function.hpp> | |||
There was a problem hiding this comment.
warning: 'abstract_function.hpp' file not found [clang-diagnostic-error]
#include <abstract_function.hpp>
^
No description provided.