0_0_33681415_3480.cpp:6:15: error: 'itn' was not declared in this scope
map<pair<int, itn>, int> m;
^
0_0_33681415_3480.cpp:6:18: error: template argument 2 is invalid
map<pair<int, itn>, int> m;
^
0_0_33681415_3480.cpp:6:24: error: template argument 1 is invalid
map<pair<int, itn>, int> m;
^
0_0_33681415_3480.cpp:6:24: error: template argument 3 is invalid
0_0_33681415_3480.cpp:6:24: error: template argument 4 is invalid
0_0_33681415_3480.cpp:6:27: error: invalid type in declaration before ';' token
map<pair<int, itn>, int> m;
^
0_0_33681415_3480.cpp: In function 'void dfs(int, int, int)':
0_0_33681415_3480.cpp:10:6: error: no match for 'operator[]' (operand types are 'int' and 'std::pair<int, int>')
if(m[mp(x - 1, y)] != n - 1) dfs(x - 1, y, n - 1);
^
0_0_33681415_3480.cpp:11:6: error: no match for 'operator[]' (operand types are 'int' and 'std::pair<int, int>')
if(m[mp(x + 1, y)] != n - 2) dfs(x + 1, y, n - 2);
^
0_0_33681415_3480.cpp:12:6: error: no match for 'operator[]' (operand types are 'int' and 'std::pair<int, int>')
if(m[mp(x, y - 1)] != n - 3) dfs(x, y - 1, n - 3);
^
0_0_33681415_3480.cpp:13:6: error: no match for 'operator[]' (operand types are 'int' and 'std::pair<int, int>')
if(m[mp(x, y + 1)] != n - 4) dfs(x, y + 1, n - 4);
^
0_0_33681415_3480.cpp:15:3: error: no match for 'operator[]' (operand types are 'int' and 'std::pair<int, int>')
m[mp(x, y)] = n;
^
|