Borderou de evaluare (job #2822407)

Utilizator cosminradu1760Cosmin-Andrei Radu cosminradu1760 Data 23 decembrie 2021 22:46:58
Problema Parcurgere DFS - componente conexe Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::bfs(int)': main.cpp:213:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 213 | for(int i = 1; i < distances.size(); i++) | ~~^~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::stronglyConnectedComponents()': main.cpp:299:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 299 | for(int i = 0 ; i < sccs.size(); i++) | ~~^~~~~~~~~~~~~ main.cpp:302:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 302 | for(int j = 0; j < sz; j++) | ^~~ main.cpp:304:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 304 | fout<<"\n"; | ^~~~ main.cpp: In member function 'void Graph::HH()': main.cpp:370:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 370 | if(v > seq.size()) | ~~^~~~~~~~~~~~ main.cpp: In member function 'void Graph::MST()': main.cpp:434:23: warning: passing NULL to non-pointer argument 1 of 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]' [-Wconversion-null] 434 | mst.push_back(NULL); | ^~~~ In file included from /usr/include/c++/10/vector:67, from /usr/include/c++/10/queue:61, from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86, from main.cpp:1: /usr/include/c++/10/bits/stl_vector.h:1203:30: note: declared here 1203 | push_back(value_type&& __x) | ~~~~~~~~~~~~~^~~ main.cpp: In member function 'int Graph::minWeightVertex(std::vector<int>&, std::vector<int>&)': main.cpp:421:12: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized] 421 | return indexOfMin; | ^~~~~~~~~~ main.cpp: In member function 'void Graph::MST()': main.cpp:452:28: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized] 452 | mst[temp1] = nextVertex;
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms184kbOK5
22ms184kbOK5
32ms184kbOK5
411ms528kbOK5
52ms184kbOK5
62ms184kbOK5
72ms184kbOK5
82ms184kbOK5
92ms184kbOK5
102ms184kbOK5
1130ms1503kbOK5
1221ms1667kbOK5
1335ms2400kbOK5
1444ms2961kbOK5
1554ms3477kbOK5
1672ms4149kbOK5
1795ms11202kbOK5
1811ms3227kbOK5
1911ms3420kbOK5
2082ms5447kbOK5
Punctaj total100

Ceva nu functioneaza?