Pagini recente » Borderou de evaluare (job #361152) | Borderou de evaluare (job #828642) | Borderou de evaluare (job #2002816) | Borderou de evaluare (job #1874275) | Borderou de evaluare (job #2454988)
Borderou de evaluare (job #2454988)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:74:8: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign]
fgets(c, 100, 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:76:6: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
if (strlen(c) > 2)
^~~~~~
main.c:76:6: warning: incompatible implicit declaration of built-in function 'strlen'
main.c:76:6: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:76:13: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
if (strlen(c) > 2)
^
main.c:76:13: note: expected 'const char *' but argument is of type 'unsigned char *'
main.c:78:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
s[0] = c[strlen(c) - 3];
^
main.c:78:19: note: expected 'const char *' but argument is of type 'unsigned char *'
main.c:79:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
s[1] = c[strlen(c) - 2];
^
main.c:79:19: note: expected 'const char *' but argument is of type 'unsigned char *'
main.c:86:9: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
sscanf(s, "%u", &T);
^
In file included from /usr/include/features.h:367:0,
from /usr/include/stdio.h:27,
from main.c:2:
/usr/include/stdio.h:448:12: note: expected 'const char * restrict' but argument is of type 'unsigned char *'
extern int __REDIRECT_NTH (sscanf, (const char *__restrict __s,
^
main.c:98:9: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign]
fgets(c, 100, 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:99:7: warning: incompatible implicit declaration of built-in function 'strlen'
if (strlen(c) > 2)
^~~~~~
main.c:99:7: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:99:14: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
if (strlen(c) > 2)
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Killed by Signal 7 | 0 |
2 | 2ms | 131kb | Killed by Signal 7 | 0 |
3 | 2ms | 131kb | Killed by Signal 11 | 0 |
4 | 2ms | 131kb | Killed by Signal 7 | 0 |
5 | 2ms | 131kb | Killed by Signal 7 | 0 |
6 | 2ms | 131kb | Killed by Signal 7 | 0 |
7 | 2ms | 131kb | Killed by Signal 7 | 0 |
8 | 2ms | 131kb | Killed by Signal 11 | 0 |
9 | 2ms | 131kb | Killed by Signal 7 | 0 |
10 | 2ms | 131kb | Killed by Signal 7 | 0 |
Punctaj total | 0 |