Pagini recente »
Borderou de evaluare (job #692575)
|
Borderou de evaluare (job #738174)
Borderou de evaluare (job #738174)
Raport evaluator
Compilare:
main.c: In function 'valoare':
main.c:6:13: warning: implicit declaration of function 'isdigit' [-Wimplicit-function-declaration]
6 | if( isdigit( c ) )
| ^~~~~~~
main.c:3:1: note: include '<ctype.h>' or provide a declaration of 'isdigit'
2 | #include <stdlib.h>
+++ |+#include <ctype.h>
3 |
main.c: In function 'main':
main.c:29:26: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' [-Wformat=]
29 | fprintf( fout, "%d", num );
| ~^ ~~~
| | |
| int long long int
| %lld
main.c:18:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | fscanf( fin, "%d %d\n", &b, &k );
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/stdio.h:906,
from main.c:1:
In function 'fprintf',
inlined from 'main' at main.c:29:2:
/usr/include/bits/stdio2.h:79:10: warning: 'num' may be used uninitialized [-Wmaybe-uninitialized]
79 | return __fprintf_chk (__stream, __USE_FORTIFY_LEVEL - 1, __fmt,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
80 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
main.c: In function 'main':
main.c:15:15: note: 'num' was declared here
15 | long long num;
| ^~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
Punctaj/grupă |
1
|
2 ms
|
118 kb
|
Incorect
|
0
|
0
|
2
|
1 ms
|
241 kb
|
Incorect
|
0
|
3
|
1 ms
|
245 kb
|
Incorect
|
0
|
4
|
1 ms
|
245 kb
|
OK
|
10
|
5
|
29 ms
|
245 kb
|
Incorect
|
0
|
6
|
39 ms
|
249 kb
|
Incorect
|
0
|
7
|
59 ms
|
245 kb
|
Incorect
|
0
|
8
|
59 ms
|
245 kb
|
Incorect
|
0
|
9
|
59 ms
|
249 kb
|
OK
|
10
|
10
|
59 ms
|
245 kb
|
Incorect
|
0
|
Punctaj total
|
0
|