QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#142570#6423. FireworksHuangHanShengCompile Error//C++11478b2023-08-19 12:32:082023-08-19 12:32:12

详细

answer.code: In function ‘long double Get(long long int)’:
answer.code:6:36: error: ‘pow’ was not declared in this scope
    6 |         return min((1.0l*k*n+m)/(1-pow(1-p/10000.0l,k)),1e18l);
      |                                    ^~~
answer.code: In function ‘int main()’:
answer.code:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |         scanf("%d",&t);
      |         ~~~~~^~~~~~~~~
answer.code:12:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   12 |                 scanf("%d%d%d",&n,&m,&p);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~