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_16679275_3107.cpp: In function 'LL G(LL)':
0_0_16679275_3107.cpp:75:42: error: call of overloaded 'div(LL, int)' is ambiguous
  LL ret=times(times(n,n+1),div((n<<1)+1,6))+(n<<1);
                                          ^
0_0_16679275_3107.cpp:75:42: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:72:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/string_conversions.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2850,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16679275_3107.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/stdlib.h:358:17: note: div_t div(int, int)
   div_t __cdecl div(int _Numerator,int _Denominator);
                 ^
0_0_16679275_3107.cpp:24:11: note: LL div(LL, LL)
 inline LL div(LL a,LL b){
           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/ext/string_conversions.h:41:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/basic_string.h:2850,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:52,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/locale_classes.h:40,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/ios_base.h:41,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ios:42,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/ostream:38,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/iostream:39,
                 from 0_0_16679275_3107.cpp:3:
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:214:3: note: lldiv_t __gnu_cxx::div(long long int, long long int)
   div(long long __n, long long __d)
   ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/cstdlib:169:3: note: ldiv_t std::div(long int, long int)
   div(long __i, long __j) { return ldiv(__i, __j); }
   ^
0_0_16679275_3107.cpp:76:20: error: no match for 'operator*' (operand types are 'LL {aka long long int}' and 'div_t {aka _div_t}')
  ret-=(times(n,n+1)*div(3,2))%mod;
                    ^


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-24 13:48:13, Gzip enabled