Borderou de evaluare (job #2453324)

Utilizator cristi1990anCornea Cristian cristi1990an Data 3 septembrie 2019 14:12:20
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:23:8: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] fgets(text, 1000000, 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:40:37: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat=] printf("Found a word of lenght %u. There are also %u other words of the same lenght found so far. \n", len, v[len] - 1); ^ main.c:40:56: warning: format '%u' expects argument of type 'unsigned int', but argument 3 has type 'long unsigned int' [-Wformat=] printf("Found a word of lenght %u. There are also %u other words of the same lenght found so far. \n", len, v[len] - 1); ^ main.c:52:25: warning: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' [-Wformat=] printf("j=%d, v[%d]=%u \n", j, j, v[j]); ^ main.c:23:2: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] fgets(text, 1000000, f); ^~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOk!10
22ms131kbWrong answer!0
32ms131kbOk!10
42ms131kbOk!10
52ms131kbWrong answer!0
62ms131kbWrong answer!0
72ms131kbKilled by Signal 80
82ms131kbWrong answer!0
93ms131kbWrong answer!0
1033ms262kbOk!10
Punctaj total40

Ceva nu functioneaza?