Borderou de evaluare (job #1055899)

Utilizator MKLOLDragos Ristache MKLOL Data 14 decembrie 2013 12:10:54
Problema Cabana Status done
Runda ONIS 2014, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:13:13: error: invalid operands of types ‘__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}’ and ‘int’ to binary ‘operator%’ #define MOD 1000000007 ^ user.cpp:63:46: note: in expansion of macro ‘MOD’ cout<<1LL*1LL*(pow(fact[K],1LL*rep+1)%MOD) * (inv(fact[K-(N%K)])) % MOD << "\n"; ^

Ceva nu functioneaza?