Borderou de evaluare (job #2965770)
Utilizator | Data | 16 ianuarie 2023 07:41:11 | |
---|---|---|---|
Problema | Flux maxim de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:86:5: error: 'bitset' does not name a type
86 | bitset<351> b;
| ^~~~~~
main.cpp: In function 'bool bfs()':
main.cpp:108:13: error: 'struct nod' has no member named 'b'
108 | H.top().b[src] = true;
| ^
main.cpp:125:36: error: 'struct nod' has no member named 'b'
125 | if (!flow[x.x][i] || x.b[i] ||
| ^
main.cpp:130:92: error: 'struct nod' has no member named 'b'
130 | add = {i, min(x.flow, flow[x.x][i]), d[i], x.costSum + cost[x.x][i] + bound, x.b};
| ^
main.cpp:130:93: error: no match for 'operator=' (operand types are 'nod' and '<brace-enclosed initializer list>')
130 | add = {i, min(x.flow, flow[x.x][i]), d[i], x.costSum + cost[x.x][i] + bound, x.b};
| ^
main.cpp:82:8: note: candidate: 'constexpr nod& nod::operator=(const nod&)'
82 | struct nod {
| ^~~
main.cpp:82:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const nod&'
main.cpp:82:8: note: candidate: 'constexpr nod& nod::operator=(nod&&)'
main.cpp:82:8: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'nod&&'
main.cpp:131:17: error: 'struct nod' has no member named 'b'
131 | add.b[i] = true;
| ^
main.cpp: In function 'int maxFlow()':
main.cpp:141:18: warning: unused variable 'nr' [-Wunused-variable]
141 | int res = 0, nr = 0;
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !