Borderou de evaluare (job #2190358)

Utilizator MihaiAntonMihai Anton MihaiAnton Data 30 martie 2018 17:03:30
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 ‘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: In function ‘main’: user.c:573:2: warning: implicit declaration of function ‘inFilefopen’ [-Wimplicit-function-declaration] inFilefopen("bfs.in", "r"); ^~~~~~~~~~~ user.c: In function ‘graphReadFromFileWWeight’: user.c:279:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(inFile, "%d %d %d", &aux, &aux, &aux); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:291:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(inFile, "%d %d %d", &node1Id, &node2Id, &weight); //read the data ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c: In function ‘graphReadFromFileWoWeight’: user.c:324:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(inFile, "%d %d %d", &aux, &aux, &aux); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:338:3: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(inFile, "%d %d", &node1Id, &node2Id); //read the data ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c: In function ‘graphReadFromFile’: user.c:360:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.c: In function ‘main’: user.c:574:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(inFile, "%d %d %d", &vertexCount, &edgeCount, &sourceNode); //reads the data ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c:574:2: warning: ‘inFile’ is used uninitialized in this function [-Wuninitialized] fscanf(inFile, "%d %d %d", &vertexCount, &edgeCount, &sourceNode); //reads the data ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ user.c: In function ‘adjListResize’: user.c:123:6: warning: ‘newSize’ may be used uninitialized in this function [-Wmaybe-uninitialized] int newSize; ^~~~~~~ /tmp/ccUYmtMB.o: In function `graphReadFromFileWWeight': user.c:(.text+0x493): undefined reference to `fopen_s' /tmp/ccUYmtMB.o: In function `main': user.c:(.text.startup+0x31): undefined reference to `inFilefopen' collect2: error: ld returned 1 exit status

Ceva nu functioneaza?