Borderou de evaluare (job #852480)

Utilizator avatar Tudor_Petcu Tudor Mihai Petcu Tudor_Petcu IP ascuns
Problemă Stalpi10 (clasa a 9-a) Compilator c
Rundă Tema 14 Clasa a 6-a Status evaluat
Dată 8 feb. 2026 14:44:10 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:57:14: error: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 57 | fprintf( "%d %d %d", max, cnt, dr - st + 1 ); | ^~~~~~~~~~ | | | char * In file included from /usr/include/stdio.h:970, from main.c:1: /usr/include/bits/stdio2.h:109:27: note: expected 'FILE *' but argument is of type 'char *' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:57:26: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 57 | fprintf( "%d %d %d", max, cnt, dr - st + 1 ); | ^~~ | | | int /usr/include/bits/stdio2.h:109:60: note: expected 'const char *' but argument is of type 'int' 109 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:9:60: warning: unused variable 'j' [-Wunused-variable] 9 | int n, d, cd, dr, st, min, max, i, cnt, start, finish, j, ok; | ^ main.c:9:15: warning: unused variable 'cd' [-Wunused-variable] 9 | int n, d, cd, dr, st, min, max, i, cnt, start, finish, j, ok; | ^~ main.c:9:12: warning: unused variable 'd' [-Wunused-variable] 9 | int n, d, cd, dr, st, min, max, i, cnt, start, finish, j, ok; | ^ main.c:12:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 12 | fscanf( fin, "%d\n", &n ); | ^~~~~~~~~~~~~~~~~~~~~~~~~ main.c:16:7: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 16 | fscanf( fin, "%d %d\n", &a[0][i], &a[1][i] ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~