Borderou de evaluare (job #2616662)

Utilizator MatteoalexandruMatteo Verzotti Matteoalexandru Data 19 mai 2020 17:36:28
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In instantiation of 'void Flow_Graph<Type>::AddEdge(int, int, Type) [with Type = int]': main.cpp:208: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:182:22: required from 'Type Flow_Graph<Type>::MaxFlow() [with Type = int]' main.cpp:211: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:184:32: required from 'Type Flow_Graph<Type>::MaxFlow() [with Type = int]' main.cpp:211: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:197: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:198: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:201: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:206: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); ^ main.cpp: In member function 'Type Flow_Graph<Type>::DFS(Type, Type) [with Type = int]': main.cpp:177:9: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
161ms131kbTime limit exceeded00
261ms131kbTime limit exceeded00
361ms131kbTime limit exceeded00
461ms131kbTime limit exceeded00
561ms131kbTime limit exceeded00
661ms131kbTime limit exceeded00
761ms262kbTime limit exceeded00
861ms393kbTime limit exceeded00
961ms393kbTime limit exceeded0
1061ms393kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?