Borderou de evaluare (job #1483962)

Utilizator mike93Indricean Mihai mike93 Data 10 septembrie 2015 11:02:48
Problema Al k-lea termen Fibonacci Status done
Runda Arhiva educationala Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘prod’: user.c:11:2: warning: return from incompatible pointer type [enabled by default] return res; ^ user.c:11:2: warning: function returns address of local variable [-Wreturn-local-addr] user.c: In function ‘put’: user.c:17:3: warning: return from incompatible pointer type [enabled by default] return res; ^ user.c:17:3: warning: function returns address of local variable [-Wreturn-local-addr] user.c:19:2: warning: passing argument 1 of ‘prod’ from incompatible pointer type [enabled by default] int** res = prod(put(n, p/2), put(n, p/2)); ^ user.c:4:7: note: expected ‘int (*)[2]’ but argument is of type ‘int **’ int** prod(int a[2][2], int b[2][2]) { ^ user.c:19:2: warning: passing argument 2 of ‘prod’ from incompatible pointer type [enabled by default] int** res = prod(put(n, p/2), put(n, p/2)); ^ user.c:4:7: note: expected ‘int (*)[2]’ but argument is of type ‘int **’ int** prod(int a[2][2], int b[2][2]) { ^ user.c:21:3: warning: passing argument 1 of ‘prod’ from incompatible pointer type [enabled by default] res = prod(res, n); ^ user.c:4:7: note: expected ‘int (*)[2]’ but argument is of type ‘int **’ int** prod(int a[2][2], int b[2][2]) { ^ user.c: In function ‘main’: user.c:29:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d\n", &k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms252kbIncorect0
216ms256kbIncorect0
316ms248kbIncorect0
416ms252kbIncorect0
5Depăşit224kbTime limit exceeded.0
6Depăşit224kbTime limit exceeded.0
7Depăşit220kbTime limit exceeded.0
8Depăşit220kbTime limit exceeded.0
9Depăşit224kbTime limit exceeded.0
10Depăşit224kbTime limit exceeded.0
11Depăşit224kbTime limit exceeded.0
12Depăşit228kbTime limit exceeded.0
13Depăşit220kbTime limit exceeded.0
14Depăşit224kbTime limit exceeded.0
15Depăşit224kbTime limit exceeded.0
16Depăşit224kbTime limit exceeded.0
17Depăşit224kbTime limit exceeded.0
18Depăşit228kbTime limit exceeded.0
19Depăşit220kbTime limit exceeded.0
20Depăşit224kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?