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_17846984_24313.cpp: In function 'int main()':
0_0_17846984_24313.cpp:8:24: error: 'n' was not declared in this scope
     while(~scanf("%d",&n)){
                        ^
0_0_17846984_24313.cpp:9:11: error: 'i' was not declared in this scope
       for(i=0;i<n;i++)
           ^
0_0_17846984_24313.cpp:10:19: error: 'a' was not declared in this scope
       scanf("%d",&a[i]);
                   ^
0_0_17846984_24313.cpp:11:12: error: 'a' was not declared in this scope
       sort(a,a+n);
            ^
0_0_17846984_24313.cpp:12:7: error: 'p' was not declared in this scope
       p=0;
       ^
0_0_17846984_24313.cpp:14:20: error: 'i' was not declared in this scope
       if(p==-1)for(i=1;i<n;i++)
                    ^
0_0_17846984_24313.cpp:16:7: error: 'm' was not declared in this scope
       m=n-1;
       ^
0_0_17846984_24313.cpp:20:15: error: 'i' was not declared in this scope
           for(i=n-1;i>=0;i--)
               ^
0_0_17846984_24313.cpp:21:16: error: expected primary-expression before '>' token
           if(i<>p)printf("%d",a[i]);
                ^


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-01 16:25:40, Gzip enabled