Borderou de evaluare (job #1377037)

Utilizator bciobanuBogdan Ciobanu bciobanu Data 5 martie 2015 19:49:41
Problema Edist Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘min’: user.c:9:9: warning: return makes integer from pointer without a cast [enabled by default] return a; ^ user.c:10:5: warning: return makes integer from pointer without a cast [enabled by default] return b; ^ user.c: In function ‘main’: user.c:31:17: warning: passing argument 1 of ‘min’ makes pointer from integer without a cast [enabled by default] d[ !( i & 1 ) ][ j + 1 ] = 1 + min( d[ !( i & 1 ) ][ j ], min( d[ i & 1 ][ j + 1 ], d[ i & 1 ][ j ] ) ); ^ user.c:7:12: note: expected ‘int *’ but argument is of type ‘short int’ inline int min( int *a, int *b ) { ^ user.c:31:17: warning: passing argument 2 of ‘min’ makes pointer from integer without a cast [enabled by default] d[ !( i & 1 ) ][ j + 1 ] = 1 + min( d[ !( i & 1 ) ][ j ], min( d[ i & 1 ][ j + 1 ], d[ i & 1 ][ j ] ) ); ^ user.c:7:12: note: expected ‘int *’ but argument is of type ‘short int’ inline int min( int *a, int *b ) { ^ user.c:31:17: warning: passing argument 1 of ‘min’ makes pointer from integer without a cast [enabled by default] d[ !( i & 1 ) ][ j + 1 ] = 1 + min( d[ !( i & 1 ) ][ j ], min( d[ i & 1 ][ j + 1 ], d[ i & 1 ][ j ] ) ); ^ user.c:7:12: note: expected ‘int *’ but argument is of type ‘short int’ inline int min( int *a, int *b ) { ^ user.c:31:17: warning: passing argument 2 of ‘min’ makes pointer from integer without a cast [enabled by default] d[ !( i & 1 ) ][ j + 1 ] = 1 + min( d[ !( i & 1 ) ][ j ], min( d[ i & 1 ][ j + 1 ], d[ i & 1 ][ j ] ) ); ^ user.c:7:12: note: expected ‘int *’ but argument is of type ‘int’ inline int min( int *a, int *b ) { ^ user.c:18:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf( f, "%d%d%d\n", &N, &M, &k ); ^ user.c:19:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets( s, N + 2, f ); ^ user.c:20:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets( S, M + 2, f ); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbIncorect0
20ms264kbIncorect0
30ms272kbIncorect0
40ms276kbIncorect0
50ms272kbIncorect0
612ms280kbIncorect0
720ms280kbIncorect0
8Depăşit296kbTime limit exceeded.0
9Depăşit340kbTime limit exceeded.0
10Depăşit344kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?