Borderou de evaluare (job #2555139)

Utilizator astroman389Claudiu Negru astroman389 Data 23 februarie 2020 18:53:39
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'find': main.c:13:24: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] fprintf(fout,"%d",nr); ^ main.c:25:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] fprintf(fout,"%d\n", nr); ^ main.c:28:25: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Wformat=] fprintf(fout, "%d ",positions[i]); ^ main.c: In function 'main': main.c:36:15: error: expected ']' before numeric constant char s1[2 000 000], s2[2 000 000]; ^~~ main.c:38:11: error: 's1' undeclared (first use in this function) fgets(s1, 2 000 000, fin); ^~ main.c:38:11: note: each undeclared identifier is reported only once for each function it appears in main.c:38:17: error: expected ')' before numeric constant fgets(s1, 2 000 000, fin); ^~~ main.c:38:5: error: too few arguments to function 'fgets' fgets(s1, 2 000 000, fin); ^~~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:253:1: note: declared here fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^~~~~ main.c:40:11: error: 's2' undeclared (first use in this function) fgets(s2, 2 000 000, fin); ^~ main.c:40:17: error: expected ')' before numeric constant fgets(s2, 2 000 000, fin); ^~~ main.c:40:5: error: too few arguments to function 'fgets' fgets(s2, 2 000 000, fin); ^~~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:253:1: note: declared here fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^~~~~ Non zero exit status: 1

Ceva nu functioneaza?