Borderou de evaluare (job #621244)

Utilizator avatar bakono01001 Tara Horia-Andrei bakono01001 IP ascuns
Problemă Centru Prim (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 17 dec. 2021 15:37:06 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:27:18: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 27 | while(k<=sqrt(n)){ | ^~~~ main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt' 2 | #include <stdlib.h> +++ |+#include <math.h> 3 | main.c:27:18: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 27 | while(k<=sqrt(n)){ | ^~~~ main.c:27:18: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(fin, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~~ main.c:19:18: warning: 'Pc' may be used uninitialized in this function [-Wmaybe-uninitialized] 19 | n=(n-(inm/10)*Pc-Uc)/10; | ~~~~~~~~^~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test Punctaj/grupă
1 1 ms 131 kb OK 5 20
2 1 ms 131 kb OK 5
3 1 ms 131 kb OK 5
4 1 ms 131 kb OK 5
5 1 ms 131 kb OK 5 20
6 1 ms 131 kb OK 5
7 1 ms 131 kb OK 5
8 1 ms 131 kb OK 5
9 1 ms 131 kb OK 5 20
10 1 ms 131 kb OK 5
11 1 ms 131 kb OK 5
12 1 ms 131 kb OK 5
13 1 ms 131 kb OK 5 20
14 1 ms 131 kb OK 5
15 1 ms 131 kb OK 5
16 1 ms 131 kb OK 5
17 1 ms 131 kb OK 5 20
18 1 ms 131 kb OK 5
19 1 ms 131 kb OK 5
20 1 ms 131 kb OK 5
Punctaj total 100