Borderou de evaluare (job #2803545)

Utilizator Tache_RoxanaTache Roxana Tache_Roxana Data 20 noiembrie 2021 10:46:22
Problema Arbore partial de cost minim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 70

Raport evaluator

Compilare: main.cpp: In member function 'std::vector<std::__cxx11::list<Graph::nodeStruct> > Graph::transposed()': main.cpp:20: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] 20 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In constructor 'Graph::Graph(std::vector<std::tuple<int, int, int> >&, int, bool)': main.cpp:88:17: warning: structured bindings only available with '-std=c++17' or '-std=gnu++17' 88 | for(auto[node1, node2, cost]: data) { | ^ main.cpp: In function 'std::ostream& operator<<(std::ostream&, Graph)': main.cpp:96: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] 96 | for(int i = 0; i < graph.adjacent.size(); i++) { | ~~^~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In member function 'int Graph::connected()': main.cpp:107: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] 107 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::stack<int> Graph::topologicalSort()': main.cpp:125: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] 125 | 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:136:27: 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] 136 | for (int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<std::vector<int> > Graph::hardConnected()': main.cpp:146: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] 146 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In member function 'std::vector<int> Graph::dijkstra(int)': main.cpp:164:13: warning: unused variable 'cost' [-Wunused-variable] 164 | int cost = 0; | ^~~~ main.cpp: In member function 'std::pair<std::vector<int>, bool> Graph::bellmanFord(int)': main.cpp:194:41: 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] 194 | if(visited[i.node2] >= adjacent.size()) main.cpp: In member function 'std::pair<std::vector<Graph::nodeStruct>, int> Graph::minimumTreeKruskall()': main.cpp:207:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 207 | for(int i = 0; i < parents.size(); i++) | ~~^~~~~~~~~~~~~~~~ main.cpp:209: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] 209 | for(int i = 0; i < adjacent.size(); i++) | ~~^~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:242:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<Graph::nodeStruct>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 242 | for(int i = 0; i < graph.first.size(); i++) | ~~^~~~~~~~~~~~~~~~~~~~ main.cpp:231:15: warning: unused variable 'start' [-Wunused-variable] 231 | int n, m, start; | ^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
111ms184kbCorect10
21ms184kbCorect10
31ms184kbCorect10
41ms184kbCorect10
51ms184kbCorect10
61000ms9818kbTime limit exceeded0
71001ms18432kbTime limit exceeded0
8602ms4206kbCorect10
9192ms4718kbCorect10
101005ms16207kbTime limit exceeded0
Punctaj total70

Ceva nu functioneaza?