Borderou de evaluare (job #2505849)
Utilizator | Data | 7 decembrie 2019 11:25:12 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'bool Vecin::operator<(const Vecin&) const':
main.cpp:21:5: error: expected ';' before '}' token
}
^
main.cpp: At global scope:
main.cpp:27:1: error: 'set' does not name a type
set<Vecin> q;
^~~
main.cpp: In function 'void solve()':
main.cpp:35:5: error: 'q' was not declared in this scope
q.insert({1,0});
^
main.cpp:44:22: error: 'dmin' was not declared in this scope
int nc = dmin[top] + v.cost;
^~~~
main.cpp:48:43: error: expected ']' before '}' token
q.erase({v.y, dmin[v.y});
^
main.cpp:50:40: error: expected ']' before '}' token
q.insert({v.y, dmin[v.y});
^
main.cpp: At global scope:
main.cpp:58:1: error: expected initializer before 'int'
int main()
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !