Borderou de evaluare (job #2373187)
Utilizator | Data | 7 martie 2019 12:39:01 | |
---|---|---|---|
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 'void Read()':
main.cpp:6:13: error: 'INT_MAX' was not declared in this scope
#define INF INT_MAX
^
main.cpp:25:26: note: in expansion of macro 'INF'
dist[i]=(i==1)?0:INF;
^~~
main.cpp: In function 'void Dijkstra()':
main.cpp:6:13: error: 'INT_MAX' was not declared in this scope
#define INF INT_MAX
^
main.cpp:43:27: note: in expansion of macro 'INF'
if (dist[source]==INF)
^~~
main.cpp:6:13: error: 'INT_MAX' was not declared in this scope
#define INF INT_MAX
^
main.cpp:50:33: note: in expansion of macro 'INF'
if (dist[nextnode]==INF || (dist[nextnode]!=INF && dist[nextnode]>dist[source]+G[source][i].second))
^~~
main.cpp: In function 'void Write()':
main.cpp:6:13: error: 'INT_MAX' was not declared in this scope
#define INF INT_MAX
^
main.cpp:68:22: note: in expansion of macro 'INF'
if (dist[i]==INF)
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !