Pagini recente » Borderou de evaluare (job #2153916) | Borderou de evaluare (job #3136820) | Borderou de evaluare (job #588078) | Borderou de evaluare (job #2343369) | Borderou de evaluare (job #1376199)
Borderou de evaluare (job #1376199)
Raport evaluator
Compilare:
user.c: In function ‘minim’:
user.c:8:9: warning: return makes integer from pointer without a cast [enabled by default]
return a;
^
user.c:9: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 ‘minim’ makes pointer from integer without a cast [enabled by default]
d[ i ][ j ] = 1 + minim( d[ i - 1 ][ j - 1 ], minim( d[ i - 1 ][ j ], d[ i ][ j - 1 ] ) );
^
user.c:6:5: note: expected ‘int *’ but argument is of type ‘short int’
int minim( int *a, int *b ) {
^
user.c:31:17: warning: passing argument 2 of ‘minim’ makes pointer from integer without a cast [enabled by default]
d[ i ][ j ] = 1 + minim( d[ i - 1 ][ j - 1 ], minim( d[ i - 1 ][ j ], d[ i ][ j - 1 ] ) );
^
user.c:6:5: note: expected ‘int *’ but argument is of type ‘short int’
int minim( int *a, int *b ) {
^
user.c:31:17: warning: passing argument 1 of ‘minim’ makes pointer from integer without a cast [enabled by default]
d[ i ][ j ] = 1 + minim( d[ i - 1 ][ j - 1 ], minim( d[ i - 1 ][ j ], d[ i ][ j - 1 ] ) );
^
user.c:6:5: note: expected ‘int *’ but argument is of type ‘short int’
int minim( int *a, int *b ) {
^
user.c:31:17: warning: passing argument 2 of ‘minim’ makes pointer from integer without a cast [enabled by default]
d[ i ][ j ] = 1 + minim( d[ i - 1 ][ j - 1 ], minim( d[ i - 1 ][ j ], d[ i ][ j - 1 ] ) );
^
user.c:6:5: note: expected ‘int *’ but argument is of type ‘int’
int minim( int *a, int *b ) {
^
user.c:17: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:18:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets( s, N + 2, f );
^
user.c:19: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 |
1 | 0ms | 308kb | OK | 10 |
2 | 0ms | 304kb | OK | 10 |
3 | 0ms | 300kb | OK | 10 |
4 | 0ms | 824kb | OK | 10 |
5 | 4ms | 3412kb | OK | 10 |
6 | 24ms | 10612kb | OK | 10 |
7 | 32ms | 13272kb | OK | 10 |
8 | 52ms | Depăşit | Memory limit exceeded. | 0 |
9 | 56ms | Depăşit | Memory limit exceeded. | 0 |
10 | 56ms | Depăşit | Memory limit exceeded. | 0 |
Punctaj total | 70 |