Borderou de evaluare (job #3177665)

Utilizator Matoka26Dogaru Mihail Danut Matoka26 Data 29 noiembrie 2023 18:06:09
Problema Apm2 Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'int Graph::dykstra(int, int, int, int)': main.cpp:174:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 174 | for(int i = 0 ; i < this->adjacency[current].size() ; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<int> Graph::zeroOneBFS(int)': main.cpp:206:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 206 | for(int i = 0 ; i < this->adjacency[current].size(); i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Solution::rusuoaica()': main.cpp:370:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 370 | for(int i = 0 ; i < newEdgeList.size() ; i++){ | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Solution::findCheapestPrice(int, std::vector<std::vector<int> >&, int, int, int)': main.cpp:399:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 399 | for(int i = 0; i < flights.size() ; i++) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'int Solution::dragoni1(std::ifstream&, int, int*)': main.cpp:418:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 418 | for(int i = 1 ; i < costs.size() ; i++){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'int Solution::dragoni2(std::ifstream&, int, int*)': main.cpp:461:31: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 461 | for(int i = 0 ; i < graf[currentNode].size() ; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Solution::apm2()': main.cpp:512:17: error: no matching function for call to 'Graph::Graph(int&)' 512 | Graph graf(m); | ^ main.cpp:106:7: note: candidate: 'Graph::Graph()' 106 | class Graph{ | ^~~~~ main.cpp:106:7: note: candidate expects 0 arguments, 1 provided main.cpp:106:7: note: candidate: 'Graph::Graph(const Graph&)' main.cpp:106:7: note: no known conversion for argument 1 from 'int' to 'const Graph&' main.cpp:106:7: note: candidate: 'Graph::Graph(Graph&&)' main.cpp:106:7: note: no known conversion for argument 1 from 'int' to 'Graph&&' main.cpp: In member function 'int Solution::dragoni2(std::ifstream&, int, int*)': main.cpp:478:1: warning: control reaches end of non-void function [-Wreturn-type] 478 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?