Borderou de evaluare (job #2814397)

Utilizator cosminradu1760Cosmin-Andrei Radu cosminradu1760 Data 8 decembrie 2021 00:12:10
Problema Diametrul unui arbore Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::bfs(int)': main.cpp:187:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 187 | for(int i = 1; i < distances.size(); i++) | ~~^~~~~~~~~~~~~~~~~~ main.cpp: In member function 'void Graph::stronglyConnectedComponents()': main.cpp:273:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare] 273 | for(int i = 0 ; i < sccs.size(); i++) | ~~^~~~~~~~~~~~~ main.cpp:276:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 276 | for(int j = 0; j < sz; j++) | ^~~ main.cpp:278:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 278 | fout<<"\n"; | ^~~~ main.cpp: In member function 'void Graph::HH()': main.cpp:344:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 344 | if(v > seq.size()) | ~~^~~~~~~~~~~~ main.cpp: In member function 'void Graph::MST()': main.cpp:408: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] 408 | 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::treeDiameter()': main.cpp:550:1: warning: no return statement in function returning non-void [-Wreturn-type] 550 | } | ^ main.cpp: In member function 'int Graph::minWeightVertex(std::vector<int>&, std::vector<int>&)': main.cpp:395:12: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized] 395 | return indexOfMin; | ^~~~~~~~~~ main.cpp: In member function 'void Graph::MST()': main.cpp:426:28: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized] 426 | mst[temp1] = nextVertex;
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms188kbKilled by Signal 110
22ms184kbKilled by Signal 110
32ms184kbKilled by Signal 110
42ms184kbKilled by Signal 110
511ms913kbKilled by Signal 110
644ms2863kbKilled by Signal 110
767ms3796kbKilled by Signal 110
8111ms5857kbKilled by Signal 110
9102ms13897kbKilled by Signal 110
10149ms7335kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?