Borderou de evaluare (job #2190349)
Utilizator | Data | 30 martie 2018 16:48:49 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘vertexCreate’:
user.c:59:24: error: ‘INT_MAX’ undeclared (first use in this function)
newVertex->distance = INT_MAX; //set the attributes
^~~~~~~
user.c:59:24: note: each undeclared identifier is reported only once for each function it appears in
user.c: In function ‘graphDestroy’:
user.c:213:7: warning: unused variable ‘adjListDestroyStatus’ [-Wunused-variable]
int adjListDestroyStatus = adjListDestroy(graph->adjList[i]); //destroy the adjacency list
^~~~~~~~~~~~~~~~~~~~
user.c: In function ‘graphReadFromFileWWeight’:
user.c:273:2: warning: implicit declaration of function ‘fopen_s’ [-Wimplicit-function-declaration]
fopen_s(&inFile, fileName, "r");
^~~~~~~
user.c:279:2: warning: implicit declaration of function ‘fscanf_s’ [-Wimplicit-function-declaration]
fscanf_s(inFile, "%d %d %d", &aux, &aux, &aux);
^~~~~~~~
user.c: In function ‘graphGetAdjMatrix’:
user.c:402:22: error: ‘INT_MAX’ undeclared (first use in this function)
adjMatrix[i][j] = INT_MAX;
^~~~~~~
user.c: In function ‘BFS’:
user.c:550:19: error: ‘INT_MAX’ undeclared (first use in this function)
if (distance == INT_MAX)
^~~~~~~
user.c: In function ‘graphReadFromFile’:
user.c:360:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !