Borderou de evaluare (job #2201521)
Utilizator | Data | 5 mai 2018 01:22:53 | |
---|---|---|---|
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, int)’:
user.cpp:131:41: error: ‘_strdup’ was not declared in this scope
char* filename = _strdup("dijkstra.out");
^
user.cpp: In function ‘int main()’:
user.cpp:142:40: error: ‘_strdup’ was not declared in this scope
char* filename = _strdup("dijkstra.in");
^
user.cpp: In function ‘int** citireMatrice(char*, int&)’:
user.cpp:37:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", &colls, &o);
^
user.cpp:52:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d %d", &a, &b, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !