Pagini recente » Borderou de evaluare (job #1435610) | Borderou de evaluare (job #756084) | Borderou de evaluare (job #169679) | Borderou de evaluare (job #1508216) | Borderou de evaluare (job #2454983)
Borderou de evaluare (job #2454983)
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:75:9: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
sscanf(c, "%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:88: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:89:7: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
if (strlen(c) >= 2)
^~~~~~
main.c:89:7: warning: incompatible implicit declaration of built-in function 'strlen'
main.c:89:7: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:89:14: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
if (strlen(c) >= 2)
^
main.c:89:14: note: expected 'const char *' but argument is of type 'unsigned char *'
main.c:91:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
s[0] = c[strlen(c) - 2];
^
main.c:91:20: note: expected 'const char *' but argument is of type 'unsigned char *'
main.c:92:20: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign]
s[1] = c[strlen(c) - 1];
^
main.c:92:20: note: expected 'const char *' but argument is of type 'unsigned char *'
main.c:97:10: warning: pointer targets in passing argument 1 of 'sscanf' differ in signedness [-Wpointer-sign]
sscanf(s, "%u", &t[i]);
^
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 *'
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | Raspuns gresit! | 0 |
2 | 2ms | 131kb | Raspuns gresit! | 0 |
3 | 2ms | 131kb | Raspuns gresit! | 0 |
4 | 3ms | 131kb | Raspuns gresit! | 0 |
5 | 3ms | 131kb | Raspuns gresit! | 0 |
6 | 4ms | 131kb | Raspuns gresit! | 0 |
7 | 7ms | 131kb | Raspuns gresit! | 0 |
8 | 11ms | 131kb | Raspuns gresit! | 0 |
9 | 17ms | 262kb | Raspuns gresit! | 0 |
10 | 2ms | 131kb | Killed by Signal 7 | 0 |
Punctaj total | 0 |