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_38742915_4150.cpp: In function 'int SumF(ll)':
0_0_38742915_4150.cpp:67:23: error: reference to 'plus' is ambiguous
   67 |                 res = plus(res, 1ll * C[K][j] * (((K - j) & 1) ? -1 : 1) % Mod * val[j] % Mod * (pw - 1) % Mod);
      |                       ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:49,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bitset:52,
                 from .\stdc++.h:52:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_function.h:160:12: note: candidates are: 'template<class _Tp> struct std::plus'
  160 |     struct plus;
      |            ^~~~
0_0_38742915_4150.cpp:17:12: note:                 'int plus(int, int)'
   17 | inline int plus(int x, int y) {
      |            ^~~~
0_0_38742915_4150.cpp: In function 'int Sum(ll)':
0_0_38742915_4150.cpp:83:23: error: reference to 'plus' is ambiguous
   83 |                 ans = plus(ans, Mod - 1ll * (r - l + 1) * Sum(n - l) % Mod);
      |                       ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_function.h:160:12: note: candidates are: 'template<class _Tp> struct std::plus'
  160 |     struct plus;
      |            ^~~~
0_0_38742915_4150.cpp:17:12: note:                 'int plus(int, int)'
   17 | inline int plus(int x, int y) {
      |            ^~~~
0_0_38742915_4150.cpp: In function 'int main()':
0_0_38742915_4150.cpp:103:42: error: reference to 'plus' is ambiguous
  103 |                                 sum[j] = plus(sum[j], 1ll * mu[k] * F % Mod);
      |                                          ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_function.h:160:12: note: candidates are: 'template<class _Tp> struct std::plus'
  160 |     struct plus;
      |            ^~~~
0_0_38742915_4150.cpp:17:12: note:                 'int plus(int, int)'
   17 | inline int plus(int x, int y) {
      |            ^~~~
0_0_38742915_4150.cpp:107:34: error: reference to 'plus' is ambiguous
  107 |                         sum[i] = plus(sum[i], sum[i - 1]);
      |                                  ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_function.h:160:12: note: candidates are: 'template<class _Tp> struct std::plus'
  160 |     struct plus;
      |            ^~~~
0_0_38742915_4150.cpp:17:12: note:                 'int plus(int, int)'
   17 | inline int plus(int x, int y) {
      |            ^~~~
0_0_38742915_4150.cpp:114:31: error: reference to 'plus' is ambiguous
  114 |                         ans = plus(ans + 1ll * (Sum(r) - Sum(l - 1)) % Mod * (n / l) % Mod * (n / l) % Mod);
      |                               ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_function.h:160:12: note: candidates are: 'template<class _Tp> struct std::plus'
  160 |     struct plus;
      |            ^~~~
0_0_38742915_4150.cpp:17:12: note:                 'int plus(int, int)'
   17 | inline int plus(int x, int y) {
      |            ^~~~


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-23 08:01:51, Gzip enabled