Borderou de evaluare (job #2189735)
Utilizator | Data | 28 martie 2018 21:39:00 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void Dijkstra(int, int)’:
user.cpp:26:17: error: ‘INT_MAX’ was not declared in this scope
drum[i]=INT_MAX;
^~~~~~~
user.cpp: In function ‘void Afiseaza(int)’:
user.cpp:52:21: error: ‘INT_MAX’ was not declared in this scope
if(drum[i]!=INT_MAX)
^~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:59:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,n,m,x,y,c;
^
user.cpp:62:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&m);
^
user.cpp:65:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d %d",&x,&y,&c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !