Borderou de evaluare (job #3256443)

Utilizator Nil_gonencer123Gonencer Nil Nil_gonencer123 Data 14 noiembrie 2024 16:41:08
Problema Algoritmul lui Euclid Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:11:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 11 | 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:11:18: warning: passing argument 2 of 'fscanf' makes pointer from integer without a cast [-Wint-conversion] 11 | 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:14:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 14 | fscanf("%d%d", &a, b); | ^~~~~~ | | | char * /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:14:24: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 14 | fscanf("%d%d", &a, b); | ^~ | | | 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:7:11: warning: variable 'r' set but not used [-Wunused-but-set-variable] 7 | FILE *r,*w; | ^ main.c:11:5: warning: 'n' is used uninitialized [-Wuninitialized] 11 | fscanf("%d", n); | ^~~~~~~~~~~~~~~ main.c:6:9: note: 'n' was declared here 6 | int n, a, b, d; | ^ main.c:14:9: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized] 14 | fscanf("%d%d", &a, b); | ^~~~~~~~~~~~~~~~~~~~~ main.c:6:15: note: 'b' was declared here 6 | int n, a, b, d; | ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms303kbIncorect00
20ms303kbIncorect00
30ms303kbIncorect0
40ms303kbIncorect00
50ms303kbIncorect00
60ms303kbIncorect00
70ms303kbIncorect00
80ms303kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?