foo.cc: In function 'int main()':
foo.cc:9:67: error: too few arguments to function 'long long int power(int, int, int)'
cout << a << '^' << b << " mod " << p << '=' << power(a % p, b) % 10;
^
foo.cc:4:11: note: declared here
long long power(int a, int b,int m);
^~~~~
foo.cc: In function 'long long int power(int, int, int)':
foo.cc:18:32: error: too few arguments to function 'long long int power(int, int, int)'
result = power(a, b - 1)%m * a;
^
foo.cc:14:11: note: declared here
long long power(int a, int b,int m)
^~~~~
foo.cc:21:32: error: too few arguments to function 'long long int power(int, int, int)'
result = power(a, b / 2)%m * power(a, b / 2)%m;
^
foo.cc:14:11: note: declared here
long long power(int a, int b,int m)
^~~~~
foo.cc:21:52: error: too few arguments to function 'long long int power(int, int, int)'
result = power(a, b / 2)%m * power(a, b / 2)%m;
^
foo.cc:14:11: note: declared here
long long power(int a, int b,int m)
^~~~~
[Hydro](https://hydro.ac)提供评测服务