F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-22 18:04:21, Gzip enabled