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