Borderou de evaluare (job #2577260)
Utilizator | Data | 8 martie 2020 20:59:14 | |
---|---|---|---|
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 dijsktra()':
main.cpp:35:19: error: 'INT_MAX' was not declared in this scope
dist[i] = INT_MAX;
^~~~~~~
main.cpp:65:23: error: 'INT_MAX' was not declared in this scope
if(dist[i] == INT_MAX)
^~~~~~~
main.cpp:31:10: warning: unused variable 'used' [-Wunused-variable]
bool used[50005] = {0};
^~~~
main.cpp: In function 'void citire()':
main.cpp:15:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin);
^
main.cpp:16:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out","w",stdout);
^
main.cpp:17:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&n,&m);
^
main.cpp:23:35: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&x,&y,&c);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !