Borderou de evaluare (job #2587855)

Utilizator RazvanPanaiteRazvan Panaite RazvanPanaite Data 23 martie 2020 17:26:47
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

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
12ms131kbOK1010
22ms131kbOK1010
32ms131kbOK1010
43ms131kbOK1010
53ms131kbOK1010
63ms131kbOK1010
75ms262kbOK1010
88ms393kbOK1030
99ms393kbOK10
1011ms393kbOK10
Punctaj total100

Ceva nu functioneaza?