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_32598753_32207.cpp:2:2: error: invalid preprocessing directive #i
 #i#nclude <cstdlib>
  ^
0_0_32598753_32207.cpp:1:1: error: 'include' does not name a type
 include <cstdio>
 ^
0_0_32598753_32207.cpp: In function 'int main()':
0_0_32598753_32207.cpp:45:30: error: 'scanf' was not declared in this scope
     while(~scanf("%d%d",&n,&k))
                              ^
0_0_32598753_32207.cpp:67:29: error: 'puts' was not declared in this scope
         if(num==0) puts("-1");
                             ^
0_0_32598753_32207.cpp:69:45: error: 'qsort' was not declared in this scope
             qsort(res,num,sizeof(res[0]),cmp);
                                             ^
0_0_32598753_32207.cpp:71:36: error: 'printf' was not declared in this scope
                 printf("%d ",res[j]);
                                    ^
0_0_32598753_32207.cpp:72:37: error: 'printf' was not declared in this scope
             printf("%d\n",res[num-1]);
                                     ^
0_0_32598753_32207.cpp:75:13: error: expected '}' at end of input
     return 0;
             ^


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-29 23:29:40, Gzip enabled