Pagini recente »
Borderou de evaluare (job #570667)
|
Borderou de evaluare (job #117686)
|
Borderou de evaluare (job #679850)
|
Borderou de evaluare (job #250881)
|
Borderou de evaluare (job #649242)
Borderou de evaluare (job #649242)
Raport evaluator
Compilare:
main.c: In function 'main':
main.c:20:19: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'char (*)[10]' [-Wformat=]
20 | fscanf(pIn, "%s", &n);
| ~^ ~~
| | |
| | char (*)[10]
| char *
main.c:21:13: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
21 | int l = strlen(n);
| ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strlen'
2 | #include <stdlib.h>
+++ |+#include <string.h>
3 |
main.c:21:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch]
21 | int l = strlen(n);
| ^~~~~~
main.c:21:13: note: include '<string.h>' or provide a declaration of 'strlen'
main.c:34:30: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'char (*)[10]' [-Wformat=]
34 | int maxCNP = sscanf(n, "%d", &n);
| ~^ ~~
| | |
| | char (*)[10]
| int *
main.c:38:52: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'char *' [-Wformat=]
38 | int CNPurmator = sscanf(CNPurmatorCaStr, "%d", CNPurmatorCaStr);
| ~^ ~~~~~~~~~~~~~~~
| | |
| | char *
| int *
| %hhd
main.c:20:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
20 | fscanf(pIn, "%s", &n);
| ^~~~~~~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
114 kb
|
a) si b) corecte
|
7
|
2
|
1 ms
|
114 kb
|
a) si b) corecte
|
7
|
3
|
1 ms
|
114 kb
|
a) corect
|
4
|
4
|
1 ms
|
114 kb
|
a) corect
|
4
|
5
|
1 ms
|
114 kb
|
a) si b) corecte
|
7
|
6
|
1 ms
|
114 kb
|
a) corect
|
4
|
7
|
1 ms
|
114 kb
|
a) si b) corecte
|
7
|
8
|
1 ms
|
110 kb
|
a) si b) corecte
|
7
|
9
|
1 ms
|
114 kb
|
a) si b) corecte
|
7
|
10
|
1 ms
|
114 kb
|
a) si b) corecte
|
7
|
Punctaj total
|
61
|