Borderou de evaluare (job #1483967)

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

Raport evaluator

Compilare: user.c: In function ‘put’: user.c:16:3: warning: braces around scalar initializer [enabled by default] int** res = {{1, 0}, {0, 1}}; ^ user.c:16:3: warning: (near initialization for ‘res’) [enabled by default] user.c:16:3: warning: initialization makes pointer from integer without a cast [enabled by default] user.c:16:3: warning: (near initialization for ‘res’) [enabled by default] user.c:16:3: warning: excess elements in scalar initializer [enabled by default] user.c:16:3: warning: (near initialization for ‘res’) [enabled by default] user.c:16:3: warning: braces around scalar initializer [enabled by default] user.c:16:3: warning: (near initialization for ‘res’) [enabled by default] user.c:16:3: warning: excess elements in scalar initializer [enabled by default] user.c:16:3: warning: (near initialization for ‘res’) [enabled by default] user.c:16:3: warning: excess elements in scalar initializer [enabled by default] user.c:16:3: warning: (near initialization for ‘res’) [enabled by default] user.c: In function ‘main’: user.c:38:3: warning: passing argument 1 of ‘put’ from incompatible pointer type [enabled by default] int** mult = put(tab, k - 1); ^ user.c:14:7: note: expected ‘int **’ but argument is of type ‘int (*)[2]’ int** put(int** n, int p) { ^ user.c:29:8: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d\n", &k); ^ user.c: In function ‘prod’: user.c:6:5: warning: ‘res’ is used uninitialized in this function [-Wuninitialized] res[0][0] = (a[0][0] * b[0][0] + a[0][1] * b[1][0]) % M; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms224kbKilled by signal 11(SIGSEGV).0
216ms220kbKilled by signal 11(SIGSEGV).0
312ms224kbKilled by signal 11(SIGSEGV).0
412ms224kbKilled by signal 11(SIGSEGV).0
5Depăşit224kbTime limit exceeded.0
6Depăşit220kbTime limit exceeded.0
7Depăşit224kbTime limit exceeded.0
8Depăşit228kbTime limit exceeded.0
9Depăşit220kbTime limit exceeded.0
10Depăşit224kbTime limit exceeded.0
11Depăşit224kbTime limit exceeded.0
12Depăşit228kbTime limit exceeded.0
13Depăşit220kbTime limit exceeded.0
14Depăşit220kbTime limit exceeded.0
15Depăşit220kbTime limit exceeded.0
16Depăşit224kbTime limit exceeded.0
17Depăşit220kbTime limit exceeded.0
18Depăşit220kbTime limit exceeded.0
19Depăşit220kbTime limit exceeded.0
20Depăşit224kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?