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