Borderou de evaluare (job #2616668)

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

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
12ms131kbOK1010
23ms131kbOK1010
33ms131kbOK1010
43ms131kbOK1010
53ms131kbOK1010
63ms131kbOK1010
75ms262kbOK1010
89ms393kbOK1030
910ms393kbOK10
1013ms393kbOK10
Punctaj total100

Ceva nu functioneaza?