P2.cpp: In function 'void solve()':
P2.cpp:40:26: warning: left operand of comma operator has no effect [-Wunused-value]
ret += b * (a, 1e9 + 5, 1e9+7);
^
P2.cpp:40:24: warning: right operand of comma operator has no effect [-Wunused-value]
ret += b * (a, 1e9 + 5, 1e9+7);
~~~~^~~
P2.cpp:41:9: error: invalid operands of types 'll {aka long long int}' and 'double' to binary 'operator%'
ret %= 1e9+7;
~~~~^~~~~~~~
P2.cpp:41:16: error: in evaluation of 'operator%=(ll {aka long long int}, double)'
ret %= 1e9+7;
^