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_13904009_13125.cpp:3:2: error: 'set' does not name a type
  set<int> s;
  ^
0_0_13904009_13125.cpp:4:10: error: 'set' does not name a type
  typedef set<int>::iterator IT;
          ^
0_0_13904009_13125.cpp: In function 'int main()':
0_0_13904009_13125.cpp:8:9: error: 'cin' was not declared in this scope
   while(cin>>n)
         ^
0_0_13904009_13125.cpp:15:4: error: 's' was not declared in this scope
    s.clear();
    ^
0_0_13904009_13125.cpp:16:25: error: 'INT_MAX' was not declared in this scope
    s.insert(0);s.insert(INT_MAX);
                         ^
0_0_13904009_13125.cpp:21:6: error: 'IT' was not declared in this scope
      IT it=--s.find(arr1[i]);
      ^
0_0_13904009_13125.cpp:22:9: error: 'it' was not declared in this scope
      if(it==s.begin())
         ^
0_0_13904009_13125.cpp:28:4: error: 'cout' was not declared in this scope
    cout<<"Case "<<++CNT<<":"<<endl;
    ^
0_0_13904009_13125.cpp:28:31: error: 'endl' was not declared in this scope
    cout<<"Case "<<++CNT<<":"<<endl;
                               ^


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-06-30 18:07:41, Gzip enabled