Pagini recente »
Borderou de evaluare (job #744502)
Borderou de evaluare (job #744502)
Raport evaluator
Compilare:
main.c: In function 'fact':
main.c:10:29: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'int' [-Wformat=]
10 | fprintf(fout,"%lld %lld",n,1);
| ~~~^ ~
| | |
| | int
| long long int
| %d
main.c: In function 'main':
main.c:31:19: warning: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
31 | fact(n,2,0,fout,sqrt(n));
| ^~~~
main.c:3:1: note: include '<math.h>' or provide a declaration of 'sqrt'
2 | #include <stdlib.h>
+++ |+#include <math.h>
3 | long long fact(long long n,long long div,long long exp, FILE *fout,long long norig)
main.c:31:19: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
31 | fact(n,2,0,fout,sqrt(n));
| ^~~~
main.c:31:19: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:30:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | fscanf(fin,"%lld",&n);
| ^~~~~~~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
Incorect
|
0
|
2
|
2 ms
|
245 kb
|
OK
|
5
|
3
|
1 ms
|
245 kb
|
OK
|
5
|
4
|
1 ms
|
245 kb
|
OK
|
5
|
5
|
1 ms
|
245 kb
|
OK
|
5
|
6
|
1 ms
|
245 kb
|
OK
|
5
|
7
|
289 ms
|
249 kb
|
OK
|
5
|
8
|
149 ms
|
249 kb
|
OK
|
5
|
9
|
29 ms
|
245 kb
|
OK
|
5
|
10
|
469 ms
|
249 kb
|
OK
|
5
|
11
|
189 ms
|
245 kb
|
OK
|
5
|
12
|
159 ms
|
249 kb
|
OK
|
5
|
13
|
1 ms
|
249 kb
|
OK
|
5
|
14
|
1 ms
|
249 kb
|
OK
|
5
|
15
|
469 ms
|
245 kb
|
OK
|
5
|
16
|
468 ms
|
249 kb
|
OK
|
5
|
17
|
469 ms
|
249 kb
|
Incorect
|
0
|
18
|
466 ms
|
245 kb
|
Incorect
|
0
|
19
|
469 ms
|
249 kb
|
Incorect
|
0
|
20
|
469 ms
|
249 kb
|
Incorect
|
0
|
Punctaj total
|
75
|