Borderou de evaluare (job #2453338)

Utilizator cristi1990anCornea Cristian cristi1990an Data 3 septembrie 2019 14:34:22
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:41:30: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] printf("Letter: %c Count: %u Lenght: %u Total: %u \n", text[i], count, len, sum); ^ main.c:41:41: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] printf("Letter: %c Count: %u Lenght: %u Total: %u \n", text[i], count, len, sum); ^ main.c:41:51: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] printf("Letter: %c Count: %u Lenght: %u Total: %u \n", text[i], count, len, sum); ^ main.c:47:29: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] printf("Letter: %c Count: %u Lenght: %u Total: %u \n", text[i], count, len, sum); ^ main.c:47:40: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] printf("Letter: %c Count: %u Lenght: %u Total: %u \n", text[i], count, len, sum); ^ main.c:47:50: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'long unsigned int' [-Wformat=] printf("Letter: %c Count: %u Lenght: %u Total: %u \n", text[i], count, len, sum); ^ main.c:21:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(text, 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
1061ms131kbOk!10
Punctaj total40

Ceva nu functioneaza?