Borderou de evaluare (job #747874)

Utilizator avatar Ralucutza Popa Maya Ralucutza IP ascuns
Problemă Fibrec (clasa a 7-a) Compilator c-32
Rundă Tema 10 clasa a 7-a Status evaluat
Dată 27 nov. 2023 16:08:25 Scor 17

Raport evaluator

Compilare: main.c: In function 'fibonacci_binet': main.c:13:23: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 13 | double phi = (1 + sqrt(5)) / 2; | ^~~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt' 1 | #include <stdio.h> +++ |+#include <math.h> 2 | main.c:13:23: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 13 | double phi = (1 + sqrt(5)) / 2; | ^~~~ main.c:13:23: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:14:12: warning: implicit declaration of function 'round' [-Wimplicit-function-declaration] 14 | return round((pow(phi,n)-pow(-phi, -n))/sqrt(5)); | ^~~~~ main.c:14:12: note: include '<math.h>' or provide a declaration of 'round' main.c:14:12: warning: incompatible implicit declaration of built-in function 'round' [-Wbuiltin-declaration-mismatch] main.c:14:12: note: include '<math.h>' or provide a declaration of 'round' main.c:14:19: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration] 14 | return round((pow(phi,n)-pow(-phi, -n))/sqrt(5)); | ^~~ main.c:14:19: note: include '<math.h>' or provide a declaration of 'pow' main.c:14:19: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch] main.c:14:19: note: include '<math.h>' or provide a declaration of 'pow' main.c: In function 'main': main.c:21:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb OK 5
2 1 ms 241 kb OK 5
3 1 ms 245 kb OK 5
4 1 ms 245 kb OK 5
5 2 ms 241 kb Incorect 0
6 1 ms 245 kb Incorect 0
7 1 ms 245 kb Incorect 0
8 1 ms 245 kb Incorect 0
9 2 ms 245 kb Incorect 0
10 1 ms 245 kb Incorect 0
11 1 ms 245 kb Incorect 0
12 1 ms 245 kb Incorect 0
13 1 ms 241 kb Incorect 0
14 1 ms 245 kb Incorect 0
15 1 ms 245 kb Incorect 0
16 2 ms 241 kb Incorect 0
17 1 ms 245 kb Incorect 0
18 1 ms 241 kb Incorect 0
19 1 ms 245 kb Incorect 0
20 1 ms 245 kb Incorect 0
Penalizare: 15% (pentru 3 submisie/ii) 15%
Punctaj total 17