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_37048237_6372.cpp: In function 'void otl(std::set<T>&)':
0_0_37048237_6372.cpp:88:56: error: 'it' was not declared in this scope
 template<class T> inline void otl(set<T>& x) { rep_map(it,x) otl(*it); }
                                                        ^
0_0_37048237_6372.cpp:17:29: note: in definition of macro 'rep_map'
 #define rep_map(it,map) for(it=map.begin();it!=map.end();++it)
                             ^
0_0_37048237_6372.cpp: In function 'void otl(std::map<T, U>&)':
0_0_37048237_6372.cpp:91:67: error: 'it' was not declared in this scope
 template<class T, class U> inline void otl(map<T,U>& x) { rep_map(it,x) otl(it->fi,it->se); }
                                                                   ^
0_0_37048237_6372.cpp:17:29: note: in definition of macro 'rep_map'
 #define rep_map(it,map) for(it=map.begin();it!=map.end();++it)
                             ^


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-12-02 11:33:42, Gzip enabled