Borderou de evaluare (job #3158061)

Utilizator ShodenShoden Shoden Data 17 octombrie 2023 17:31:59
Problema Mayonaka Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:12:12: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 12 | fscanf("%d%d",&N,&M); | ^~~~~~ | | | 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:12:19: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 12 | fscanf("%d%d",&N,&M); | ^~ | | | 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:16:16: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 16 | fscanf("%d%d%d%d",&x,&y,&salt,&greutate); | ^~~~~~~~~~ | | | 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:16:27: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 16 | fscanf("%d%d%d%d",&x,&y,&salt,&greutate); | ^~ | | | 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:24:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 24 | fprintf("%d ",v[i]); | ^~~~~ | | | 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:24:24: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 24 | fprintf("%d ",v[i]); | ~^~~ | | | int /usr/include/stdio.h:351:44: note: expected 'const char * restrict' but argument is of type 'int' 351 | const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms303kbIncorect0
40ms303kbIncorect0
50ms303kbIncorect0
60ms303kbIncorect0
70ms303kbIncorect0
80ms303kbIncorect0
90ms303kbIncorect0
100ms303kbIncorect0
110ms303kbIncorect0
120ms303kbIncorect0
130ms303kbIncorect0
140ms303kbIncorect0
150ms303kbIncorect0
160ms303kbIncorect0
170ms303kbIncorect0
180ms303kbIncorect0
190ms303kbIncorect0
200ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?