Borderou de evaluare (job #805385)

Utilizator avatar Radu_Balas Radu Andrei Balas Radu_Balas IP ascuns
Problemă Formula 1 (clasa a 6-a) Compilator c-32
Rundă Tema 24 Clasa a 6-a Status evaluat
Dată 21 ian. 2025 19:42:18 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:9:20: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'int *' [-Wformat=] 9 | fscanf(fin,"%lld%lld%lld",&c,&k,&n); | ~~~^ ~~ | | | | | int * | long long int * | %d main.c:16:13: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 16 | x = sqrt(2*s+1); | ^~~~ main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt' 2 | #include <stdlib.h> +++ |+#include <math.h> 3 | int main(){ main.c:16:13: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 16 | x = sqrt(2*s+1); | ^~~~ main.c:16:13: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin,"%lld%lld%lld",&c,&k,&n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~