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_23270391_29103.cpp:1:1: error: 'include' does not name a type
 include <iostream>
 ^
0_0_23270391_29103.cpp: In function 'int main(int, char**)':
0_0_23270391_29103.cpp:6:8: error: 'cin' was not declared in this scope
  while(cin>>n){
        ^
0_0_23270391_29103.cpp:7:23: error: 'printf' was not declared in this scope
   if(n<3){printf("1\n");continue;}
                       ^
0_0_23270391_29103.cpp:8:35: error: 'printf' was not declared in this scope
   if(n<5){printf("%d %d\n",n-2,n-1);continue;}
                                   ^
0_0_23270391_29103.cpp:9:42: error: 'printf' was not declared in this scope
   if(n<7){printf("%d %d %d\n",n-4,n-2,n-1);continue;}
                                          ^
0_0_23270391_29103.cpp:10:50: error: 'printf' was not declared in this scope
   if(n<16){printf("%d %d %d %d\n",n-7,n-4,n-2,n-1);continue;}
                                                  ^
0_0_23270391_29103.cpp:11:49: error: 'printf' was not declared in this scope
   printf("%d %d %d %d %d\n",n-15,n-7,n-4,n-2,n-1) ;
                                                 ^


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-25 03:00:54, Gzip enabled