Borderou de evaluare (job #2813318)

Utilizator monicaandreea46Girbea Monica monicaandreea46 Data 6 decembrie 2021 12:36:48
Problema Componente tare conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 30

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::printGraph()': main.cpp:150:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 150 | for(int j = 0; j < adlist[i].size(); ++j) | ~~^~~~~~~~~~~~~~~~~~ main.cpp: In member function 'Graph Graph::transpose()': main.cpp:229:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 229 | for(j = 0; j < adlist[i].size(); ++j) | ~~^~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::stronglyConnectedComponents()': main.cpp:261:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 261 | for(j = 0; j < comp[i].size(); ++j) | ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'bool Graph::graphExistsHakimi(std::vector<int>&, int)': main.cpp:300:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 300 | if(degree > dg.size())//check if enough elements are in the list | ~~~~~~~^~~~~~~~~~~ main.cpp:303:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 303 | for(int i = 0; i < dg.size(); ++i) //substract 1 from the following | ~~^~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > Graph::criticalConnections(int, std::vector<std::vector<int> >&)': main.cpp:357:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 357 | for(int i = 0; i < connections.size(); ++i)//for each edge | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::biconnectedComponents()': main.cpp:387:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 387 | for(int i = 0; i < biconnected.size(); ++i) | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:390:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 390 | for(int j = 0 ; j < comp.size(); ++j) | ~~^~~~~~~~~~~~~ main.cpp: In member function 'void Graph::kruskal()': main.cpp:475:41: warning: comparison of integer expressions of different signedness: 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare] 475 | for(int i = 1; i <= m && sol.size() != n-1; ++i)//for each edge until we choose n-1 | ~~~~~~~~~~~^~~~~~ main.cpp:490:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 490 | for(int i = 0; i < sol.size(); ++i) | ~~^~~~~~~~~~~~ main.cpp: In member function 'void Graph::dijkstra()': main.cpp:545:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 545 | for(int i = 0; i < adj_cost[node].size(); ++i)//for all nodes that "node" is connected to | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::bellmanford()': main.cpp:608:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 608 | for(int i = 0; i < adj_cost[node].size(); ++i) //for each neighbour | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:752:9: warning: unused variable 'i' [-Wunused-variable] 752 | int i, first, n, m; | ^ main.cpp:752:12: warning: unused variable 'first' [-Wunused-variable]
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms184kbCorect1030
22ms184kbCorect10
32ms184kbCorect10
42ms184kbCorect100
56ms401kbCorect10
616ms974kbKilled by Signal 110
720ms950kbKilled by Signal 1100
849ms2076kbKilled by Signal 110
982ms4259kbKilled by Signal 110
10107ms5947kbKilled by Signal 1100
Punctaj total30

Ceva nu functioneaza?