Borderou de evaluare (job #815292)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cartier (clasa a 6-a) | Compilator | c-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 19 mar. 2025 21:11:38 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.c: In function 'main':
main.c:30:14: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
30 | sq = sqrt(nr);
| ^~~~
main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt'
2 | #include <stdlib.h>
+++ |+#include <math.h>
3 |
main.c:30:14: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
30 | sq = sqrt(nr);
| ^~~~
main.c:30:14: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:24:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | fscanf(fin, "%d", &n);
| ^~~~~~~~~~~~~~~~~~~~~
main.c:28:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
28 | fscanf(fin, "%d", &nr);
| ^~~~~~~~~~~~~~~~~~~~~~