skyscraper.cpp: In function 'int main()':
skyscraper.cpp:53:25: error: reference to 'visit' is ambiguous
53 | if (u - p >= 0 && !visit[u - p][p]) {
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:54:7: error: reference to 'visit' is ambiguous
54 | visit[u - p][p] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:57:24: error: reference to 'visit' is ambiguous
57 | if (u + p < n && !visit[u + p][p]) {
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:58:7: error: reference to 'visit' is ambiguous
58 | visit[u + p][p] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:62:7: error: reference to 'visit' is ambiguous
62 | visit[u][p] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:63:26: error: reference to 'visit' is ambiguous
63 | if (u - p >= 0 && !visit[u - p][p]) {
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:64:8: error: reference to 'visit' is ambiguous
64 | visit[u - p][p] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:67:25: error: reference to 'visit' is ambiguous
67 | if (u + p < n && !visit[u + p][p]) {
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:68:8: error: reference to 'visit' is ambiguous
68 | visit[u + p][p] = 1;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from skyscraper.cpp:6:
/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)
| ^~~~~
skyscraper.cpp:27:14: note: 'std::bitset<30005> visit [30005]'
27 | bitset<MAXN> visit[MAXN];
| ^~~~~
skyscraper.cpp:34:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
34 | freopen(NAME".inp","r",stdin);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
skyscraper.cpp:35:16: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
35 | freopen(NAME".out","w",stdout);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~