Borderou de evaluare (job #2680168)
Utilizator | Data | 2 decembrie 2020 20:33:47 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'std::vector<int> shortest_path(const std::vector<std::vector<std::pair<int, int> > >&, int)':
main.cpp:17:24: error: 'INT_MAX' was not declared in this scope
dist.push_back(INT_MAX);
^~~~~~~
main.cpp:31:31: error: 'INT_MAX' was not declared in this scope
if(dist[y] != INT_MAX){
^~~~~~~
main.cpp: In function 'int main()':
main.cpp:63:23: error: 'INT_MAX' was not declared in this scope
cout << (dist[i] == INT_MAX ? 0 : dist[i]) << ' ';
^~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !