Borderou de evaluare (job #816129)

Utilizator avatar MirceaDiaconu Diaconu Mircea Alexandru MirceaDiaconu IP ascuns
Problemă Prâslea ( clasa a 6-a ) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 25 mar. 2025 19:18:08 Scor 0

Raport evaluator

Eroare de compilare: main.c:4:14: error: expected ';' before 'int' 4 | int k[500005] | ^ | ; 5 | int main(){ | ~~~ main.c: In function 'main': main.c:9:34: error: invalid operands to binary & (have 'int *' and 'int') 9 | fscanf(fin, "%d%d%d", &n, &m &d); | ~~ ^ | | | int * main.c:17:9: error: 'k' undeclared (first use in this function) 17 | k[j] = 1; | ^ main.c:17:9: note: each undeclared identifier is reported only once for each function it appears in main.c:33:18: warning: missing terminating " character 33 | fprintf(fout,"%d\", mx); | ^ main.c:33:18: error: missing terminating " character 33 | fprintf(fout,"%d\", mx); | ^~~~~~~~~~~ main.c:34:16: error: expected ')' before ';' token 34 | fclose(fin); | ^ | ) main.c:33:12: note: to match this '(' 33 | fprintf(fout,"%d\", mx); | ^ main.c:34:5: error: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 34 | fclose(fin); | ^~~~~~~~~~~ | | | int In file included from /usr/include/stdio.h:970, from main.c:1: /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:36:14: error: expected ';' before '}' token 36 | return 0; | ^ | ; 37 | } | ~ main.c:15:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf(fin, "%d%d", &j, &la); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:19:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 19 | fscanf(fin, "%d", &d);