Borderou de evaluare (job #3371481)

Utilizator AnSeDraAndrei Sebastian Dragulescu AnSeDra Data 30 octombrie 2026 15:43:42
Problema Al k-lea termen Fibonacci Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:52:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 52 | fscanf("%d", &n); | ^~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:415:37: note: expected 'FILE * restrict' but argument is of type 'char *' 415 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:52:22: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 52 | fscanf("%d", &n); | ^~ | | | int * /usr/include/stdio.h:416:43: note: expected 'const char * restrict' but argument is of type 'int *' 416 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:53:16: warning: passing argument 1 of 'fclose' from incompatible pointer type [-Wincompatible-pointer-types] 53 | fclose("kfib.in"); | ^~~~~~~~~ | | | char * /usr/include/stdio.h:178:26: note: expected 'FILE *' but argument is of type 'char *' 178 | extern int fclose (FILE *__stream); | ~~~~~~^~~~~~~~ main.c:59:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 59 | fprintf("%d\n", first_element * matrix[0][0]); | ^~~~~~ | | | char * /usr/include/stdio.h:350:38: note: expected 'FILE * restrict' but argument is of type 'char *' 350 | extern int fprintf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:59:39: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 59 | fprintf("%d\n", first_element * matrix[0][0]); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ | | | int /usr/include/stdio.h:351:44: note: expected 'const char * restrict' but argument is of type 'int' 351 | const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:60:16: warning: passing argument 1 of 'fclose' from incompatible pointer type [-Wincompatible-pointer-types] 60 | fclose("kfib.out"); | ^~~~~~~~~~ | | | char * /usr/include/stdio.h:178:26: note: expected 'FILE *' but argument is of type 'char *' 178 | extern int fclose (FILE *__stream); | ~~~~~~^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms368kbKilled by Signal 110
23ms364kbKilled by Signal 110
33ms372kbKilled by Signal 110
43ms368kbKilled by Signal 110
53ms368kbKilled by Signal 110
63ms364kbKilled by Signal 110
73ms368kbKilled by Signal 110
83ms364kbKilled by Signal 110
93ms368kbKilled by Signal 110
103ms368kbKilled by Signal 110
110ms364kbKilled by Signal 110
120ms368kbKilled by Signal 110
130ms368kbKilled by Signal 110
140ms368kbKilled by Signal 110
150ms372kbKilled by Signal 110
160ms364kbKilled by Signal 110
170ms364kbKilled by Signal 110
180ms368kbKilled by Signal 110
190ms372kbKilled by Signal 110
200ms364kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?