Borderou de evaluare (job #2602465)
Utilizator | Data | 16 aprilie 2020 23:54:28 | |
---|---|---|---|
Problema | Arbore partial de cost minim | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:60:14: error: expected unqualified-id before '[' token
auto [cost, node_a, node_b] = pq.top(); pq.pop();
^
main.cpp:61:26: error: 'node_a' was not declared in this scope
if (find(parent, node_a) == find(parent, node_b)) {
^~~~~~
main.cpp:61:51: error: 'node_b' was not declared in this scope
if (find(parent, node_a) == find(parent, node_b)) {
^~~~~~
main.cpp:65:34: error: 'node_a' was not declared in this scope
union_find(rank, parent, node_a, node_b);
^~~~~~
main.cpp:65:42: error: 'node_b' was not declared in this scope
union_find(rank, parent, node_a, node_b);
^~~~~~
main.cpp:67:23: error: 'cost' was not declared in this scope
final_cost += cost;
^~~~
main.cpp:72:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < ret.size(); ++i) {
~~^~~~~~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !