Borderou de evaluare (job #773916)

Utilizator avatar Ralucutza Popa Maya Ralucutza IP ascuns
Problemă Noxa (clasa a 7-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 13 apr. 2024 16:44:18 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:34:57: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 34 | fprintf(fout, "%d\n", 100*(m+n-2*maxim)+(int)(maxim*sqrt(20000))); | ^~~~ main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt' 2 | #include <stdlib.h> +++ |+#include <math.h> 3 | #define MAX 1000 main.c:34:57: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 34 | fprintf(fout, "%d\n", 100*(m+n-2*maxim)+(int)(maxim*sqrt(20000))); | ^~~~ main.c:34:57: 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%d%d", &m, &n, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:12:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin, "%d%d", &lin, &col); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 245 kb OK 5
2 1 ms 245 kb OK 5
3 1 ms 266 kb OK 5
4 1 ms 245 kb OK 5
5 1 ms 245 kb OK 5
6 1 ms 245 kb OK 5
7 1 ms 245 kb OK 5
8 1 ms 266 kb OK 5
9 1 ms 245 kb OK 5
10 1 ms 245 kb OK 5
11 1 ms 245 kb OK 5
12 1 ms 249 kb OK 5
13 1 ms 249 kb OK 5
14 1 ms 249 kb OK 5
15 1 ms 249 kb OK 5
16 1 ms 512 kb OK 5
17 1 ms 249 kb OK 5
18 9 ms 245 kb OK 5
19 1 ms 249 kb OK 5
20 1 ms 249 kb OK 5
Punctaj total 100