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]);
^
|