Pagini recente » Borderou de evaluare (job #1586883) | Borderou de evaluare (job #1354553) | Borderou de evaluare (job #255599) | Borderou de evaluare (job #1350479) | Borderou de evaluare (job #2814410)
Borderou de evaluare (job #2814410)
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::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 |
1 | 2ms | 184kb | OK | 10 |
2 | 2ms | 184kb | OK | 10 |
3 | 2ms | 184kb | OK | 10 |
4 | 2ms | 184kb | OK | 10 |
5 | 11ms | 962kb | OK | 10 |
6 | 44ms | 2863kb | OK | 10 |
7 | 68ms | 3796kb | OK | 10 |
8 | 120ms | 5746kb | OK | 10 |
9 | 107ms | 13934kb | OK | 10 |
10 | 163ms | 7335kb | OK | 10 |
Punctaj total | 100 |