记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1031 快速幂取模
语言
C++
递交时间
2021-09-26 11:30:46
评测时间
2021-09-26 11:30:46
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes