Borderou de evaluare (job #2055513)
Utilizator | Data | 3 noiembrie 2017 12:45:34 | |
---|---|---|---|
Problema | Flux maxim de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void addedge(int, int, int, int)’:
user.cpp:39:32: warning: narrowing conversion of ‘g[y].std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >()’ from ‘std::vector<Edge>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing]
Edge direct = {y, g[y].size(), 0, cap, cost};
^
user.cpp:40:32: warning: narrowing conversion of ‘g[x].std::vector<_Tp, _Alloc>::size<Edge, std::allocator<Edge> >()’ from ‘std::vector<Edge>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing]
Edge inverse = {x, g[x].size(), 0, 0, -cost};
^
user.cpp: In function ‘void bellmanford()’:
user.cpp:48:32: error: ‘INT_MAX’ was not declared in this scope
fill(dist + 1, dist + n + 1, INT_MAX);
^
user.cpp:57:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[from].size(); i++) {
^
user.cpp: In function ‘void dijkstra()’:
user.cpp:79:19: error: ‘INT_MAX’ was not declared in this scope
pushflow[src] = INT_MAX;
^
user.cpp:87:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < g[from].size(); i++) {
^
user.cpp: In function ‘void mincostflow(int&, int&)’:
user.cpp:111:25: error: ‘INT_MAX’ was not declared in this scope
while(distdij[dest] < INT_MAX) {
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !