Borderou de evaluare (job #3177629)

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

Raport evaluator

Eroare de compilare: main.cpp: In constructor 'DSU::DSU(int)': main.cpp:65:15: error: 'class DSU' has no member named 'size' 65 | this->size = vector<int>(n,0); | ^~~~ main.cpp: In member function 'int Graph::dykstra(int, int, int, int)': main.cpp:173: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] 173 | for(int i = 0 ; i < this->adjacency[current].size() ; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<int> Graph::zeroOneBFS(int)': main.cpp:205: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] 205 | for(int i = 0 ; i < this->adjacency[current].size(); i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Solution::rusuoaica()': main.cpp:359:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Edge>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 359 | 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:388:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 388 | for(int i = 0; i < flights.size() ; i++) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'int Solution::dragoni1(std::ifstream&, int, int*)': main.cpp:407:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 407 | for(int i = 1 ; i < costs.size() ; i++){ | ~~^~~~~~~~~~~~~~ main.cpp: In member function 'int Solution::dragoni2(std::ifstream&, int, int*)': main.cpp:450: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] 450 | for(int i = 0 ; i < graf[currentNode].size() ; i++){ | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:467:1: warning: control reaches end of non-void function [-Wreturn-type] 467 | } | ^ Non zero exit status: 1

Ceva nu functioneaza?