Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_867_221_18716.cpp: In function 'int main()':
1_867_221_18716.cpp:11:2: error: 'cin' was not declared in this scope
  cin>>T;
  ^
1_867_221_18716.cpp:16:13: error: 'cout' was not declared in this scope
   if(x%2==0)cout<<"Case "<<i<<": even"<<endl;
             ^
1_867_221_18716.cpp:16:41: error: 'endl' was not declared in this scope
   if(x%2==0)cout<<"Case "<<i<<": even"<<endl;
                                         ^
1_867_221_18716.cpp:17:8: error: 'cout' was not declared in this scope
   else cout<<"Case "<<i<<": odd"<<endl;
        ^
1_867_221_18716.cpp:17:35: error: 'endl' was not declared in this scope
   else cout<<"Case "<<i<<": odd"<<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-11-24 21:24:45, Gzip enabled