Modulo of long long int number
<p>Hi i tried out a code in c and considering that all variables in the following line of code were of "long long int",</p>

<blockquote>
  <p>money=(money % 1000000007)+(((2*pow(abs(a[i]-a[j]),k))%1000000007) %        1000000007);</p>
</blockquote>

<p>i received an error which states that </p>

<p><code>error: invalid operands to binary % (have 'double' and 'int')
money=(money % 1000000007)+(((2*pow(abs(a[i]-a[j]),k))%1000000007))) % 1000000007);
                                                      ^</code></p>

<p>I did not understand what the error meant in this case because i did not use double.Could i get a brief explanation ?</p>