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_38900066_25808.cpp: In function 'void add(int)':
0_0_38900066_25808.cpp:28:24: error: reference to 'size' is ambiguous
   28 |                 lazy[y/size]++;//如果次数等与1,即刚出现的纵坐标,则该块的数量加1
      |                        ^~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/string:53,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/locale_classes.h:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ios_base.h:41,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ios:44,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:40,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41,
                 from 0_0_38900066_25808.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  264 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
0_0_38900066_25808.cpp:11:11: note:                 'int size'
   11 | int t,n,m,size,a[MAXN],cnt[MAXN],lazy[MAXN],ans[MAXN];
      |           ^~~~
0_0_38900066_25808.cpp: In function 'void dec(int)':
0_0_38900066_25808.cpp:34:24: error: reference to 'size' is ambiguous
   34 |                 lazy[y/size]--;
      |                        ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  264 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
0_0_38900066_25808.cpp:11:11: note:                 'int size'
   11 | int t,n,m,size,a[MAXN],cnt[MAXN],lazy[MAXN],ans[MAXN];
      |           ^~~~
0_0_38900066_25808.cpp: In function 'int cal(int)':
0_0_38900066_25808.cpp:41:25: error: reference to 'size' is ambiguous
   41 |         for(int i=0;i<y/size;i++)
      |                         ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  264 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
0_0_38900066_25808.cpp:11:11: note:                 'int size'
   11 | int t,n,m,size,a[MAXN],cnt[MAXN],lazy[MAXN],ans[MAXN];
      |           ^~~~
0_0_38900066_25808.cpp:43:22: error: reference to 'size' is ambiguous
   43 |         for(int i=(y/size)*size;i<=y;i++)
      |                      ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  264 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
0_0_38900066_25808.cpp:11:11: note:                 'int size'
   11 | int t,n,m,size,a[MAXN],cnt[MAXN],lazy[MAXN],ans[MAXN];
      |           ^~~~
0_0_38900066_25808.cpp:43:28: error: reference to 'size' is ambiguous
   43 |         for(int i=(y/size)*size;i<=y;i++)
      |                            ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  264 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
0_0_38900066_25808.cpp:11:11: note:                 'int size'
   11 | int t,n,m,size,a[MAXN],cnt[MAXN],lazy[MAXN],ans[MAXN];
      |           ^~~~
0_0_38900066_25808.cpp: In function 'int main()':
0_0_38900066_25808.cpp:59:17: error: reference to 'size' is ambiguous
   59 |                 size=313;//x y都要分块 根号100000 = 313
      |                 ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  264 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
0_0_38900066_25808.cpp:11:11: note:                 'int size'
   11 | int t,n,m,size,a[MAXN],cnt[MAXN],lazy[MAXN],ans[MAXN];
      |           ^~~~
0_0_38900066_25808.cpp:71:43: error: reference to 'size' is ambiguous
   71 |                         q[i].block=(x1-1)/size+1;
      |                                           ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:274:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
  274 |     size(const _Tp (&)[_Nm]) noexcept
      |     ^~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/range_access.h:264:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
  264 |     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
      |     ^~~~
0_0_38900066_25808.cpp:11:11: note:                 'int size'
   11 | int t,n,m,size,a[MAXN],cnt[MAXN],lazy[MAXN],ans[MAXN];
      |           ^~~~


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-17 05:42:20, Gzip enabled