Pagini recente » Borderou de evaluare (job #1218381) | Borderou de evaluare (job #1111438) | Borderou de evaluare (job #36338) | Borderou de evaluare (job #799323) | Borderou de evaluare (job #2806759)
Borderou de evaluare (job #2806759)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::bfs(int)':
main.cpp:142:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
142 | for(int i = 1; i < distances.size(); i++)
| ~~^~~~~~~~~~~~~~~~~~
main.cpp: In member function 'void Graph::stronglyConnectedComponents()':
main.cpp:228:23: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
228 | for(int i = 0 ; i < sccs.size(); i++)
| ~~^~~~~~~~~~~~~
main.cpp:231:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
231 | for(int j = 0; j < sz; j++)
| ^~~
main.cpp:233:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
233 | fout<<"\n";
| ^~~~
main.cpp: In member function 'void Graph::HH()':
main.cpp:299:14: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
299 | if(v > seq.size())
| ~~^~~~~~~~~~~~
main.cpp: In member function 'void Graph::MST()':
main.cpp:363: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]
363 | 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:350:12: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized]
350 | return indexOfMin;
| ^~~~~~~~~~
main.cpp: In member function 'void Graph::MST()':
main.cpp:395:16: warning: 'sum' may be used uninitialized in this function [-Wmaybe-uninitialized]
395 | fout<<sum<<"\n";
| ^~~~
main.cpp:380:51: warning: 'indexOfMin' may be used uninitialized in this function [-Wmaybe-uninitialized]
380 | mst[weights[nextVertex][j].first] = nextVertex;
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 184kb | Cost incorect | 0 |
2 | 2ms | 184kb | Cost incorect | 0 |
3 | 2ms | 184kb | Cost incorect | 0 |
4 | 2ms | 184kb | Cost incorect | 0 |
5 | 2ms | 184kb | Cost incorect | 0 |
6 | 1000ms | 4907kb | Time limit exceeded | 0 |
7 | 1003ms | 10731kb | Time limit exceeded | 0 |
8 | 764ms | 2293kb | Cost incorect | 0 |
9 | 98ms | 1966kb | Cost incorect | 0 |
10 | 1002ms | 8470kb | Time limit exceeded | 0 |
Punctaj total | 0 |