Borderou de evaluare (job #740832)

Utilizator avatar Andreea3425 Diaconu Andreea Andreea3425 IP ascuns
Problemă Sumadiv (clasa a 7-a) Compilator c-32
Rundă Tema 6 clasa a 7-a Status evaluat
Dată 27 oct. 2023 17:31:31 Scor 60

Raport evaluator

Compilare: main.c: In function 'sumd': main.c:6:11: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 6 | int r=sqrt(n); | ^~~~ main.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt' 1 | #include <stdio.h> +++ |+#include <math.h> 2 | main.c:6:11: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 6 | int r=sqrt(n); | ^~~~ main.c:6:11: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:14:1: warning: control reaches end of non-void function [-Wreturn-type] 14 | } | ^ 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 rezultat incorect 0
2 1 ms 245 kb OK 10
3 1 ms 245 kb OK 10
4 1 ms 245 kb rezultat incorect 0
5 1 ms 245 kb OK 10
6 1 ms 245 kb OK 10
7 1 ms 245 kb rezultat incorect 0
8 1 ms 245 kb OK 10
9 1 ms 245 kb rezultat incorect 0
10 1 ms 245 kb OK 10
Punctaj total 60