Borderou de evaluare (job #2704641)

Utilizator skylake404Andrei Cosmin skylake404 Data 10 februarie 2021 21:34:35
Problema Text Status done
Runda Arhiva de probleme Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:16:21: warning: format '%[^ ' expects argument of type 'char *', but argument 3 has type 'char * (*)[500]' [-Wformat=] fscanf(fptr,"%[^\n]", &c); ^ main.c:17:14: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char **' [-Wformat=] printf("%s", c); ^ main.c:19:26: warning: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types] string_size = strlen(c); ^ In file included from main.c:2:0: /usr/include/string.h:394:15: note: expected 'const char *' but argument is of type 'char **' extern size_t strlen (const char *__s) ^~~~~~ main.c:30:17: warning: comparison between pointer and integer if((c[i]>='a' && c[i]<='z') || (c[i]>='A' && c[i]<='Z')){ ^~ main.c:30:30: warning: comparison between pointer and integer if((c[i]>='a' && c[i]<='z') || (c[i]>='A' && c[i]<='Z')){ ^~ main.c:30:45: warning: comparison between pointer and integer if((c[i]>='a' && c[i]<='z') || (c[i]>='A' && c[i]<='Z')){ ^~ main.c:30:58: warning: comparison between pointer and integer if((c[i]>='a' && c[i]<='z') || (c[i]>='A' && c[i]<='Z')){ ^~ main.c:16:5: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] fscanf(fptr,"%[^\n]", &c); ^~~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbKilled by Signal 110
22ms131kbKilled by Signal 110
32ms131kbKilled by Signal 110
42ms131kbKilled by Signal 110
52ms131kbKilled by Signal 110
62ms131kbKilled by Signal 110
72ms131kbKilled by Signal 80
82ms131kbKilled by Signal 110
92ms131kbKilled by Signal 110
102ms131kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?