Borderou de evaluare (job #2815428)

Utilizator Tache_RoxanaTache Roxana Tache_Roxana Data 9 decembrie 2021 16:33:55
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'std::ostream& operator<<(std::ostream&, Graph)': main.cpp:32:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 32 | for(int i = 0; i < graph.adjacent.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In constructor 'Graph::Graph(std::vector<std::tuple<int, int, int> >&, int&, bool)': main.cpp:60:13: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 60 | for(auto[node1, node2, cost]: data) { | ^ main.cpp: In member function 'std::vector<std::__cxx11::list<Graph::nodeStruct> > Graph::transposed()': main.cpp:68:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 68 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Graph::connected()': main.cpp:158:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 158 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::stack<int> Graph::topologicalSort()': main.cpp:177:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 177 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::pair<std::vector<std::vector<int> >, std::vector<std::pair<int, int> > > Graph::biconnected()': main.cpp:188:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 188 | for (int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > Graph::hardConnected()': main.cpp:198:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 198 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::pair<std::vector<int>, bool> Graph::bellmanFord(int)': main.cpp:244:37: warning: comparison of integer expressions of different signedness: '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 244 | if(visited[i.node2] >= adjacent.size()) main.cpp: In member function 'std::pair<std::vector<Graph::nodeStruct>, int> Graph::minimumTreeKruskall()': main.cpp:256:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 256 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp:269:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::__cxx11::list<Graph::nodeStruct> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 269 | if(nrEdges == adjacent.size() - 1) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'bool Graph::havelHakimi(std::deque<int, std::allocator<int> >)': main.cpp:299:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int, std::allocator<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 299 | if(i >= degrees.size()) | ~~^~~~~~~~~~~~~~~~~ main.cpp:309:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::deque<int, std::allocator<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 309 | for(int i = 0; i < degrees.size(); i++) { | ~~^~~~~~~~~~~~~~~~ main.cpp:307:19: warning: unused variable 'currentDegree' [-Wunused-variable] 307 | const int currentDegree = degrees[0]; | ^~~~~~~~~~~~~ main.cpp:302:9: warning: unused variable 'nrNodes' [-Wunused-variable] 302 | int nrNodes = degrees.size();
Test Timp executie Memorie folosita Mesaj Punctaj/test
150ms200kbTime limit exceeded0
254ms200kbTime limit exceeded0
350ms200kbTime limit exceeded0
454ms200kbTime limit exceeded0
554ms331kbTime limit exceeded0
650ms331kbTime limit exceeded0
750ms331kbTime limit exceeded0
850ms331kbTime limit exceeded0
950ms458kbTime limit exceeded0
1050ms462kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?