Borderou de evaluare (job #756238)

Utilizator avatar vatamanescu_ioana Vatamanescu Ioana vatamanescu_ioana IP ascuns
Problemă Culegere (clasa a 5-a) Compilator c-32
Rundă Concurs 04 | IQ Academy | clasa a 6-a Status evaluat
Dată 20 ian. 2024 13:43:33 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:9:19: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 9 | fscanf(fin, "%d%d", &p, &n); | ~^ ~~ | | | | int * long long int * | %lld main.c:9:21: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long int *' [-Wformat=] 9 | fscanf(fin, "%d%d", &p, &n); | ~^ ~~ | | | | int * long long int * | %lld main.c:18:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 18 | fprintf(fout, "%d\n", nr_cif); | ~^ ~~~~~~ | | | | int long long int | %lld main.c:19:19: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration] 19 | long long m = sqrt(2*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:19:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch] 19 | long long m = sqrt(2*n); | ^~~~ main.c:19:19: note: include '<math.h>' or provide a declaration of 'sqrt' main.c:22:21: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=] 22 | fprintf(fout, "%d", m); | ~^ ~ | | | | int long long int | %lld main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(fin, "%d%d", &p, &n); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 1 ms 245 kb 1. incorect; 2. incorect 0
2 2 ms 143 kb 1. incorect; 2. incorect 0
3 1 ms 245 kb 1. incorect; 2. incorect 0
4 1 ms 245 kb 1. incorect; 2. incorect 0
5 3 ms 245 kb 1. incorect; 2. incorect 0
6 2 ms 245 kb 1. incorect; 2. incorect 0
7 1 ms 245 kb 1. incorect; 2. incorect 0
8 2 ms 245 kb 1. incorect; 2. incorect 0
9 1 ms 245 kb 1. incorect; 2. incorect 0
10 1 ms 245 kb 1. incorect; 2. incorect 0
Punctaj total 0