robots.cpp: In function 'void prep(int, int, int)':
robots.cpp:56:5: error: reference to 'hash' is ambiguous
56 | dp[hash[id][id+1]][sy][sx]=0;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:67:10: error: reference to 'hash' is ambiguous
67 | if(dp[hash[id][id+1]][to.fr][to.sc]!=-1) continue;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:69:7: error: reference to 'hash' is ambiguous
69 | dp[hash[id][id+1]][to.fr][to.sc]=dp[hash[id][id+1]][cur.fr][cur.sc]+1;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:69:40: error: reference to 'hash' is ambiguous
69 | dp[hash[id][id+1]][to.fr][to.sc]=dp[hash[id][id+1]][cur.fr][cur.sc]+1;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:75:26: error: reference to 'hash' is ambiguous
75 | REP(i,h) REP(j,w) if(dp[hash[id][id+1]][i][j]==-1) dp[hash[id][id+1]][i][j]=INF;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:75:56: error: reference to 'hash' is ambiguous
75 | REP(i,h) REP(j,w) if(dp[hash[id][id+1]][i][j]==-1) dp[hash[id][id+1]][i][j]=INF;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp: In function 'int main()':
robots.cpp:83:26: error: reference to 'hash' is ambiguous
83 | REP(i,9) REPN(j,10,i+1) hash[i][j]=cntt++;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:109:7: error: reference to 'hash' is ambiguous
109 | dp[hash[i][j]][y][x]=INF;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:112:8: error: reference to 'hash' is ambiguous
112 | dp[hash[i][j]][y][x]=min(dp[hash[i][j]][y][x],dp[hash[i][div]][y][x]+dp[hash[div][j]][y][x]);
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:112:33: error: reference to 'hash' is ambiguous
112 | dp[hash[i][j]][y][x]=min(dp[hash[i][j]][y][x],dp[hash[i][div]][y][x]+dp[hash[div][j]][y][x]);
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:112:54: error: reference to 'hash' is ambiguous
112 | dp[hash[i][j]][y][x]=min(dp[hash[i][j]][y][x],dp[hash[i][div]][y][x]+dp[hash[div][j]][y][x]);
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:112:77: error: reference to 'hash' is ambiguous
112 | dp[hash[i][j]][y][x]=min(dp[hash[i][j]][y][x],dp[hash[i][div]][y][x]+dp[hash[div][j]][y][x]);
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:114:10: error: reference to 'hash' is ambiguous
114 | if(dp[hash[i][j]][y][x]!=INF){
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:115:16: error: reference to 'hash' is ambiguous
115 | used.pb(dp[hash[i][j]][y][x]);
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:116:18: error: reference to 'hash' is ambiguous
116 | posByCost[dp[hash[i][j]][y][x]].pb(mp(y,x));
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:117:25: error: reference to 'hash' is ambiguous
117 | mini=min(mini,mp(dp[hash[i][j]][y][x],mp(y,x)));
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:128:13: error: reference to 'hash' is ambiguous
128 | int c=dp[hash[i][j]][p.fr][p.sc];
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:132:12: error: reference to 'hash' is ambiguous
132 | if(dp[hash[i][j]][p2.fr][p2.sc]<c+1) continue;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:139:25: error: reference to 'hash' is ambiguous
139 | if(nxt.fr==-2 || dp[hash[i][j]][nxt.fr][nxt.sc]<=c+1) continue;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:140:8: error: reference to 'hash' is ambiguous
140 | dp[hash[i][j]][nxt.fr][nxt.sc]=c+1;
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:153:35: error: reference to 'hash' is ambiguous
153 | REP(i,h) REP(j,w) res=min(res,dp[hash[0][n]][i][j]);
| ^~~~
In file included from /usr/include/c++/10/bits/stl_bvector.h:61,
from /usr/include/c++/10/vector:68,
from robots.cpp:2:
/usr/include/c++/10/bits/functional_hash.h:58:12: note: candidates are: 'template<class _Tp> struct std::hash'
58 | struct hash;
| ^~~~
robots.cpp:52:5: note: 'int hash [10][10]'
52 | int hash[10][10];
| ^~~~
robots.cpp:84:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
84 | scanf("%d%d%d",&n,&w,&h);
| ~~~~~^~~~~~~~~~~~~~~~~~~
robots.cpp:86:16: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
86 | REP(i,h) scanf("%s",buf[i]);
| ~~~~~^~~~~~~~~~~~~