Pagini recente » Borderou de evaluare (job #613634) | Borderou de evaluare (job #115160) | Borderou de evaluare (job #2930560) | Borderou de evaluare (job #409803) | Borderou de evaluare (job #2261221)
Borderou de evaluare (job #2261221)
Raport evaluator
Compilare:
main.cpp: In member function 'void maxFlow::addEdge(int, int, int)':
main.cpp:33:39: warning: narrowing conversion of '(((maxFlow*)this)->maxFlow::E.std::vector<_Tp, _Alloc>::size<maxFlow::Edge, std::allocator<maxFlow::Edge> >() + 1ul)' from 'std::vector<maxFlow::Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
E.push_back({x, y, c, 0, E.size() + 1});
~~~~~~~~~^~~
main.cpp:35:39: warning: narrowing conversion of '(((maxFlow*)this)->maxFlow::E.std::vector<_Tp, _Alloc>::size<maxFlow::Edge, std::allocator<maxFlow::Edge> >() - 1ul)' from 'std::vector<maxFlow::Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
E.push_back({y, x, 0, 0, E.size() - 1});
~~~~~~~~~^~~
main.cpp: In member function 'int maxFlow::baga(int, int)':
main.cpp:63:43: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses]
if (minim == E[E[it].inv].ramas() > 0 || from[E[it].other(d)] == -1)
~~~~~~~~~~~~~~~~~~~~~^~~
main.cpp: In function 'int main()':
main.cpp:123:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("asfalt.in", "r", stdin);
^
main.cpp:124:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("asfalt.out", "w", stdout);
^
main.cpp:127:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &m, &s, &d);
^
main.cpp:131: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 |
1 | 2ms | 131kb | Corect! | 10 |
2 | 10ms | 1044kb | Corect! | 10 |
3 | 6ms | 524kb | Corect! | 10 |
4 | 5ms | 524kb | Corect! | 10 |
5 | 7ms | 786kb | Corect! | 10 |
6 | 6ms | 655kb | Corect! | 10 |
7 | 8ms | 655kb | Corect! | 10 |
8 | 7ms | 524kb | Corect! | 10 |
9 | 8ms | 655kb | Corect! | 10 |
10 | 2ms | 131kb | Corect! | 10 |
Punctaj total | 100 |