Borderou de evaluare (job #2909335)

Utilizator Cala_cc09Christian Cala Cala_cc09 Data 12 iunie 2022 21:47:24
Problema Invers modular Status done
Runda Arhiva educationala Compilator c-64 | Vezi sursa
Scor 10

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
11ms184kbOK10
21ms184kbIncorect0
33ms274kbIncorect0
41ms184kbIncorect0
51ms184kbIncorect0
61ms184kbIncorect0
71ms184kbIncorect0
81ms184kbIncorect0
91ms184kbIncorect0
101ms184kbIncorect0
Punctaj total10

Ceva nu functioneaza?