Borderou de evaluare (job #1432486)

Utilizator Popa_Ana-Maria_323CBPopa Ana-Maria Popa_Ana-Maria_323CB Data 9 mai 2015 12:15:39
Problema Secv1 Status done
Runda test_practic_pa_1 Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c:2:1: error: initializer element is not constant FILE *ff=fopen("secv1.out","w"); ^ user.c: In function ‘poz0’: user.c:7:9: warning: unused variable ‘index’ [-Wunused-variable] int index; ^ user.c: In function ‘search’: user.c:60:4: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf("%d ",max); ^ In file included from /usr/include/stdio.h:934:0, from user.c:1: /usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘struct FILE * restrict’ but argument is of type ‘char *’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:60:4: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast [enabled by default] fprintf("%d ",max); ^ In file included from /usr/include/stdio.h:934:0, from user.c:1: /usr/include/i386-linux-gnu/bits/stdio2.h:96:1: note: expected ‘const char * restrict’ but argument is of type ‘int’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c: In function ‘main’: user.c:74:5: warning: unused variable ‘j’ [-Wunused-variable] int j; ^ user.c:69:7: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ user.c:73:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&vect[i]); ^

Ceva nu functioneaza?