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_38805713_28319.cpp: In function 'void insert(char, int)':
0_0_38805713_28319.cpp:60:17: error: reference to 'size' is ambiguous
   60 |     rez[id]=cur;size[cur]=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++/bitset:52,
                 from .\stdc++.h:52:
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_38805713_28319.cpp:42:15: note:                 'int size [200020]'
   42 | int rez[N<<1],size[N<<1];
      |               ^~~~
0_0_38805713_28319.cpp: In function 'void dfs_size(int)':
0_0_38805713_28319.cpp:93:9: error: reference to 'size' is ambiguous
   93 |         size[u]+=size[v];
      |         ^~~~
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_38805713_28319.cpp:42:15: note:                 'int size [200020]'
   42 | int rez[N<<1],size[N<<1];
      |               ^~~~
0_0_38805713_28319.cpp:93:18: error: reference to 'size' is ambiguous
   93 |         size[u]+=size[v];
      |                  ^~~~
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_38805713_28319.cpp:42:15: note:                 'int size [200020]'
   42 | int rez[N<<1],size[N<<1];
      |               ^~~~
0_0_38805713_28319.cpp: In function 'void cl()':
0_0_38805713_28319.cpp:111:5: error: 'dsf_size' was not declared in this scope; did you mean 'dfs_size'?
  111 |     dsf_size(0);
      |     ^~~~~~~~
      |     dfs_size
0_0_38805713_28319.cpp: In function 'void sol()':
0_0_38805713_28319.cpp:133:12: error: reference to 'size' is ambiguous
  133 |         if(size[y]<k){printf("-1\n");continue;}
      |            ^~~~
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_38805713_28319.cpp:42:15: note:                 'int size [200020]'
   42 | int rez[N<<1],size[N<<1];
      |               ^~~~
0_0_38805713_28319.cpp:133:20: error: 'k' was not declared in this scope
  133 |         if(size[y]<k){printf("-1\n");continue;}
      |                    ^
0_0_38805713_28319.cpp:135:9: error: 'else' without a previous 'if'
  135 |         else printf("%d\n",ans-(r-l+1)+1);
      |         ^~~~


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-12-01 12:24:57, Gzip enabled