Borderou de evaluare (job #2261221)

Utilizator MiricaMateiMirica Matei MiricaMatei Data 16 octombrie 2018 08:44:40
Problema Asfalt Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 100

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
12ms131kbCorect!10
210ms1044kbCorect!10
36ms524kbCorect!10
45ms524kbCorect!10
57ms786kbCorect!10
66ms655kbCorect!10
78ms655kbCorect!10
87ms524kbCorect!10
98ms655kbCorect!10
102ms131kbCorect!10
Punctaj total100

Ceva nu functioneaza?