Borderou de evaluare (job #2453344)

Utilizator cristi1990anCornea Cristian cristi1990an Data 3 septembrie 2019 14:38:09
Problema Text Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.c: In function 'main': main.c:21:8: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] fgets(text, 100000, f); ^~~~ In file included from /usr/include/stdio.h:936:0, from main.c:3: /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:22:8: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] fgets(text2, 100000, f); ^~~~~ In file included from /usr/include/stdio.h:936:0, from main.c:3: /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:23:13: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] if (strlen(text2)<100000) ^~~~~ In file included from main.c:4:0: /usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'unsigned char *' extern size_t strlen (const char *__s) ^~~~~~ main.c:26:10: warning: pointer targets in passing argument 1 of 'strcat' differ in signedness [-Wpointer-sign] strcat(text, text2); ^~~~ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from main.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:146:1: note: expected 'char * restrict' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ main.c:26:16: warning: pointer targets in passing argument 2 of 'strcat' differ in signedness [-Wpointer-sign] strcat(text, text2); ^~~~~ In file included from /usr/include/features.h:367:0, from /usr/include/stdio.h:27, from main.c:3: /usr/include/x86_64-linux-gnu/bits/string3.h:146:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' __NTH (strcat (char *__restrict __dest, const char *__restrict __src)) ^ main.c:21:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(text, 100000, f); ^~~~~~~~~~~~~~~~~~~~~~ main.c:22:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(text2, 100000, f); ^~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOk!10
22ms131kbWrong answer!0
32ms131kbOk!10
42ms131kbOk!10
52ms131kbWrong answer!0
62ms131kbWrong answer!0
72ms131kbWrong answer!0
82ms131kbWrong answer!0
95ms131kbWrong answer!0
1062ms131kbOk!10
Punctaj total40

Ceva nu functioneaza?