记录详情

Compile Error

foo.cc: In function 'long int ks(long int, long int)':
foo.cc:20:10: error: 'pow' was not declared in this scope
   return pow(a, n - 1) * a;
          ^~~
foo.cc:20:10: note: suggested alternative: 'putw'
   return pow(a, n - 1) * a;
          ^~~
          putw
foo.cc:23:10: error: 'pow' was not declared in this scope
   return pow(a, n / 2) * pow(a, n / 2);
          ^~~
foo.cc:23:10: note: suggested alternative: 'putw'
   return pow(a, n / 2) * pow(a, n / 2);
          ^~~
          putw
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1031 快速幂取模
比赛
周末测试2
语言
C++
递交时间
2021-09-24 20:17:22
评测时间
2021-09-24 20:17:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes