Borderou de evaluare (job #2545853)

Utilizator AlexandruLuchianov1Alex Luchianov AlexandruLuchianov1 Data 13 februarie 2020 16:43:08
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 100

Raport evaluator

Compilare: main.cpp: In member function 'void Graph::addedge(int, int, int)': main.cpp:43:41: warning: narrowing conversion of '(&((Graph*)this)->Graph::g.std::vector<_Tp, _Alloc>::operator[]<std::vector<Graph::Edge>, std::allocator<std::vector<Graph::Edge> > >(((std::vector<std::vector<Graph::Edge> >::size_type)y)))->std::vector<_Tp, _Alloc>::size<Graph::Edge, std::allocator<Graph::Edge> >()' from 'std::vector<Graph::Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing] g[x].push_back({y, 0, cap, g[y].size()}); ~~~~~~~~~^~ main.cpp:44:42: warning: narrowing conversion of '((&((Graph*)this)->Graph::g.std::vector<_Tp, _Alloc>::operator[]<std::vector<Graph::Edge>, std::allocator<std::vector<Graph::Edge> > >(((std::vector<std::vector<Graph::Edge> >::size_type)x)))->std::vector<_Tp, _Alloc>::size<Graph::Edge, std::allocator<Graph::Edge> >() - 1ul)' from 'std::vector<Graph::Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing] g[y].push_back({x, 0, 0, g[x].size() - 1}); ~~~~~~~~~~~~^~~ main.cpp: In member function 'bool Graph::BFS()': main.cpp:55:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int h = 0; h < g[node].size(); h++){ ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'int Graph::DFS(int, int)': main.cpp:70:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int &h = rem[node]; h < g[node].size(); h++){ ~~^~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK1010
22ms131kbOK1010
32ms131kbOK1010
43ms131kbOK1010
53ms131kbOK1010
63ms131kbOK1010
75ms262kbOK1010
89ms393kbOK1030
910ms393kbOK10
1013ms393kbOK10
Punctaj total100

Ceva nu functioneaza?