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_20253485_28362.cpp: In function 'int main()':
0_0_20253485_28362.cpp:92:5: error: 'set' was not declared in this scope
     set<int> s;
     ^
0_0_20253485_28362.cpp:92:9: error: expected primary-expression before 'int'
     set<int> s;
         ^
0_0_20253485_28362.cpp:106:13: error: 's' was not declared in this scope
             s.insert(p - 1);
             ^
0_0_20253485_28362.cpp:126:18: error: expected primary-expression before 'int'
         for (set<int>::iterator it = s.begin(); it != s.end(); it++)
                  ^
0_0_20253485_28362.cpp:126:49: error: 'it' was not declared in this scope
         for (set<int>::iterator it = s.begin(); it != s.end(); it++)
                                                 ^
0_0_20253485_28362.cpp:126:55: error: 's' was not declared in this scope
         for (set<int>::iterator it = s.begin(); it != s.end(); it++)
                                                       ^
0_0_20253485_28362.cpp:131:9: error: 's' was not declared in this scope
         s.clear();
         ^


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-07-03 19:39:27, Gzip enabled