Borderou de evaluare (job #2693854)
Utilizator | Data | 7 ianuarie 2021 12:01:33 | |
---|---|---|---|
Problema | Dragon Ball Z | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'int Graph::findLowestCycleContainingSource() const':
main.cpp:71:21: error: expected unqualified-id before '[' token
auto[neighbourIndex, edgeCost] = edge;
^
main.cpp:72:41: error: 'neighbourIndex' was not declared in this scope
auto neighbour = &nodes[neighbourIndex];
^~~~~~~~~~~~~~
main.cpp:82:115: error: 'edgeCost' was not declared in this scope
lowestCycleCost = min(lowestCycleCost, node->distanceFromSource + neighbour->distanceFromSource + edgeCost);
^~~~~~~~
main.cpp:70:24: warning: unused variable 'edge' [-Wunused-variable]
for (auto &edge : nodes[i].Edges) {
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !