Borderou de evaluare (job #773789)

Utilizator avatar Ralucutza Popa Maya Ralucutza IP ascuns
Problemă Noxa (clasa a 7-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 12 apr. 2024 22:01:10 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'minDistance': main.c:10:16: error: 'INT_MAX' undeclared (first use in this function) 10 | double min=INT_MAX; | ^~~~~~~ main.c:3:1: note: 'INT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'? 2 | #include <stdlib.h> +++ |+#include <limits.h> 3 | #define MAX 1000 main.c:10:16: note: each undeclared identifier is reported only once for each function it appears in 10 | double min=INT_MAX; | ^~~~~~~ main.c: In function 'dijkstra': main.c:37:17: error: 'INT_MAX' undeclared (first use in this function) 37 | dist[i]=INT_MAX; | ^~~~~~~ main.c:37:17: note: 'INT_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'? main.c:34:33: warning: unused variable 'v' [-Wunused-variable] 34 | int sptSet[V],parent[V],i,j,v,u; | ^ main.c: In function 'main': main.c:99:47: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 99 | graf[l1][c1]=graf[c1][l1]=VAL*sqrt(2); | ^~~~ main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt' 2 | #include <stdlib.h> +++ |+#include <math.h> 3 | #define MAX 1000 main.c:99:47: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 99 | graf[l1][c1]=graf[c1][l1]=VAL*sqrt(2); | ^~~~ main.c:99:47: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:56:12: warning: unused variable 'x' [-Wunused-variable] 56 | double x; | ^ main.c:59:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 59 | fscanf(fin, "%d%d%d", &n, &m, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:65:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 65 | fscanf(fin, "%d%d", &lin, &col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~