Pagini recente » Cod sursa (job #1735507) | Cod sursa (job #2498214) | Cod sursa (job #1172908) | Borderou de evaluare (job #1782012) | Borderou de evaluare (job #2247146)
Borderou de evaluare (job #2247146)
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:80:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxflow.in", "r", stdin);
^
user.cpp:81:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("maxflow.out", "w", stdout);
^
user.cpp:84:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:88:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &x, &y, &c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 1336kb | OK | 10 | 10 |
2 | 0ms | 1328kb | OK | 10 | 10 |
3 | 0ms | 1344kb | OK | 10 | 10 |
4 | 0ms | 1348kb | OK | 10 | 10 |
5 | 0ms | 1340kb | OK | 10 | 10 |
6 | 0ms | 1360kb | OK | 10 | 10 |
7 | 0ms | 1484kb | OK | 10 | 10 |
8 | 4ms | 1568kb | OK | 10 | 30 |
9 | 8ms | 1564kb | OK | 10 |
10 | 12ms | 1644kb | OK | 10 |
Punctaj total | 100 |