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_36341139_4001.cpp:9:1: error: 'map' does not name a type
 map<int, int>mp;//±ê¼ÇÊý×é
 ^
0_0_36341139_4001.cpp: In function 'int main()':
0_0_36341139_4001.cpp:17:17: error: 'mp' was not declared in this scope
    cin >> a[i]; mp[a[i]] = 0;
                 ^
0_0_36341139_4001.cpp:22:4: error: 'set' was not declared in this scope
    set<int>s;
    ^
0_0_36341139_4001.cpp:22:8: error: expected primary-expression before 'int'
    set<int>s;
        ^
0_0_36341139_4001.cpp:23:4: error: 's' was not declared in this scope
    s.clear();
    ^
0_0_36341139_4001.cpp:27:18: error: 'mp' was not declared in this scope
     cin >> b[i]; mp[b[i]]++;
                  ^
0_0_36341139_4001.cpp:34:4: error: 'map' was not declared in this scope
    map<int, int>p; p.clear();
    ^
0_0_36341139_4001.cpp:34:8: error: expected primary-expression before 'int'
    map<int, int>p; p.clear();
        ^
0_0_36341139_4001.cpp:34:20: error: 'p' was not declared in this scope
    map<int, int>p; p.clear();
                    ^
0_0_36341139_4001.cpp:39:10: error: 'mp' was not declared in this scope
      if (mp[a[r++]] > 0)
          ^
0_0_36341139_4001.cpp:47:9: error: 'mp' was not declared in this scope
     if (mp[a[l++]] > 0)
         ^


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-29 00:24:02, Gzip enabled