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_37437261_26292.cpp: In function 'int main()':
0_0_37437261_26292.cpp:18:2: error: 'map' was not declared in this scope
  map<char, Node> mp;
  ^
0_0_37437261_26292.cpp:18:6: error: expected primary-expression before 'char'
  map<char, Node> mp;
      ^
0_0_37437261_26292.cpp:26:3: error: 'mp' was not declared in this scope
   mp[c] = node;
   ^
0_0_37437261_26292.cpp:31:7: error: expected primary-expression before 'char'
   map<char, Node> mp_copy(mp);//初始化 
       ^
0_0_37437261_26292.cpp:33:3: error: 'stack' was not declared in this scope
   stack<char> st;
   ^
0_0_37437261_26292.cpp:33:9: error: expected primary-expression before 'char'
   stack<char> st;
         ^
0_0_37437261_26292.cpp:44:5: error: 'st' was not declared in this scope
     st.push(str[i]);
     ^
0_0_37437261_26292.cpp:47:17: error: 'st' was not declared in this scope
     char temp = st.top(); //弹出栈中的字母
                 ^
0_0_37437261_26292.cpp:57:18: error: 'mp_copy' was not declared in this scope
      if(!isLegal(mp_copy[last], mp_copy[temp])){//不合法 
                  ^
0_0_37437261_26292.cpp:68:17: error: 'st' was not declared in this scope
     char temp = st.top(); 
                 ^
0_0_37437261_26292.cpp:72:18: error: 'mp_copy' was not declared in this scope
      if(!isLegal(mp_copy[temp], mp[str[i]])){//不合法 
                  ^
0_0_37437261_26292.cpp:72:33: error: 'mp' was not declared in this scope
      if(!isLegal(mp_copy[temp], mp[str[i]])){//不合法 
                                 ^


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-25 13:08:57, Gzip enabled