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_39122104_18778.cpp: In function 'void init()':
0_0_39122104_18778.cpp:17:9: error: reference to 'size' is ambiguous
   17 |         size=1,t[0].Max=-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_39122104_18778.cpp:13:5: note:                 'int size'
   13 | int size;
      |     ^~~~
0_0_39122104_18778.cpp: In function 'int extend(int, int)':
0_0_39122104_18778.cpp:24:18: error: reference to 'size' is ambiguous
   24 |         int np=++size,q,nq;
      |                  ^~~~
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_39122104_18778.cpp:13:5: note:                 'int size'
   13 | int size;
      |     ^~~~
0_0_39122104_18778.cpp:28:10: error: incompatible types in assignment of 'int' to 'LL [100005]' {aka 'long long int [100005]'}
   28 |         q=t[p].Next[c];
      |         ~^~~~~~~~~~~~~
0_0_39122104_18778.cpp:29:26: error: invalid types 'SAM [200010][LL [100005] {aka long long int [100005]}]' for array subscript
   29 |         if (t[p].Max+1==t[q].Max)
      |                          ^
0_0_39122104_18778.cpp:30:26: error: invalid conversion from 'LL*' {aka 'long long int*'} to 'int' [-fpermissive]
   30 |                 t[np].fa=q;
      |                          ^
      |                          |
      |                          LL* {aka long long int*}
0_0_39122104_18778.cpp:32:17: error: 'nq' was not declared in this scope; did you mean 'np'?
   32 |                 nq=++size;
      |                 ^~
      |                 np
0_0_39122104_18778.cpp:32:22: error: reference to 'size' is ambiguous
   32 |                 nq=++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_39122104_18778.cpp:13:5: note:                 'int size'
   13 | int size;
      |     ^~~~
0_0_39122104_18778.cpp:33:24: error: invalid types 'SAM [200010][LL [100005] {aka long long int [100005]}]' for array subscript
   33 |                 t[nq]=t[q],t[nq].Max=t[p].Max+1;
      |                        ^
0_0_39122104_18778.cpp:34:27: error: invalid types 'SAM [200010][LL [100005] {aka long long int [100005]}]' for array subscript
   34 |                 t[np].fa=t[q].fa=nq;
      |                           ^
0_0_39122104_18778.cpp:35:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   35 |                 for (;t[p].Next[c]==q;p=t[p].fa)
      |                       ~~~~~~~~~~~~^~~
0_0_39122104_18778.cpp: In function 'void Get_Time()':
0_0_39122104_18778.cpp:42:25: error: reference to 'size' is ambiguous
   42 |         for (int i=1;i<=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_39122104_18778.cpp:13:5: note:                 'int size'
   13 | int size;
      |     ^~~~
0_0_39122104_18778.cpp:46:25: error: reference to 'size' is ambiguous
   46 |         for (int i=1;i<=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_39122104_18778.cpp:13:5: note:                 'int size'
   13 | int size;
      |     ^~~~
0_0_39122104_18778.cpp:48:20: error: reference to 'size' is ambiguous
   48 |         for (int i=size;i>1;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_39122104_18778.cpp:13:5: note:                 'int size'
   13 | int size;
      |     ^~~~


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 00:32:00, Gzip enabled