sprinkler.cpp: In function 'long long int proses(long long int, long long int, long long int)':
sprinkler.cpp:13:3: error: reference to 'visit' is ambiguous
13 | visit[x] = true;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from sprinkler.cpp:1:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
sprinkler.cpp:5:6: note: 'bool visit [200005]'
5 | bool visit[200005];
| ^~~~~
sprinkler.cpp:15:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
15 | for(int i = 0; i < adj[x].size(); i++) {
| ~~^~~~~~~~~~~~~~~
sprinkler.cpp:16:5: error: reference to 'visit' is ambiguous
16 | visit[adj[x][i]] = true;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from sprinkler.cpp:1:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
sprinkler.cpp:5:6: note: 'bool visit [200005]'
5 | bool visit[200005];
| ^~~~~
sprinkler.cpp:28:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
28 | for(int i = 0; i < adj[a].size(); i++) {
| ~~^~~~~~~~~~~~~~~
sprinkler.cpp:29:14: error: reference to 'visit' is ambiguous
29 | if(visit[adj[a][i]] == false) {
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from sprinkler.cpp:1:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
sprinkler.cpp:5:6: note: 'bool visit [200005]'
5 | bool visit[200005];
| ^~~~~
sprinkler.cpp:30:13: error: reference to 'visit' is ambiguous
30 | visit[adj[a][i]] = true;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from sprinkler.cpp:1:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
sprinkler.cpp:5:6: note: 'bool visit [200005]'
5 | bool visit[200005];
| ^~~~~
sprinkler.cpp:40:20: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(int i = 0; i < v.size(); i++) {
| ~~^~~~~~~~~~
sprinkler.cpp:41:5: error: reference to 'visit' is ambiguous
41 | visit[v[i]] = false;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from sprinkler.cpp:1:
/usr/include/c++/10/variant:1700:5: note: candidates are: 'template<class _Visitor, class ... _Variants> constexpr decltype(auto) std::visit(_Visitor&&, _Variants&& ...)'
1700 | visit(_Visitor&& __visitor, _Variants&&... __variants)
| ^~~~~
sprinkler.cpp:5:6: note: 'bool visit [200005]'
5 | bool visit[200005];
| ^~~~~
sprinkler.cpp: In function 'int main()':
sprinkler.cpp:69:11: warning: unused variable 'zzz' [-Wunused-variable]
69 | int zzz = proses(x, d, w);
| ^~~