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_36668207_18738.cpp: In function 'int main()':
0_0_36668207_18738.cpp:40:3: error: 'list' was not declared in this scope
   list <int> mylist;
   ^
0_0_36668207_18738.cpp:40:9: error: expected primary-expression before 'int'
   list <int> mylist;
         ^
0_0_36668207_18738.cpp:41:9: error: expected primary-expression before 'int'
   list <int>::iterator it;
         ^
0_0_36668207_18738.cpp:43:4: error: 'mylist' was not declared in this scope
    mylist.push_back(i);
    ^
0_0_36668207_18738.cpp:45:10: error: 'mylist' was not declared in this scope
   while( mylist.size()>3){
          ^
0_0_36668207_18738.cpp:47:8: error: 'it' was not declared in this scope
    for(it=mylist.begin();it!=mylist.end() ; ){
        ^
0_0_36668207_18738.cpp:56:7: error: 'it' was not declared in this scope
   for(it =mylist.begin();it!=mylist.end() ;it++ ){
       ^
0_0_36668207_18738.cpp:56:11: error: 'mylist' was not declared in this scope
   for(it =mylist.begin();it!=mylist.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-11-24 16:17:12, Gzip enabled