Pagini recente » Borderou de evaluare (job #1826626) | Borderou de evaluare (job #459981) | Borderou de evaluare (job #530556) | Borderou de evaluare (job #2211333) | Borderou de evaluare (job #2909335)
Borderou de evaluare (job #2909335)
Raport evaluator
Compilare:
main.c:3:20: warning: conflicting types for built-in function 'exp'; expected 'double(double)' [-Wbuiltin-declaration-mismatch]
3 | unsigned long long exp(unsigned long long x, unsigned long long n)
| ^~~
main.c:2:1: note: 'exp' is declared in header '<math.h>'
1 | #include <stdio.h>
+++ |+#include <math.h>
2 |
main.c: In function 'main':
main.c:37:18: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'long long unsigned int *' [-Wformat=]
37 | fscanf(fin,"%d %d", &A, &N);
| ~^ ~~
| | |
| int * long long unsigned int *
| %lld
main.c:37:21: warning: format '%d' expects argument of type 'int *', but argument 4 has type 'long long unsigned int *' [-Wformat=]
37 | fscanf(fin,"%d %d", &A, &N);
| ~^ ~~
| | |
| int * long long unsigned int *
| %lld
main.c:38:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long unsigned int' [-Wformat=]
38 | fprintf(fout,"%d", exp(A, phi(N)-1)%N);
| ~^ ~~~~~~~~~~~~~~~~~~
| | |
| int long long unsigned int
| %lld
main.c: In function 'exp':
main.c:13:1: warning: control reaches end of non-void function [-Wreturn-type]
13 | }
| ^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 1ms | 184kb | OK | 10 |
2 | 1ms | 184kb | Incorect | 0 |
3 | 3ms | 274kb | Incorect | 0 |
4 | 1ms | 184kb | Incorect | 0 |
5 | 1ms | 184kb | Incorect | 0 |
6 | 1ms | 184kb | Incorect | 0 |
7 | 1ms | 184kb | Incorect | 0 |
8 | 1ms | 184kb | Incorect | 0 |
9 | 1ms | 184kb | Incorect | 0 |
10 | 1ms | 184kb | Incorect | 0 |
Punctaj total | 10 |