Borderou de evaluare (job #2247327)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 28 septembrie 2018 13:08:01
Problema Smart Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In member function ‘void maxFlow::addEdge(int, int, int)’: user.cpp:25:39: warning: narrowing conversion of ‘(((maxFlow*)this)->maxFlow::E.std::vector<_Tp, _Alloc>::size<maxFlow::Edge, std::allocator<maxFlow::Edge> >() + 1u)’ from ‘std::vector<maxFlow::Edge>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] E.push_back({x, y, c, 0, E.size() + 1}); ~~~~~~~~~^~~ user.cpp:27:39: warning: narrowing conversion of ‘(((maxFlow*)this)->maxFlow::E.std::vector<_Tp, _Alloc>::size<maxFlow::Edge, std::allocator<maxFlow::Edge> >() - 1u)’ from ‘std::vector<maxFlow::Edge>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing] E.push_back({y, x, 0, 0, E.size() - 1}); ~~~~~~~~~^~~ user.cpp: In member function ‘int maxFlow::baga(int, int)’: user.cpp:55:43: warning: suggest parentheses around comparison in operand of ‘==’ [-Wparentheses] if (minim == E[E[it].inv].ramas() > 0 || from[E[it].other(d)] == -1) ~~~~~~~~~~~~~~~~~~~~~^~~ user.cpp: In function ‘int main()’: user.cpp:85:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("smart.in", "r", stdin); ^ user.cpp:86:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("smart.out", "w", stdout); ^ user.cpp:89:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d ", &n, &k); ^ user.cpp:93:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", s + 1); ^ user.cpp:121:16: warning: ‘y’ may be used uninitialized in this function [-Wmaybe-uninitialized] f += r.baga(0, t * nr + y); ~~~~~~^~~~~~~~~~~~~~~ user.cpp:91:7: warning: ‘x’ may be used uninitialized in this function [-Wmaybe-uninitialized] int x, y; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
132ms5128kbOK10
28ms2712kbOK10
316ms2696kbOK10
460ms5104kbOK10
564ms5120kbOK10
6208ms8080kbOK10
752ms8056kbOK10
832ms3388kbOK10
9180ms8068kbOK10
10268ms8168kbOK10
Punctaj total100

Ceva nu functioneaza?