Borderou de evaluare (job #2961159)

Utilizator rastervcrastervc rastervc Data 5 ianuarie 2023 22:20:34
Problema Algoritmul Bellman-Ford Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'Graph& Graph::operator=(Graph&&)': main.cpp:56:2: warning: no return statement in function returning non-void [-Wreturn-type] 55 | adj_list = std::move(graph.adj_list); +++ |+ return *this; 56 | } | ^ In file included from /usr/include/c++/10/cassert:44, from main.cpp:8: main.cpp: In member function 'std::vector<long long int> Graph::SPFA(node_t) const': main.cpp:75:40: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 75 | assert(1 <= start_node && start_node <= node_cnt); | ~~~~~~~~~~~^~~~~~~~~~~ main.cpp:99:26: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'long unsigned int' [-Wsign-compare] 99 | if (arcs[adj.node] > node_cnt - 1) main.cpp: In member function 'DistanceMatrix Graph::roy_floyd() const': main.cpp:113:30: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 113 | for (node_t node = 1; node <= node_cnt; ++node) | ~~~~~^~~~~~~~~~~ main.cpp:116:30: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 116 | for (node_t node = 1; node <= node_cnt; ++node) | ~~~~~^~~~~~~~~~~ main.cpp:120:24: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 120 | for (node_t k = 1; k <= node_cnt; ++k) | ~~^~~~~~~~~~~ main.cpp:121:25: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 121 | for (node_t i = 1; i <= node_cnt; ++i) | ~~^~~~~~~~~~~ main.cpp:122:26: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 122 | for (node_t j = 1; j <= node_cnt; ++j) | ~~^~~~~~~~~~~ main.cpp:125:24: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 125 | for (node_t i = 1; i <= node_cnt; ++i) | ~~^~~~~~~~~~~ main.cpp:126:25: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 126 | for (node_t j = 1; j <= node_cnt; ++j) | ~~^~~~~~~~~~~ In file included from /usr/include/c++/10/cassert:44, from main.cpp:8: main.cpp: In member function 'std::vector<long long int> Graph::dijkstra(node_t) const': main.cpp:133:40: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 133 | assert(1 <= start_node && start_node <= node_cnt); | ~~~~~~~~~~~^~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:166:23: warning: unused variable 'start_node' [-Wunused-variable] 166 | node_t node1, node2, start_node; | ^~~~~~~~~~ main.cpp:168:15: warning: unused variable 'j' [-Wunused-variable] 168 | int N, M, i, j; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms184kbOK55
20ms184kbOK55
30ms184kbOK55
40ms184kbOK55
50ms184kbOK55
60ms184kbOK510
70ms184kbOK5
88ms1495kbOK515
920ms2023kbOK5
100ms184kbOK5
1124ms2564kbOK520
1254ms4149kbOK5
1340ms3223kbOK5
1472ms5455kbOK5
15100ms6549kbOK515
1673ms5316kbOK5
175ms184kbOK5
18114ms7581kbOK515
19142ms9048kbOK5
207ms315kbOK5
Punctaj total100

Ceva nu functioneaza?