Borderou de evaluare (job #2715431)
Utilizator | Data | 3 martie 2021 17:47:45 | |
---|---|---|---|
Problema | ClassicTask | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'int Task::fast_pow(int, int, int)':
main.cpp:25:81: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}' and 'int' to binary 'operator%'
return (int)(pow((1LL* (fast_pow(base, exponent/2, mod) % mod)), 2) % mod);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
main.cpp:26:89: error: invalid operands of types '__gnu_cxx::__promote_2<long long int, int, double, double>::__type {aka double}' and 'int' to binary 'operator%'
return (int)((long long)(pow((1LL* (fast_pow(base, exponent/2, mod) % mod)), 2) % mod) * base % mod);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !