Borderou de evaluare (job #810929)

Utilizator avatar www_www Veveriță Tudor www_www IP ascuns
Problemă Numar3 Compilator c-32
Rundă lasm_22_02_2025_clasa10_11 Status evaluat
Dată 22 feb. 2025 16:40:03 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:30:15: error: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration] 30 | char *x = strdup(a); | ^~~~~~ | strcmp main.c:30:15: error: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] main.c:31:15: error: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 31 | char *y = strdup(pow10); | ^~~~~~ main.c:33:19: error: initialization of 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 33 | char *t = strdup(y); | ^~~~~~ main.c:44:9: warning: unused variable 'gcd' [-Wunused-variable] 44 | int gcd = atoi(x); | ^~~ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(f, "%d %d", &ni, &nz); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:16:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf(f, "%d", &d); | ^~~~~~~~~~~~~~~~~~~ main.c:21:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(f, "%d", &num[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~