Borderou de evaluare (job #1187915)
Utilizator | Data | 18 mai 2014 14:55:13 | |
---|---|---|---|
Problema | Easylca | Status | done |
Runda | ONIS 2014, Runda Finala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c:33:6: error: conflicting types for ‘div’
void div(short A[], short B)
^
In file included from user.c:3:0:
/usr/include/stdlib.h:785:14: note: previous declaration of ‘div’ was here
extern div_t div (int __numer, int __denom)
^
user.c: In function ‘fromBinary’:
user.c:86:24: warning: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(A, 0, sizeof(A));
^
user.c: In function ‘main’:
user.c:152:13: warning: unused variable ‘i’ [-Wunused-variable]
int i = 0, poz = 0, last1, last2;
^
user.c:113:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &T);
^
user.c:124:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%s %s", A, B);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !