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_39600465_31148.cpp: In function 'void solve()':
0_0_39600465_31148.cpp:23:16: error: reference to 'visit' is ambiguous
   23 |         memset(visit,0,sizeof(visit));
      |                ^~~~~
In file included from .\stdc++.h:80:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
 1867 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note:                 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1827 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_39600465_31148.cpp:10:14: note:                 'bool visit [200010]'
   10 |         bool visit[200010]={0};
      |              ^~~~~
0_0_39600465_31148.cpp:23:31: error: reference to 'visit' is ambiguous
   23 |         memset(visit,0,sizeof(visit));
      |                               ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
 1867 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note:                 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1827 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_39600465_31148.cpp:10:14: note:                 'bool visit [200010]'
   10 |         bool visit[200010]={0};
      |              ^~~~~
0_0_39600465_31148.cpp:32:9: error: reference to 'visit' is ambiguous
   32 |         visit[100000]=1;
      |         ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
 1867 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note:                 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1827 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_39600465_31148.cpp:10:14: note:                 'bool visit [200010]'
   10 |         bool visit[200010]={0};
      |              ^~~~~
0_0_39600465_31148.cpp:46:21: error: reference to 'visit' is ambiguous
   46 |                 if(!visit[zong+100000]){
      |                     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
 1867 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note:                 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1827 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_39600465_31148.cpp:10:14: note:                 'bool visit [200010]'
   10 |         bool visit[200010]={0};
      |              ^~~~~
0_0_39600465_31148.cpp:47:25: error: reference to 'visit' is ambiguous
   47 |                         visit[zong+100000]=1;
      |                         ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1867:5: note: candidates are: 'template<class _Res, class _Visitor, class ... _Variants> constexpr _Res std::visit(_Visitor&&, _Variants&& ...)'
 1867 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/variant:1827:5: note:                 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1827 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_39600465_31148.cpp:10:14: note:                 'bool visit [200010]'
   10 |         bool visit[200010]={0};
      |              ^~~~~


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-22 22:11:55, Gzip enabled