Borderou de evaluare (job #1919595)
Utilizator | Data | 9 martie 2017 20:11:15 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:29:1: warning: "/*" within comment [-Wcomment]
/** pair <int, int> retine in ".first" nodul iar in ".second" costul nodului.
^
user.cpp:30:1: warning: "/*" within comment [-Wcomment]
/** Pot exista mai multe pair-uri cu ".first" egal!!! dar niciodata identice! **/
^
user.cpp:35:1: warning: "/*" within comment [-Wcomment]
/****************************/
^
user.cpp: In function ‘void dijkstra(int)’:
user.cpp:68:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < graf[acum].size(); i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:99:32: error: ‘stodut’ was not declared in this scope
freopen("dijkstra.out", "w", stodut);
^
user.cpp:86:29: 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:88:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f, "%d %d %d", &u, &v, &cost);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !