Borderou de evaluare (job #636807)
Utilizator | Data | 19 noiembrie 2011 23:56:25 | |
---|---|---|---|
Problema | Cautare binara | Status | done |
Runda | Arhiva educationala | Compilator | c | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.c: In function ‘cautare_bin’:
user.c:10: warning: unused variable ‘p’
user.c: In function ‘cautare_bin2’:
user.c:22: warning: unused variable ‘p’
user.c: In function ‘cautare_bin3’:
user.c:35: warning: unused variable ‘p’
user.c: In function ‘main’:
user.c:53: warning: format ‘%i’ expects type ‘int *’, but argument 2 has type ‘int’
user.c:54: error: ‘m’ undeclared (first use in this function)
user.c:54: error: (Each undeclared identifier is reported only once
user.c:54: error: for each function it appears in.)
user.c:57: error: ‘k’ undeclared (first use in this function)
user.c:58: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type
/usr/include/bits/stdio2.h:96: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
user.c:58: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast
/usr/include/bits/stdio2.h:96: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
user.c:58: warning: format not a string literal and no format arguments
user.c:59: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type
/usr/include/bits/stdio2.h:96: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
user.c:59: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast
/usr/include/bits/stdio2.h:96: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
user.c:59: warning: format not a string literal and no format arguments
user.c:59: warning: passing argument 1 of ‘fprintf’ from incompatible pointer type
/usr/include/bits/stdio2.h:96: note: expected ‘struct FILE * __restrict__’ but argument is of type ‘char *’
user.c:59: warning: passing argument 2 of ‘fprintf’ makes pointer from integer without a cast
/usr/include/bits/stdio2.h:96: note: expected ‘const char * __restrict__’ but argument is of type ‘int’
user.c:59: warning: format not a string literal and no format arguments
user.c:49: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result
user.c:50: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result
user.c:51: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
user.c:53: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !