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_29944089_24732.cpp: In function 'int main()':
0_0_29944089_24732.cpp:12:10: error: 'cin' was not declared in this scope
    while(cin>>n){
          ^
0_0_29944089_24732.cpp:16:19: error: 'cout' was not declared in this scope
     if (n%2!=0){  cout<<-1<<endl;  continue;  }
                   ^
0_0_29944089_24732.cpp:16:29: error: 'endl' was not declared in this scope
     if (n%2!=0){  cout<<-1<<endl;  continue;  }
                             ^
0_0_29944089_24732.cpp:23:19: error: 'cout' was not declared in this scope
    if (h%2!=0){   cout<<-1<<endl;  continue;  }
                   ^
0_0_29944089_24732.cpp:23:29: error: 'endl' was not declared in this scope
    if (h%2!=0){   cout<<-1<<endl;  continue;  }
                             ^
0_0_29944089_24732.cpp:26:12: error: 'cout' was not declared in this scope
            cout<<n/2<<endl;  //题目要求在第几个切,是从一开始 
            ^
0_0_29944089_24732.cpp:26:23: error: 'endl' was not declared in this scope
            cout<<n/2<<endl;  //题目要求在第几个切,是从一开始 
                       ^
0_0_29944089_24732.cpp:37:6: error: 'cout' was not declared in this scope
      cout<<i<<i+n/2<<endl;
      ^
0_0_29944089_24732.cpp:37:22: error: 'endl' was not declared in this scope
      cout<<i<<i+n/2<<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-12-02 11:08:47, Gzip enabled