Pagini recente » Borderou de evaluare (job #216781) | Borderou de evaluare (job #1970575) | Borderou de evaluare (job #933813) | Borderou de evaluare (job #587201) | Borderou de evaluare (job #2633427)
Borderou de evaluare (job #2633427)
Raport evaluator
Compilare:
main.cpp: In member function 'void Graph::add_edge(int, int, int, ld)':
main.cpp:42:33: warning: narrowing conversion of '(&((Graph*)this)->Graph::g.std::vector<_Tp, _Alloc>::operator[]<std::vector<Graph::Edge>, std::allocator<std::vector<Graph::Edge> > >(((std::vector<std::vector<Graph::Edge> >::size_type)y)))->std::vector<_Tp, _Alloc>::size<Graph::Edge, std::allocator<Graph::Edge> >()' from 'std::vector<Graph::Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
g[x].push_back({y, g[y].size(), 0, cap, cost});
~~~~~~~~~^~
main.cpp:43:36: warning: narrowing conversion of '((&((Graph*)this)->Graph::g.std::vector<_Tp, _Alloc>::operator[]<std::vector<Graph::Edge>, std::allocator<std::vector<Graph::Edge> > >(((std::vector<std::vector<Graph::Edge> >::size_type)x)))->std::vector<_Tp, _Alloc>::size<Graph::Edge, std::allocator<Graph::Edge> >() - 1ul)' from 'std::vector<Graph::Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
g[y].push_back({x, g[x].size() - 1, 0, 0, -cost});
~~~~~~~~~~~~^~~
main.cpp: In member function 'void Graph::bellman()':
main.cpp:59:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int h = 0; h < g[node].size(); h++) {
~~^~~~~~~~~~~~~~~~
main.cpp: In member function 'std::pair<int, long double> Graph::dijkstra()':
main.cpp:90:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int h = 0; h < g[node].size(); h++) {
~~^~~~~~~~~~~~~~~~
main.cpp:107:11: warning: unused variable 'start' [-Wunused-variable]
int start = sink;
^~~~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Bine ! | 10 |
2 | 14ms | 393kb | Bine ! | 10 |
3 | 68ms | 1048kb | Bine ! | 10 |
4 | 158ms | 2621kb | Bine ! | 10 |
5 | 286ms | 3145kb | Bine ! | 10 |
6 | 370ms | 3538kb | Bine ! | 10 |
7 | 440ms | 3801kb | Bine ! | 10 |
8 | 503ms | 4063kb | Bine ! | 10 |
9 | 581ms | 4194kb | Bine ! | 10 |
10 | 642ms | 4456kb | Bine ! | 10 |
Punctaj total | 100 |