0_0_13692180_30524.cpp: In function 'LL g(LL)':
0_0_13692180_30524.cpp:30:39: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
if(m%3==1)return (pow(3,m/3-1)*4)%P;
^
0_0_13692180_30524.cpp:31:37: error: invalid operands of types '__gnu_cxx::__promote_2<int, long long int, double, double>::__type {aka double}' and 'const LL {aka const long long int}' to binary 'operator%'
if(m%3==2)return (pow(3,m/3)*2)%P;
^
|