Pagini recente » Borderou de evaluare (job #2303526) | Borderou de evaluare (job #433660) | Borderou de evaluare (job #2158527) | Borderou de evaluare (job #591846) | Borderou de evaluare (job #2839750)
Borderou de evaluare (job #2839750)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::bfs(int)':
main.cpp:215:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
215 | for(int i = 1; i < distances.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::stronglyConnectedComponents()':
main.cpp:301:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
301 | for(int i = 0 ; i < sccs.size(); i++)
| ~~^~~~~~~~~~~~~
main.cpp:304:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
304 | for(int j = 0; j < sz; j++)
| ^~~
main.cpp:306:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
306 | fout<<"\n";
| ^~~~
main.cpp: In member function 'void Graph::HH()':
main.cpp:372:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
372 | if(v > seq.size())
| ~~^~~~~~~~~~~~
main.cpp: In member function 'void Graph::MST()':
main.cpp:436: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]
436 | 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:423:12: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized]
423 | return indexOfMin;
| ^~~~~~~~~~
main.cpp: In member function 'void Graph::MST()':
main.cpp:454:28: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized]
454 | mst[temp1] = nextVertex;
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 184kb | OK | 5 | 5 |
2 | 2ms | 184kb | OK | 5 | 5 |
3 | 2ms | 184kb | OK | 5 | 5 |
4 | 2ms | 184kb | OK | 5 | 5 |
5 | 2ms | 184kb | OK | 5 | 5 |
6 | 2ms | 184kb | OK | 5 | 10 |
7 | 2ms | 184kb | OK | 5 |
8 | 45ms | 1978kb | OK | 5 | 15 |
9 | 49ms | 1736kb | OK | 5 |
10 | 6ms | 409kb | OK | 5 |
11 | 78ms | 3379kb | OK | 5 | 20 |
12 | 121ms | 3031kb | OK | 5 |
13 | 88ms | 2924kb | OK | 5 |
14 | 169ms | 4042kb | OK | 5 |
15 | 221ms | 4849kb | OK | 5 | 15 |
16 | 169ms | 4222kb | OK | 5 |
17 | 11ms | 344kb | OK | 5 |
18 | 255ms | 6701kb | OK | 5 | 15 |
19 | 317ms | 7405kb | OK | 5 |
20 | 21ms | 872kb | OK | 5 |
Punctaj total | 100 |