Borderou de evaluare (job #849570)

Utilizator avatar SpeedyAlexR Alexandru Ristea SpeedyAlexR IP ascuns
Problemă Litere (clasa a 7-a) Compilator c
Rundă Concurs 02 | IQ Academy | clasa a 7-a | 2025-2026 Status evaluat
Dată 25 ian. 2026 19:09:54 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'adunare': main.c:43:5: warning: value computed is not used [-Wunused-value] 43 | *n1++; | ^~~~~ main.c: In function 'main': main.c:97:7: warning: value computed is not used [-Wunused-value] 97 | *nrcf2++; | ^~~~~~~~ main.c:102:25: error: passing argument 3 of 'adunare' makes pointer from integer without a cast [-Wint-conversion] 102 | adunare(mare1,mare2,*nrcf1,*nrcf2); | ^~~~~~ | | | int main.c:102:25: note: possible fix: take the address with '&' 102 | adunare(mare1,mare2,*nrcf1,*nrcf2); | ^~~~~~ | & main.c:30:35: note: expected 'int *' but argument is of type 'int' 30 | void adunare(int v[],int w[],int *n1,int *n2) { | ~~~~~^~ main.c:102:32: error: passing argument 4 of 'adunare' makes pointer from integer without a cast [-Wint-conversion] 102 | adunare(mare1,mare2,*nrcf1,*nrcf2); | ^~~~~~ | | | int main.c:102:32: note: possible fix: take the address with '&' 102 | adunare(mare1,mare2,*nrcf1,*nrcf2); | ^~~~~~ | & main.c:30:43: note: expected 'int *' but argument is of type 'int' 30 | void adunare(int v[],int w[],int *n1,int *n2) { | ~~~~~^~ main.c:54:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 54 | fscanf(fin,"%d",&n); | ^~~~~~~~~~~~~~~~~~~ main.c:58:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 58 | fscanf(fin,"%c",&cuv[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~ main.c:61:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 61 | fscanf(fin,"%d",&m); | ^~~~~~~~~~~~~~~~~~~ main.c:62:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 62 | fscanf(fin,"%d",&x); | ^~~~~~~~~~~~~~~~~~~ main.c:69:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 69 | fscanf(fin,"%d",&x); | ^~~~~~~~~~~~~~~~~~~