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_25410963_1576.cpp:5:1: error: 'll' does not name a type
 ll a[1000010];
 ^
0_0_25410963_1576.cpp:6:1: error: 'll' does not name a type
 ll n,m;
 ^
0_0_25410963_1576.cpp:7:10: error: 'll' was not declared in this scope
 bool cmp(ll x,ll y){return x>y;}
          ^
0_0_25410963_1576.cpp:7:15: error: 'll' was not declared in this scope
 bool cmp(ll x,ll y){return x>y;}
               ^
0_0_25410963_1576.cpp:7:19: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(ll x,ll y){return x>y;}
                   ^
0_0_25410963_1576.cpp:7:20: error: expected ',' or ';' before '{' token
 bool cmp(ll x,ll y){return x>y;}
                    ^
0_0_25410963_1576.cpp: In function 'int main()':
0_0_25410963_1576.cpp:9:16: error: 'n' was not declared in this scope
  scanf("%d%d",&n,&m);
                ^
0_0_25410963_1576.cpp:9:19: error: 'm' was not declared in this scope
  scanf("%d%d",&n,&m);
                   ^
0_0_25410963_1576.cpp:10:38: error: 'a' was not declared in this scope
  for(int i=1;i<=n;i++) scanf("%lld",&a[i]);
                                      ^
0_0_25410963_1576.cpp:11:7: error: 'a' was not declared in this scope
  sort(a+1,a+n+1,cmp);
       ^


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-19 21:00:41, Gzip enabled