Pagini recente » Borderou de evaluare (job #596882) | Borderou de evaluare (job #2906686) | Borderou de evaluare (job #1031754) | Borderou de evaluare (job #1072449) | Borderou de evaluare (job #2587855)
Borderou de evaluare (job #2587855)
Raport evaluator
Compilare:
main.cpp: In member function 'void maxFlow::addEdge(int, int, int)':
main.cpp:41:54: warning: narrowing conversion of '(&((maxFlow*)this)->maxFlow::g.std::vector<_Tp, _Alloc>::operator[]<std::vector<Edge>, std::allocator<std::vector<Edge> > >(((std::vector<std::vector<Edge> >::size_type)to)))->std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >()' from 'std::vector<Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
g[from].push_back({to, 0, cap, g[to].size()});
~~~~~~~~~~^~
main.cpp:42:57: warning: narrowing conversion of '((&((maxFlow*)this)->maxFlow::g.std::vector<_Tp, _Alloc>::operator[]<std::vector<Edge>, std::allocator<std::vector<Edge> > >(((std::vector<std::vector<Edge> >::size_type)from)))->std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >() - 1ul)' from 'std::vector<Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
g[to].push_back({from, 0, 0, g[from].size() - 1});
~~~~~~~~~~~~~~~^~~
main.cpp: In member function 'int maxFlow::dfs(int, int)':
main.cpp:66:43: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int &h = rem[node]; h < g[node].size(); h++){
~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:100:9: warning: unused variable 't' [-Wunused-variable]
int t,i,j;
^
main.cpp:100:11: warning: unused variable 'i' [-Wunused-variable]
int t,i,j;
^
main.cpp:100:13: warning: unused variable 'j' [-Wunused-variable]
int t,i,j;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 2ms | 131kb | OK | 10 | 10 |
4 | 3ms | 131kb | OK | 10 | 10 |
5 | 3ms | 131kb | OK | 10 | 10 |
6 | 3ms | 131kb | OK | 10 | 10 |
7 | 5ms | 262kb | OK | 10 | 10 |
8 | 8ms | 393kb | OK | 10 | 30 |
9 | 9ms | 393kb | OK | 10 |
10 | 11ms | 393kb | OK | 10 |
Punctaj total | 100 |