Borderou de evaluare (job #1246815)

Utilizator andrei_r_97Radoi Andrei andrei_r_97 Data 21 octombrie 2014 18:19:13
Problema Parc Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.c: In function ‘main’: user.c:84:4: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type [enabled by default] fprintf("%f 1",calculareDistanta()); ^ 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:84:4: error: incompatible type for argument 2 of ‘fprintf’ fprintf("%f 1",calculareDistanta()); ^ 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 ‘double’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c: In function ‘citire’: user.c:41:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%hd %hd", &xpr, &ypr); ^ user.c:43:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%hd %hd", &Gigel.y, &Gigel.x); ^ user.c:44:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%hd %hd", &Prieten.y, &Prieten.x); ^ user.c:47:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%hd",&benziV); ^ user.c:49:13: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf( in, "%hd %hd", &benzi_verticale[i][0], &benzi_verticale[i][1] ); ^ user.c:51:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%hd",&benziO); ^ user.c:53:13: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf( in, "%hd %hd", &benzi_orizontale[i][0], &benzi_orizontale[i][1] ); ^

Ceva nu functioneaza?