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_36292809_9781.cpp: In function 'bool cmp(int, int)':
0_0_36292809_9781.cpp:7:10: error: request for member 'l' in 'x', which is of non-class type 'int'
     if(x.l==y.l) return x.r<y.r;
          ^
0_0_36292809_9781.cpp:7:15: error: request for member 'l' in 'y', which is of non-class type 'int'
     if(x.l==y.l) return x.r<y.r;
               ^
0_0_36292809_9781.cpp:7:27: error: request for member 'r' in 'x', which is of non-class type 'int'
     if(x.l==y.l) return x.r<y.r;
                           ^
0_0_36292809_9781.cpp:7:31: error: request for member 'r' in 'y', which is of non-class type 'int'
     if(x.l==y.l) return x.r<y.r;
                               ^
0_0_36292809_9781.cpp:8:14: error: request for member 'l' in 'x', which is of non-class type 'int'
     return x.l<y.l;
              ^
0_0_36292809_9781.cpp:8:18: error: request for member 'l' in 'y', which is of non-class type 'int'
     return x.l<y.l;
                  ^
0_0_36292809_9781.cpp: In function 'int main()':
0_0_36292809_9781.cpp:15:23: error: 'sort' was not declared in this scope
     sort(a+1,a+1+n,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-30 12:25:41, Gzip enabled