Pagini recente » Borderou de evaluare (job #2816526) | Borderou de evaluare (job #657216) | Borderou de evaluare (job #1086234) | Borderou de evaluare (job #2176938) | Borderou de evaluare (job #2616668)
Borderou de evaluare (job #2616668)
Raport evaluator
Compilare:
main.cpp: In instantiation of 'void Flow_Graph<Type>::AddEdge(int, int, Type) [with Type = int]':
main.cpp:211:26: required from here
main.cpp:125:45: warning: narrowing conversion of '(&((Flow_Graph<int>*)this)->Flow_Graph<int>::adj.std::vector<_Tp, _Alloc>::operator[]<std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> >, std::allocator<std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> > > >(((std::vector<std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> >, std::allocator<std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> > > >::size_type)to)))->std::vector<_Tp, _Alloc>::size<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> >()' from 'std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> >::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
Edge x {to, 0, C, adj[to].size()};
^
main.cpp:126:49: warning: narrowing conversion of '(&((Flow_Graph<int>*)this)->Flow_Graph<int>::adj.std::vector<_Tp, _Alloc>::operator[]<std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> >, std::allocator<std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> > > >(((std::vector<std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> >, std::allocator<std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> > > >::size_type)from)))->std::vector<_Tp, _Alloc>::size<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> >()' from 'std::vector<Flow_Graph<int>::Edge, std::allocator<Flow_Graph<int>::Edge> >::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing]
Edge y {from, 0, 0, adj[from].size()};
^
main.cpp: In instantiation of 'bool Flow_Graph<Type>::BFS() [with Type = int]':
main.cpp:184:22: required from 'Type Flow_Graph<Type>::MaxFlow() [with Type = int]'
main.cpp:214:30: required from here
main.cpp:144:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(Type it = 0; it < adj[from].size(); it++) {
main.cpp: In instantiation of 'Type Flow_Graph<Type>::DFS(Type, Type) [with Type = int]':
main.cpp:187:32: required from 'Type Flow_Graph<Type>::MaxFlow() [with Type = int]'
main.cpp:214:30: required from here
main.cpp:161:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(Type &it = rem[from]; it < adj[from].size(); it++) {
main.cpp: In function 'int main()':
main.cpp:200:38: 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);
^
main.cpp:201:40: 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);
^
main.cpp:204:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:209:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &x, &y, &f);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 3ms | 131kb | OK | 10 | 10 |
3 | 3ms | 131kb | OK | 10 | 10 |
4 | 3ms | 131kb | OK | 10 | 10 |
5 | 3ms | 131kb | OK | 10 | 10 |
6 | 3ms | 131kb | OK | 10 | 10 |
7 | 5ms | 262kb | OK | 10 | 10 |
8 | 9ms | 393kb | OK | 10 | 30 |
9 | 10ms | 393kb | OK | 10 |
10 | 13ms | 393kb | OK | 10 |
Punctaj total | 100 |