0_0_21997676_14828.cpp:7:9: error: reference to 'unordered_map' is ambiguous
typedef unordered_map<int,int> Map;
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map:42:0,
from 0_0_21997676_14828.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tr1/unordered_map.h:180:11: note: candidates are: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::tr1::unordered_map
class unordered_map
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/unordered_map:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:115,
from 0_0_21997676_14828.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/unordered_map.h:98:11: note: template<class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> class std::unordered_map
class unordered_map
^
0_0_21997676_14828.cpp:7:9: error: 'unordered_map' does not name a type
typedef unordered_map<int,int> Map;
^
0_0_21997676_14828.cpp:9:1: error: 'Map' does not name a type
Map f,g,id;
^
0_0_21997676_14828.cpp: In function 'int& F(int)':
0_0_21997676_14828.cpp:21:7: error: 'id' was not declared in this scope
if (!id[x]) match(mat[id[x]=++ids],x);
^
0_0_21997676_14828.cpp:22:2: error: 'Map' has not been declared
Map::iterator it=f.find(x);
^
0_0_21997676_14828.cpp:23:6: error: 'it' was not declared in this scope
if (it==f.end()) f[x]=INT_MIN;
^
0_0_21997676_14828.cpp:23:10: error: 'f' was not declared in this scope
if (it==f.end()) f[x]=INT_MIN;
^
0_0_21997676_14828.cpp:24:9: error: 'f' was not declared in this scope
return f[x];
^
0_0_21997676_14828.cpp: In function 'int main()':
0_0_21997676_14828.cpp:44:3: error: 'f' was not declared in this scope
f.clear(),g.clear(),id.clear(),ids=0;
^
0_0_21997676_14828.cpp:44:13: error: 'g' was not declared in this scope
f.clear(),g.clear(),id.clear(),ids=0;
^
0_0_21997676_14828.cpp:44:23: error: 'id' was not declared in this scope
f.clear(),g.clear(),id.clear(),ids=0;
^
0_0_21997676_14828.cpp:48:9: error: 'Map' has not been declared
for (Map::iterator it=g.begin();it!=g.end();++it) {
^
0_0_21997676_14828.cpp:48:36: error: 'it' was not declared in this scope
for (Map::iterator it=g.begin();it!=g.end();++it) {
^
0_0_21997676_14828.cpp:50:32: error: 'w' was not declared in this scope
if (get(d,m+1)==0) F(d<<2)=w;
^
0_0_21997676_14828.cpp:54:10: error: 'Map' has not been declared
for (Map::iterator it=g.begin();it!=g.end();++it) {
^
0_0_21997676_14828.cpp:54:37: error: 'it' was not declared in this scope
for (Map::iterator it=g.begin();it!=g.end();++it) {
^
0_0_21997676_14828.cpp:58:34: error: 'w' was not declared in this scope
if (x==0 && y==3) Max(F(0),w+a[i][j]); else
^
0_0_21997676_14828.cpp:59:34: error: 'w' was not declared in this scope
if (x==3 && y==0) Max(F(0),w+a[i][j]);
^
0_0_21997676_14828.cpp:65:18: error: 'w' was not declared in this scope
Max(F(v1),w+a[i][j]),Max(F(v2),w+a[i][j]);
^
0_0_21997676_14828.cpp:68:16: error: 'w' was not declared in this scope
Max(F(d),w);
^
0_0_21997676_14828.cpp:72:16: error: 'w' was not declared in this scope
Max(F(v),w+a[i][j]);
^
0_0_21997676_14828.cpp:76:16: error: 'w' was not declared in this scope
Max(F(v),w+a[i][j]);
^
0_0_21997676_14828.cpp:79:17: error: 'w' was not declared in this scope
Max(F(v1),w+a[i][j]),Max(F(v2),w+a[i][j]);
^
0_0_21997676_14828.cpp:82:16: error: 'w' was not declared in this scope
Max(F(v),w+a[i][j]);
^
0_0_21997676_14828.cpp:86:16: error: 'w' was not declared in this scope
Max(F(v),w+a[i][j]);
^
0_0_21997676_14828.cpp:90:16: error: 'w' was not declared in this scope
Max(F(v),w+a[i][j]);
^
|