Borderou de evaluare (job #2288219)

Utilizator MIGAAndrei Miga MIGA Data 22 noiembrie 2018 22:42:02
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:12:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (c >= 65 && c <= 90 || c >= 97 && c <= 122) ~~~~~~~~^~~~~~~~~~ main.c:14:23: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (!(c >= 65 && c <= 90 || c >= 97 && c <= 122) && (lastchar >= 65 && lastchar <= 90 || lastchar >= 97 && lastchar <= 122)) ~~~~~~~~^~~~~~~~~~ main.c:14:77: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (!(c >= 65 && c <= 90 || c >= 97 && c <= 122) && (lastchar >= 65 && lastchar <= 90 || lastchar >= 97 && lastchar <= 122)) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ main.c:19:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if (lastchar >= 65 && lastchar <= 90 || lastchar >= 97 && lastchar <= 122) ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ main.c:23:13: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] fprintf("%d", NumarLitere / NumarCuvinte); ^~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:95:1: note: expected 'FILE * restrict {aka struct _IO_FILE * restrict}' but argument is of type 'char *' fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ main.c:23:19: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] fprintf("%d", NumarLitere / NumarCuvinte); ^~~~~~~~~~~ In file included from /usr/include/stdio.h:936:0, from main.c:1: /usr/include/x86_64-linux-gnu/bits/stdio2.h:95:1: note: expected 'const char * restrict' but argument is of type 'int' fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...) ^~~~~~~ main.c:23:5: warning: format not a string literal and no format arguments [-Wformat-security] fprintf("%d", NumarLitere / NumarCuvinte); ^~~~~~~
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
73ms131kbKilled by Signal 110
82ms131kbKilled by Signal 110
92ms131kbKilled by Signal 110
103ms131kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?