Pagini recente » Borderou de evaluare (job #1485666) | Borderou de evaluare (job #1780215) | Borderou de evaluare (job #1172395) | Borderou de evaluare (job #1487752) | Borderou de evaluare (job #2512327)
Borderou de evaluare (job #2512327)
Raport evaluator
Compilare:
main.cpp: In member function 'void Dinic::add_edge(int, int, int)':
main.cpp:31:42: warning: narrowing conversion of '(&((Dinic*)this)->Dinic::gr.std::vector<_Tp, _Alloc>::operator[]<std::vector<Edge>, std::allocator<std::vector<Edge> > >(((std::vector<std::vector<Edge> >::size_type)y)))->std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >()' from 'std::vector<Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
gr[x].pb ({y, 0, cap, gr[y].size ()});
~~~~~~~~~~~^~
main.cpp:32:43: warning: narrowing conversion of '((&((Dinic*)this)->Dinic::gr.std::vector<_Tp, _Alloc>::operator[]<std::vector<Edge>, std::allocator<std::vector<Edge> > >(((std::vector<std::vector<Edge> >::size_type)x)))->std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >() - 1ul)' from 'std::vector<Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
gr[y].pb ({x, 0, 0, gr[x].size () - 1});
~~~~~~~~~~~~~~^~~
main.cpp: In member function 'int Dinic::dfs(int, int, int)':
main.cpp:55:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (start[node] < gr[node].size ()) {
main.cpp: In member function 'int Dinic::maxflow()':
main.cpp:74:49: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
while (flow = dfs (source, sink, INF))
^
main.cpp: In function 'int main()':
main.cpp:86:15: warning: unused variable 'a' [-Wunused-variable]
int n, m, a, b;
^
main.cpp:86:18: warning: unused variable 'b' [-Wunused-variable]
int n, m, a, b;
^
main.cpp:82:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("drumuri2.in", "r", stdin);
^
main.cpp:83:42: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen ("drumuri2.out", "w", stdout);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 3ms | 131kb | OK | 10 |
4 | 3ms | 131kb | OK | 10 |
5 | 3ms | 131kb | OK | 10 |
6 | 4ms | 262kb | OK | 10 |
7 | 4ms | 262kb | OK | 10 |
8 | 5ms | 262kb | OK | 10 |
9 | 8ms | 393kb | OK | 10 |
10 | 5ms | 262kb | OK | 10 |
Punctaj total | 100 |