Borderou de evaluare (job #688870)

Utilizator avatar Emre Isleam Emre Emre IP ascuns
Problemă Numere10 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 20 ian. 2023 09:18:35 Scor 100

Raport evaluator

Compilare: main.c: In function 'main': main.c:36:7: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 36 | g = sqrt( 2 * p ); | ^~~~ main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt' 2 | #include <stdio.h> +++ |+#include <math.h> 3 | main.c:36:7: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 36 | g = sqrt( 2 * p ); | ^~~~ main.c:36:7: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:37:3: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 37 | if ( g * (g + 1) / 2 >= p ) | ^~ main.c:41:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 41 | fprintf( fout, "%d\n%d\n%d\n", suma, p - g * (g + 1) / 2, g + 1 ); | ^~~~~~~ main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf(fin,"%d%d%d",&n,&k,&p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 114 kb OK 10
2 1 ms 114 kb OK 10
3 1 ms 114 kb OK 10
4 1 ms 114 kb OK 10
5 1 ms 114 kb OK 10
6 2 ms 114 kb OK 10
7 1 ms 114 kb OK 10
8 1 ms 110 kb OK 10
9 1 ms 110 kb OK 10
10 1 ms 110 kb OK 10
Punctaj total 100