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_30335676_18829.cpp:1:1: error: 'include' does not name a type
 include<iostream>
 ^
0_0_30335676_18829.cpp: In function 'int main()':
0_0_30335676_18829.cpp:7:11: error: 'cin' was not declared in this scope
     while(cin>>n && n){
           ^
0_0_30335676_18829.cpp:10:13: error: 'cout' was not declared in this scope
             cout<<-1<<endl; //总数非偶数
             ^
0_0_30335676_18829.cpp:10:23: error: 'endl' was not declared in this scope
             cout<<-1<<endl; //总数非偶数
                       ^
0_0_30335676_18829.cpp:19:13: error: 'cout' was not declared in this scope
             cout<<-1<<endl; //H个数非偶数
             ^
0_0_30335676_18829.cpp:19:23: error: 'endl' was not declared in this scope
             cout<<-1<<endl; //H个数非偶数
                       ^
0_0_30335676_18829.cpp:23:13: error: 'cout' was not declared in this scope
             cout<<1<<endl<<n/2<<endl;
             ^
0_0_30335676_18829.cpp:23:22: error: 'endl' was not declared in this scope
             cout<<1<<endl<<n/2<<endl;
                      ^
0_0_30335676_18829.cpp:30:17: error: 'cout' was not declared in this scope
                 cout<<2<<endl<<i<<" "<<i+n/2<<endl;
                 ^
0_0_30335676_18829.cpp:30:26: error: 'endl' was not declared in this scope
                 cout<<2<<endl<<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 15:54:24, Gzip enabled