Borderou de evaluare (job #1438796)

Utilizator RazvanMarisMaris Razvan RazvanMaris Data 20 mai 2015 21:36:35
Problema Ceasuri Status done
Runda Arhiva ICPC Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:30:15: warning: initialization makes integer from pointer without a cast [enabled by default] int fin = fopen("ceasuri.in","r"); ^ user.c:32:5: warning: passing argument 1 of ‘fscanf’ makes pointer from integer without a cast [enabled by default] fscanf(fin,"%d",&n); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘int’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:39:9: warning: passing argument 1 of ‘fscanf’ makes pointer from integer without a cast [enabled by default] fscanf(fin,"%ld %ld",&nr1, &nr2); ^ In file included from /usr/include/features.h:357:0, from /usr/include/stdio.h:28, from user.c:1: /usr/include/stdio.h:449:12: note: expected ‘struct FILE * restrict’ but argument is of type ‘int’ extern int __REDIRECT (fscanf, (FILE *__restrict __stream, ^ user.c:54:16: warning: initialization makes integer from pointer without a cast [enabled by default] int fout = fopen("ceasuri.out","w"); ^ user.c:57:9: warning: passing argument 1 of ‘fprintf’ makes pointer from integer without a cast [enabled by default] fprintf(fout,"%ld\n",rez[i]); ^ 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 ‘int’ fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...) ^ user.c:32:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&n); ^ user.c:39:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%ld %ld",&nr1, &nr2); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbIncorect0
Punctaj total0

Ceva nu functioneaza?