robots.cpp: In function 'int main()':
robots.cpp:70:6: error: reference to 'visit' is ambiguous
70 | if(visit[i][j][s]) continue ;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from robots.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)
| ^~~~~
robots.cpp:22:6: note: 'bool visit [505][505][515]'
22 | bool visit[505][505][515];
| ^~~~~
robots.cpp:71:3: error: reference to 'visit' is ambiguous
71 | visit[i][j][s] = true;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:133,
from robots.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)
| ^~~~~
robots.cpp:22:6: note: 'bool visit [505][505][515]'
22 | bool visit[505][505][515];
| ^~~~~
robots.cpp:74:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
74 | printf("%d\n",w);
| ~^ ~
| | |
| int long long int
| %lld
robots.cpp:46:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
46 | scanf(" %d %d %d",&K,&m,&n);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~
robots.cpp:48:8: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
48 | scanf(" %s",t[i]+1);
| ~~~~~^~~~~~~~~~~~~~