Borderou de evaluare (job #3258231)

Utilizator ultrafurnitureclaudiah ultrafurniture Data 21 noiembrie 2024 16:51:39
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:49:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 49 | for(i=0;i<n;i++); | ^~~ main.c:50:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 50 | { | ^ main.c:51:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 51 | fscanf("%d", &a, &b); | ^~~~ | | | 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:51:22: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 51 | fscanf("%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:52:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 52 | fprintf("%d\n", cmmdc(a,b)); | ^~~~~~ | | | 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:52:25: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 52 | fprintf("%d\n", cmmdc(a,b)); | ^~~~~~~~~~ | | | 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:45:13: warning: variable 'w' set but not used [-Wunused-but-set-variable] 45 | FILE*r,*w; | ^ main.c:45:10: warning: variable 'r' set but not used [-Wunused-but-set-variable] 45 | FILE*r,*w; | ^ main.c:49:14: warning: 'n' is used uninitialized [-Wuninitialized] 49 | for(i=0;i<n;i++); | ~^~ main.c:48:9: note: 'n' was declared here
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms376kbKilled by Signal 800
22ms376kbKilled by Signal 800
31ms372kbKilled by Signal 80
42ms372kbKilled by Signal 800
52ms368kbKilled by Signal 800
62ms372kbKilled by Signal 800
72ms368kbKilled by Signal 800
82ms368kbKilled by Signal 80
92ms372kbKilled by Signal 80
102ms368kbKilled by Signal 80
Punctaj total0

Ceva nu functioneaza?