F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_39258184_12287.cpp: In function 'void solve()':
0_0_39258184_12287.cpp:121:42: error: call of overloaded 'pow(int, int&)' is ambiguous
  121 |     if(n != 1) a.push_back(1), ans *= pow(2, m);
      |                                       ~~~^~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:47,
                 from .\stdc++.h:114:
gcc-13.1.0/x86_64-w64-mingw32/include/math.h:191:18: note: candidate: 'double pow(double, double)'
  191 |   double __cdecl pow(double _X,double _Y);
      |                  ^~~
0_0_39258184_12287.cpp:99:6: note: candidate: 'MInt pow(i64, i64)'
   99 | MInt pow(i64 n, i64 x) { return MInt(n).pow(x); }
      |      ^~~
0_0_39258184_12287.cpp:100:6: note: candidate: 'MInt pow(MInt, i64)'
  100 | MInt pow(MInt n, i64 x) { return n.pow(x); }
      |      ^~~


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-21 01:48:03, Gzip enabled