Borderou de evaluare (job #2966058)

Utilizator PHOSSESSEDProsie Radu-Teodor PHOSSESSED Data 16 ianuarie 2023 18:25:58
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'bool Graph::BFS()': main.cpp:27:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Graph::Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 27 | for(int h = 0; h < g[node].size(); h++){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'int Graph::DFS(int, int)': main.cpp:42:33: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Graph::Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 42 | for(int &h = rem[node]; h < g[node].size(); h++){ | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::_addedge(int, int, int)': main.cpp:65:41: warning: narrowing conversion of '(&((Graph*)this)->Graph::g.std::vector<std::vector<Graph::Edge> >::operator[](((std::vector<std::vector<Graph::Edge> >::size_type)y)))->std::vector<Graph::Edge>::size()' from 'std::vector<Graph::Edge>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing] 65 | g[x].push_back({y, 0, cap, g[y].size()}); | ~~~~~~~~~^~ main.cpp:66:42: warning: narrowing conversion of '((&((Graph*)this)->Graph::g.std::vector<std::vector<Graph::Edge> >::operator[](((std::vector<std::vector<Graph::Edge> >::size_type)x)))->std::vector<Graph::Edge>::size() - 1)' from 'std::vector<Graph::Edge>::size_type' {aka 'long unsigned int'} to 'int' [-Wnarrowing] 66 | g[y].push_back({x, 0, 0, g[x].size() - 1}); | ~~~~~~~~~~~~^~~ main.cpp: In function 'int main()': main.cpp:90:22: error: no matching function for call to 'Graph::Graph(int&, int, int&)' 90 | Graph graph(a,1,a); | ^ main.cpp:57:3: note: candidate: 'Graph::Graph(int)' 57 | Graph(int n_){ | ^~~~~ main.cpp:57:3: note: candidate expects 1 argument, 3 provided main.cpp:6:7: note: candidate: 'Graph::Graph(const Graph&)' 6 | class Graph{ | ^~~~~ main.cpp:6:7: note: candidate expects 1 argument, 3 provided main.cpp:6:7: note: candidate: 'Graph::Graph(Graph&&)' main.cpp:6:7: note: candidate expects 1 argument, 3 provided Non zero exit status: 1

Ceva nu functioneaza?