robots.cpp: In function 'void prep(int, int, int)':
robots.cpp:56:12: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:67:31: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:69:28: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:69:61: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:75:33: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:75:63: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp: In function 'int main()':
robots.cpp:83:33: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:109:28: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:112:36: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:112:61: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:112:82: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:112:105: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:114:31: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:115:44: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:116:46: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:117:53: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:128:34: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:132:47: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:139:53: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:140:36: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:153:42: 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++/5/bits/basic_string.h:5471:0,
from /usr/include/c++/5/string:52,
from /usr/include/c++/5/random:40,
from /usr/include/c++/5/bits/stl_algo.h:66,
from /usr/include/c++/5/algorithm:62,
from robots.cpp:1:
/usr/include/c++/5/bits/functional_hash.h:58:12: note: template<class _Tp> struct std::hash
struct hash;
^
robots.cpp:84:33: 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:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
REP(i,h) scanf("%s",buf[i]);
^