Borderou de evaluare (job #2705402)

Utilizator davidpetreusPetreus David Mihai davidpetreus Data 12 februarie 2021 15:45:27
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:16:34: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}' and 'int' to binary 'operator%' a=pow(n*n%1999999973,p/2)%1999999973; ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ main.cpp:20:36: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, long long int, double, double>::__type {aka double}' and 'int' to binary 'operator%' a=pow(n*n%1999999973,p/p-1)%1999999973; ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ Non zero exit status: 1

Ceva nu functioneaza?