Borderou de evaluare (job #1348273)
Utilizator | Data | 19 februarie 2015 16:51:44 | |
---|---|---|---|
Problema | Cifra | Status | done |
Runda | Arhiva de probleme | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘lastDigit’:
user.c:31:6: warning: unused variable ‘x’ [-Wunused-variable]
int x=0;
^
user.c: In function ‘main’:
user.c:41:2: error: invalid initializer
FILE *fileRead=fopen("cifra.in","r"),fileWrite=fopen("cifra.out","w");
^
user.c:42:2: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long long int *’ [-Wformat=]
fscanf(fileRead,"%d",&T);
^
user.c:49:3: error: incompatible type for argument 1 of ‘fprintf’
fprintf(fileWrite,"%d\n",result);
^
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 ‘FILE’
fprintf (FILE *__restrict __stream, __const char *__restrict __fmt, ...)
^
user.c:52:2: error: incompatible type for argument 1 of ‘fclose’
fclose(fileWrite);
^
In file included from user.c:1:0:
/usr/include/stdio.h:238:12: note: expected ‘struct FILE *’ but argument is of type ‘FILE’
extern int fclose (FILE *__stream);
^
user.c:42:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fileRead,"%d",&T);
^
user.c:44:9: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fileRead,"%s",n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !