Borderou de evaluare (job #2961156)

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

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, bool&) 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:100: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] 100 | if (arcs[adj.node] > node_cnt - 1) main.cpp: In member function 'DistanceMatrix Graph::roy_floyd() const': main.cpp:114:30: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 114 | for (node_t node = 1; node <= node_cnt; ++node) | ~~~~~^~~~~~~~~~~ main.cpp:117:30: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 117 | for (node_t node = 1; node <= node_cnt; ++node) | ~~~~~^~~~~~~~~~~ main.cpp:121:24: 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 k = 1; k <= node_cnt; ++k) | ~~^~~~~~~~~~~ main.cpp:122:25: 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 i = 1; i <= node_cnt; ++i) | ~~^~~~~~~~~~~ main.cpp:123:26: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 123 | for (node_t j = 1; j <= node_cnt; ++j) | ~~^~~~~~~~~~~ main.cpp:126:24: 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 i = 1; i <= node_cnt; ++i) | ~~^~~~~~~~~~~ main.cpp:127:25: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 127 | 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:134:40: warning: comparison of integer expressions of different signedness: 'node_t' {aka 'int'} and 'const size_t' {aka 'const long unsigned int'} [-Wsign-compare] 134 | assert(1 <= start_node && start_node <= node_cnt); | ~~~~~~~~~~~^~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:167:23: warning: unused variable 'start_node' [-Wunused-variable] 167 | node_t node1, node2, start_node; | ^~~~~~~~~~ main.cpp:169:15: warning: unused variable 'j' [-Wunused-variable] 169 | int N, M, i, j; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1500ms184kbTime limit exceeded00
2504ms184kbTime limit exceeded00
30ms184kbOK55
40ms184kbOK55
50ms184kbOK55
60ms184kbOK50
7505ms184kbTime limit exceeded0
810ms1495kbOK50
918ms1957kbOK5
10500ms184kbTime limit exceeded0
1124ms2564kbOK520
1255ms4149kbOK5
1332ms3211kbOK5
1472ms5390kbOK5
1599ms6508kbOK50
1674ms5230kbOK5
17500ms184kbTime limit exceeded0
18113ms7561kbOK50
19144ms9105kbOK5
20501ms315kbTime limit exceeded0
Punctaj total35

Ceva nu functioneaza?