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