Borderou de evaluare (job #2454985)

Utilizator cristi1990anCornea Cristian cristi1990an Data 10 septembrie 2019 16:23:49
Problema Cifra Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:74:8: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] fgets(c, 100, f); ^ In file included from /usr/include/stdio.h:936:0, from main.c:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:253:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^~~~~ main.c:75:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] printf("%d", strlen(c)); ^~~~~~ main.c:75:15: warning: incompatible implicit declaration of built-in function 'strlen' main.c:75:15: note: include '<string.h>' or provide a declaration of 'strlen' main.c:75:22: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] printf("%d", strlen(c)); ^ main.c:75:22: note: expected 'const char *' but argument is of type 'unsigned char *' main.c:75:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [-Wformat=] printf("%d", strlen(c)); ^ main.c:76:13: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(c) >= 2) ^ main.c:76:13: note: expected 'const char *' but argument is of type 'unsigned char *' main.c:78:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] s[0] = c[strlen(c) - 3]; ^ main.c:78:19: note: expected 'const char *' but argument is of type 'unsigned char *' main.c:79:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] s[1] = c[strlen(c) - 2]; ^ main.c:79:19: note: expected 'const char *' but argument is of type 'unsigned char *' main.c:84:9: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign] sscanf(s, "%u", &T); ^ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from main.c:2: /usr/include/stdio.h:448:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *' extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s, ^ main.c:96:9: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] fgets(c, 100, f); ^ In file included from /usr/include/stdio.h:936:0, from main.c:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:253:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' fgets (char *__restrict __s, int __n, FILE *__restrict __stream) ^~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbKilled by Signal 70
22ms131kbKilled by Signal 70
32ms131kbKilled by Signal 110
42ms131kbKilled by Signal 70
52ms131kbKilled by Signal 70
62ms131kbKilled by Signal 70
72ms131kbKilled by Signal 70
82ms131kbKilled by Signal 70
92ms131kbKilled by Signal 70
102ms131kbKilled by Signal 70
Punctaj total0

Ceva nu functioneaza?