Borderou de evaluare (job #2340311)

Utilizator theodor.moroianuTheodor Moroianu theodor.moroianu Data 10 februarie 2019 11:23:06
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void Dinic::add_edge(int, int, int)': main.cpp:14:39: warning: narrowing conversion of '((Dinic*)this)->Dinic::edges.std::vector<_Tp, _Alloc>::size<Dinic::Edge, std::allocator<Dinic::Edge> >()' from 'std::vector<Dinic::Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing] Edge a = { to, cap, edges.size() }; ~~~~~~~~~~^~ main.cpp:17:34: warning: narrowing conversion of '((Dinic*)this)->Dinic::edges.std::vector<_Tp, _Alloc>::size<Dinic::Edge, std::allocator<Dinic::Edge> >()' from 'std::vector<Dinic::Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing] a = { from, 0, edges.size() }; ~~~~~~~~~~^~ main.cpp: In member function 'bool Dinic::bfs()': main.cpp:25:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int top = 0; top < q.size(); top++) { ~~~~^~~~~~~~~~ main.cpp: In constructor 'Dinic::Dinic(int, int, int)': main.cpp:11:12: warning: 'Dinic::n' will be initialized after [-Wreorder] int S, D, n; ^ main.cpp:11:6: warning: 'int Dinic::S' [-Wreorder] int S, D, n; ^ main.cpp:63:5: warning: when initialized here [-Wreorder] Dinic(int n = 0, int S = 0, int D = 0) : n(n + 1), S(S), D(D), h(vector <int>(n + 1)), ^~~~~ main.cpp:11:9: warning: 'Dinic::D' will be initialized after [-Wreorder] int S, D, n; ^ main.cpp:10:26: warning: 'std::vector<int> Dinic::h' [-Wreorder] vector <int> head, act, h; ^ main.cpp:63:5: warning: when initialized here [-Wreorder] Dinic(int n = 0, int S = 0, int D = 0) : n(n + 1), S(S), D(D), h(vector <int>(n + 1)), ^~~~~ main.cpp:10:26: warning: 'Dinic::h' will be initialized after [-Wreorder] vector <int> head, act, h; ^ main.cpp:10:15: warning: 'std::vector<int> Dinic::head' [-Wreorder] vector <int> head, act, h; ^~~~ main.cpp:63:5: warning: when initialized here [-Wreorder] Dinic(int n = 0, int S = 0, int D = 0) : n(n + 1), S(S), D(D), h(vector <int>(n + 1)), ^~~~~ main.cpp: In function 'int main()': main.cpp:72:31: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d%d", &n, &m); ^ main.cpp:77:41: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d%d%d", &a, &b, &c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK1010
22ms131kbOK1010
32ms131kbOK1010
42ms131kbOK1010
52ms131kbOK1010
63ms131kbOK1010
75ms262kbOK1010
88ms331kbOK1030
99ms393kbOK10
1012ms393kbOK10
Punctaj total100

Ceva nu functioneaza?