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_38628862_7518.cpp: In function 'void init()':
0_0_38628862_7518.cpp:20:5: error: reference to 'size' is ambiguous
     size[0]=size[1]=0;
     ^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:65,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/stack:60,
                 from 0_0_38628862_7518.cpp:3:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
     size(const _Tp (&/*__array*/)[_Nm]) noexcept
     ^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
     ^~~~
0_0_38628862_7518.cpp:10:47: note:                 'int size [2]'
 int head[2][maxn],point[2][maxm],nxt[2][maxm],size[2];
                                               ^~~~
0_0_38628862_7518.cpp:20:13: error: reference to 'size' is ambiguous
     size[0]=size[1]=0;
             ^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:65,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/stack:60,
                 from 0_0_38628862_7518.cpp:3:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
     size(const _Tp (&/*__array*/)[_Nm]) noexcept
     ^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
     ^~~~
0_0_38628862_7518.cpp:10:47: note:                 'int size [2]'
 int head[2][maxn],point[2][maxm],nxt[2][maxm],size[2];
                                               ^~~~
0_0_38628862_7518.cpp: In function 'void add(int, int, int)':
0_0_38628862_7518.cpp:30:14: error: reference to 'size' is ambiguous
     point[c][size[c]]=b;
              ^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:65,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/stack:60,
                 from 0_0_38628862_7518.cpp:3:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
     size(const _Tp (&/*__array*/)[_Nm]) noexcept
     ^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
     ^~~~
0_0_38628862_7518.cpp:10:47: note:                 'int size [2]'
 int head[2][maxn],point[2][maxm],nxt[2][maxm],size[2];
                                               ^~~~
0_0_38628862_7518.cpp:31:12: error: reference to 'size' is ambiguous
     nxt[c][size[c]]=head[c][a];
            ^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:65,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/stack:60,
                 from 0_0_38628862_7518.cpp:3:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
     size(const _Tp (&/*__array*/)[_Nm]) noexcept
     ^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
     ^~~~
0_0_38628862_7518.cpp:10:47: note:                 'int size [2]'
 int head[2][maxn],point[2][maxm],nxt[2][maxm],size[2];
                                               ^~~~
0_0_38628862_7518.cpp:32:16: error: reference to 'size' is ambiguous
     head[c][a]=size[c]++;
                ^~~~
In file included from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/deque:65,
                 from gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/stack:60,
                 from 0_0_38628862_7518.cpp:3:
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:252:5: note: candidates are: 'template<class _Tp, long long unsigned int _Nm> constexpr std::size_t std::size(const _Tp (&)[_Nm])'
     size(const _Tp (&/*__array*/)[_Nm]) noexcept
     ^~~~
gcc-8.5.0/lib/gcc/x86_64-w64-mingw32/8.5.0/include/c++/bits/range_access.h:242:5: note:                 'template<class _Container> constexpr decltype (__cont.size()) std::size(const _Container&)'
     size(const _Container& __cont) noexcept(noexcept(__cont.size()))
     ^~~~
0_0_38628862_7518.cpp:10:47: note:                 'int size [2]'
 int head[2][maxn],point[2][maxm],nxt[2][maxm],size[2];
                                               ^~~~


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-06-22 18:57:15, Gzip enabled