Borderou de evaluare (job #647996)

Utilizator avatar Casian Casian Teodorescu Casian IP ascuns
Problemă Pinochio (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 20 apr. 2022 19:59:31 Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:9:11: warning: passing argument 1 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fscanf("%d%d%d",&n,&p,&k); | ^~~~~~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:409:37: note: expected 'FILE * restrict' but argument is of type 'char *' 409 | extern int fscanf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:9:20: warning: passing argument 2 of 'fscanf' from incompatible pointer type [-Wincompatible-pointer-types] 9 | fscanf("%d%d%d",&n,&p,&k); | ^~ | | | int * In file included from main.c:1: /usr/include/stdio.h:410:43: note: expected 'const char * restrict' but argument is of type 'int *' 410 | const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:12:12: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 12 | fprintf("%d\n",p+k-n-1); | ^~~~~~ | | | char * In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:27: note: expected 'FILE * restrict' but argument is of type 'char *' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:12:24: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 12 | fprintf("%d\n",p+k-n-1); | ~~~~~^~ | | | int In file included from /usr/include/stdio.h:888, from main.c:1: /usr/include/bits/stdio2.h:103:60: note: expected 'const char * restrict' but argument is of type 'int' 103 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:9:4: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf("%d%d%d",&n,&p,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp execuție Memorie folosită Mesaj Punctaj/test
1 2 ms 114 kb Incorect 0
2 1 ms 118 kb Incorect 0
3 1 ms 118 kb Incorect 0
4 1 ms 118 kb Incorect 0
5 1 ms 118 kb Incorect 0
6 1 ms 118 kb Incorect 0
7 1 ms 118 kb Incorect 0
8 1 ms 118 kb Incorect 0
9 1 ms 118 kb Incorect 0
10 2 ms 118 kb Incorect 0
Punctaj total 0