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