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_37819015_588.cpp: In function 'void Poly::init()':
0_0_37819015_588.cpp:47:41: error: call of overloaded 'pow(const unsigned int&, long long int)' is ambiguous
    UL Wr = pow(g, (mod - 1) / (len << 1));
                                         ^
0_0_37819015_588.cpp:47:41: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_37819015_588.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: double pow(double, double)
   double __cdecl pow(double _X,double _Y);
                  ^
0_0_37819015_588.cpp:18:4: note: long long unsigned int pow(long long unsigned int, long long unsigned int)
 UL pow(UL a, UL b)
    ^
0_0_37819015_588.cpp:48:42: error: call of overloaded 'pow(const unsigned int&, long long int)' is ambiguous
    UL Wi = pow(gi, (mod - 1) / (len << 1));
                                          ^
0_0_37819015_588.cpp:48:42: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_37819015_588.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: double pow(double, double)
   double __cdecl pow(double _X,double _Y);
                  ^
0_0_37819015_588.cpp:18:4: note: long long unsigned int pow(long long unsigned int, long long unsigned int)
 UL pow(UL a, UL b)
    ^
0_0_37819015_588.cpp: In constructor 'Poly::poly1::poly1()':
0_0_37819015_588.cpp:63:19: error: call of overloaded 'poly1(int)' is ambiguous
   poly1() :poly1(1) {}
                   ^
0_0_37819015_588.cpp:63:19: note: candidates are:
0_0_37819015_588.cpp:66:3: note: Poly::poly1::poly1(const Poly::poly1&)
   poly1(const poly1& b) :poly1(b.a, b.len) {}
   ^
0_0_37819015_588.cpp:64:3: note: Poly::poly1::poly1(long long unsigned int)
   poly1(UL x) :poly1() { a[0] = x; }
   ^
0_0_37819015_588.cpp:62:3: note: Poly::poly1::poly1(long long int)
   poly1(LL len) :len(len) { a = mem = m(); cls(0, len); }
   ^
0_0_37819015_588.cpp: In member function 'Poly::poly1& Poly::poly1::NTTi(long long int)':
0_0_37819015_588.cpp:114:35: error: call of overloaded 'pow(long long int&, unsigned int)' is ambiguous
    *this *= pow(this->len, mod - 2);
                                   ^
0_0_37819015_588.cpp:114:35: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cmath:44:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
                 from 0_0_37819015_588.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/math.h:151:18: note: double pow(double, double)
   double __cdecl pow(double _X,double _Y);
                  ^
0_0_37819015_588.cpp:18:4: note: long long unsigned int pow(long long unsigned int, long long unsigned int)
 UL pow(UL a, UL b)
    ^


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-11-29 19:03:37, Gzip enabled