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_38568937_4949.cpp: In function 'bool DFS(int, int, int)':
0_0_38568937_4949.cpp:27:31: error: reference to 'visit' is ambiguous
   27 |                 if(a[i]>side||visit[i]==1||sum+a[i]>side||a[i]==ans)
      |                               ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
                 from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1768 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_38568937_4949.cpp:13:6: note:                 'bool visit [25]'
   13 | bool visit[Max];
      |      ^~~~~
0_0_38568937_4949.cpp:31:17: error: reference to 'visit' is ambiguous
   31 |                 visit[i]=1;
      |                 ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
                 from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1768 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_38568937_4949.cpp:13:6: note:                 'bool visit [25]'
   13 | bool visit[Max];
      |      ^~~~~
0_0_38568937_4949.cpp:45:17: error: reference to 'visit' is ambiguous
   45 |                 visit[i]=0;
      |                 ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
                 from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1768 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_38568937_4949.cpp:13:6: note:                 'bool visit [25]'
   13 | bool visit[Max];
      |      ^~~~~
0_0_38568937_4949.cpp: In function 'int main()':
0_0_38568937_4949.cpp:62:24: error: reference to 'visit' is ambiguous
   62 |                 memset(visit,0,sizeof(visit));
      |                        ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
                 from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1768 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_38568937_4949.cpp:13:6: note:                 'bool visit [25]'
   13 | bool visit[Max];
      |      ^~~~~
0_0_38568937_4949.cpp:62:39: error: reference to 'visit' is ambiguous
   62 |                 memset(visit,0,sizeof(visit));
      |                                       ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
                 from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1768 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_38568937_4949.cpp:13:6: note:                 'bool visit [25]'
   13 | bool visit[Max];
      |      ^~~~~
0_0_38568937_4949.cpp:70:33: error: reference to 'visit' is ambiguous
   70 |                                 visit[0]=1;
      |                                 ^~~~~
In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/stdc++.h:133,
                 from 0_0_38568937_4949.cpp:1:
/usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/variant:1768:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr std::__detail::__variant::__visit_result_t<_Visitor, _Variants ...> std::visit(_Visitor&&, _Variants&& ...)'
 1768 |     visit(_Visitor&& __visitor, _Variants&&... __variants)
      |     ^~~~~
0_0_38568937_4949.cpp:13:6: note:                 'bool visit [25]'
   13 | bool visit[Max];
      |      ^~~~~


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-23 09:07:47, Gzip enabled