Pagini recente »
Borderou de evaluare (job #744721)
Borderou de evaluare (job #744721)
Raport evaluator
Compilare:
main.c: In function 'fact':
main.c:10:17: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
10 | fprintf(fout, "%d ", div);
| ^~~~
| |
| int *
In file included from /usr/include/stdio.h:906,
from main.c:1:
/usr/include/bits/stdio2.h:77:27: note: expected 'FILE * restrict' but argument is of type 'int *'
77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:18:14: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types]
18 | fprintf(fout, "%d\n", cnt);
| ^~~~
| |
| int *
/usr/include/bits/stdio2.h:77:27: note: expected 'FILE * restrict' but argument is of type 'int *'
77 | fprintf (FILE *__restrict __stream, const char *__restrict __fmt, ...)
| ~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:19:13: warning: left-hand operand of comma expression has no effect [-Wunused-value]
19 | return(n,cnt^div,ok,cnt,fout);
| ^
main.c:19:21: warning: left-hand operand of comma expression has no effect [-Wunused-value]
19 | return(n,cnt^div,ok,cnt,fout);
| ^
main.c:19:24: warning: left-hand operand of comma expression has no effect [-Wunused-value]
19 | return(n,cnt^div,ok,cnt,fout);
| ^
main.c:19:28: warning: left-hand operand of comma expression has no effect [-Wunused-value]
19 | return(n,cnt^div,ok,cnt,fout);
| ^
main.c:19:28: warning: returning 'int *' from a function with return type 'int' makes integer from pointer without a cast [-Wint-conversion]
19 | return(n,cnt^div,ok,cnt,fout);
| ~~~~~~~~~~~~~~~~~^~~~~~
main.c: In function 'main':
main.c:31:16: warning: passing argument 5 of 'fact' from incompatible pointer type [-Wincompatible-pointer-types]
31 | fact(n,2,0,1,fout);
| ^~~~
| |
| FILE *
main.c:5:46: note: expected 'int *' but argument is of type 'FILE *'
5 | int fact(int n, int div,int ok ,int cnt,int *fout){
| ~~~~~^~~~
main.c:30:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result]
30 | fscanf(fin,"%d", &n);
| ^~~~~~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
245 kb
|
OK
|
5
|
2
|
2 ms
|
245 kb
|
Incorect
|
0
|
3
|
2 ms
|
245 kb
|
Incorect
|
0
|
4
|
1 ms
|
245 kb
|
Incorect
|
0
|
5
|
2 ms
|
245 kb
|
Incorect
|
0
|
6
|
1 ms
|
245 kb
|
Incorect
|
0
|
7
|
1 ms
|
245 kb
|
Incorect
|
0
|
8
|
1 ms
|
245 kb
|
Incorect
|
0
|
9
|
1 ms
|
245 kb
|
Incorect
|
0
|
10
|
1 ms
|
245 kb
|
Incorect
|
0
|
11
|
1 ms
|
245 kb
|
Incorect
|
0
|
12
|
1 ms
|
245 kb
|
Incorect
|
0
|
13
|
1 ms
|
245 kb
|
Incorect
|
0
|
14
|
1 ms
|
245 kb
|
Incorect
|
0
|
15
|
1 ms
|
245 kb
|
Incorect
|
0
|
16
|
1 ms
|
245 kb
|
Incorect
|
0
|
17
|
1 ms
|
245 kb
|
Incorect
|
0
|
18
|
1 ms
|
245 kb
|
Incorect
|
0
|
19
|
2 ms
|
245 kb
|
Incorect
|
0
|
20
|
1 ms
|
245 kb
|
Incorect
|
0
|
Penalizare: 5% (pentru 1 submisie/ii)
|
5%
|
Punctaj total
|
4
|