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_16691471_12837.cpp: In function 'int cmp(const void*, const void*)':
0_0_16691471_12837.cpp:7:2: error: 'nbsp' was not declared in this scope
      return *(int *)b-*(int *)a;
  ^
0_0_16691471_12837.cpp: In function 'int main()':
0_0_16691471_12837.cpp:11:2: error: 'nbsp' was not declared in this scope
     int n;
  ^
0_0_16691471_12837.cpp:19:87: error: 'i' was not declared in this scope
             scanf("%d",&a[i]);
                                                                                       ^
0_0_16691471_12837.cpp:22:75: error: 'qsort' was not declared in this scope
         qsort(b,n,sizeof(b[0]),cmp);
                                                                           ^
0_0_16691471_12837.cpp:27:102: error: 'i' was not declared in this scope
                 if(b[i]==fabs(a[j]))
                                                                                                      ^
0_0_16691471_12837.cpp:27:113: error: 'j' was not declared in this scope
                 if(b[i]==fabs(a[j]))
                                                                                                                 ^
0_0_16691471_12837.cpp:29:123: error: 'i' was not declared in this scope
                     c[i]=a[j];
                                                                                                                           ^
0_0_16691471_12837.cpp:29:128: error: 'j' was not declared in this scope
                     c[i]=a[j];
                                                                                                                                ^
0_0_16691471_12837.cpp:35:82: error: 'i' was not declared in this scope
              if(i==0)
                                                                                  ^
0_0_16691471_12837.cpp:36:111: error: 'i' was not declared in this scope
                 printf("%d",c[i]);
                                                                                                               ^
0_0_16691471_12837.cpp:37:79: error: 'else' without a previous 'if'
              else
                                                                               ^


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-06 05:58:22, Gzip enabled