Pagini recente » Borderou de evaluare (job #1917813) | Borderou de evaluare (job #822178) | Borderou de evaluare (job #2389705) | Borderou de evaluare (job #1962919) | Borderou de evaluare (job #1438548)
Borderou de evaluare (job #1438548)
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,"%d %d",&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:55:16: warning: initialization makes integer from pointer without a cast [enabled by default]
int fout = fopen("ceasuri.out","w");
^
user.c:58:9: warning: passing argument 1 of ‘fprintf’ makes pointer from integer without a cast [enabled by default]
fprintf(fout,"%d\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,"%d %d",&nr1, &nr2);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 252kb | Incorect | 0 |
Punctaj total | 0 |