Borderou de evaluare (job #2343990)

Utilizator AlexandruLuchianov1Alex Luchianov AlexandruLuchianov1 Data 14 februarie 2019 17:18:59
Problema Teroristi Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 50

Raport evaluator

Compilare: main.cpp: In member function 'bool MaxFlow::bfs()': main.cpp:44: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 MaxFlow::dfs(int, int)': main.cpp:59:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int &h = rem[node]; h < g[node].size(); h++){ ~~^~~~~~~~~~~~~~~~ main.cpp: In member function 'void MaxFlow::addEdge(int, int, int)': main.cpp:77:33: warning: narrowing conversion of '((MaxFlow*)this)->MaxFlow::g[y].std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >()' from 'std::vector<Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing] g[x].push_back({y, g[y].size(),0, cap}); ~~~~~~~~~^~ main.cpp:78:36: warning: narrowing conversion of '(((MaxFlow*)this)->MaxFlow::g[x].std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >() - 1ul)' from 'std::vector<Edge>::size_type {aka long unsigned int}' to 'int' inside { } [-Wnarrowing] g[y].push_back({x, g[x].size() - 1,0, 0}); ~~~~~~~~~~~~^~~ main.cpp: In function 'int main()': main.cpp:140:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int h = 0;h < graph.g[node].size() ;h++){ ~~^~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms262kbOk!10
23ms262kbOk!10
33ms262kbOk!10
43ms262kbOk!10
54ms262kbOk!10
63ms131kbKilled by Signal 110
72ms131kbKilled by Signal 110
83ms131kbKilled by Signal 110
92ms131kbKilled by Signal 110
103ms131kbKilled by Signal 110
Punctaj total50

Ceva nu functioneaza?