Borderou de evaluare (job #798978)

Utilizator avatar NICO_ Gavris Nicolae NICO_ IP ascuns
Problemă Unificare (clasa a 6-a) Compilator c-32
Rundă Tema 19 Clasa a 6-a Status evaluat
Dată 5 dec. 2024 14:37:33 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:15:27: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 15 | fscanf(fin, "%d", &a); | ~^ ~~ | | | | | long long int * | int * | %lld main.c:26:23: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 26 | fscanf(fin, "%d", &a); | ~^ ~~ | | | | | long long int * | int * | %lld main.c:29:27: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long int *' [-Wformat=] 29 | fscanf(fin, "%d", &a); | ~^ ~~ | | | | | long long int * | int * | %lld main.c:30:15: error: expected expression before '{' token 30 | v={0}; | ^ main.c:8:28: warning: unused variable 'z' [-Wunused-variable] 8 | int c, n, k, i, x, ii, z; | ^ main.c:11:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 11 | fscanf(fin, "%d%d%d", &c, &n, &k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:15:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~ main.c:26:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 26 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~ main.c:29:13: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 29 | fscanf(fin, "%d", &a); | ^~~~~~~~~~~~~~~~~~~~~