0_0_39283263_16533.cpp:10:14: error: expected ')' before 'a'
10 | bool cmp(time a,time b)
| ~ ^~
| )
0_0_39283263_16533.cpp:10:21: error: expected ')' before 'b'
10 | bool cmp(time a,time b)
| ~ ^~
| )
0_0_39283263_16533.cpp:10:23: error: expression list treated as compound expression in initializer [-fpermissive]
10 | bool cmp(time a,time b)
| ^
0_0_39283263_16533.cpp:11:1: error: expected ',' or ';' before '{' token
11 | {
| ^
0_0_39283263_16533.cpp: In function 'int main()':
0_0_39283263_16533.cpp:17:9: error: expected ';' before 'time'
17 | time time[100];
| ^~~~~
| ;
0_0_39283263_16533.cpp:24:26: error: request for member 't1' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
24 | cin>>time[i].t1;
| ^~
0_0_39283263_16533.cpp:25:26: error: request for member 't2' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
25 | cin>>time[i].t2;
| ^~
0_0_39283263_16533.cpp:33:29: error: request for member 't1' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
33 | if (time[i].t1>=time[j].t2&&time[j].order+1>max) max=time[j].order+1;
| ^~
0_0_39283263_16533.cpp:33:41: error: request for member 't2' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
33 | if (time[i].t1>=time[j].t2&&time[j].order+1>max) max=time[j].order+1;
| ^~
0_0_39283263_16533.cpp:33:53: error: request for member 'order' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
33 | if (time[i].t1>=time[j].t2&&time[j].order+1>max) max=time[j].order+1;
| ^~~~~
0_0_39283263_16533.cpp:33:78: error: request for member 'order' in '*(time + ((sizetype)j))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
33 | if (time[i].t1>=time[j].t2&&time[j].order+1>max) max=time[j].order+1;
| ^~~~~
0_0_39283263_16533.cpp:35:31: error: request for member 'order' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
35 | if (!max) time[i].order=1;
| ^~~~~
0_0_39283263_16533.cpp:36:26: error: request for member 'order' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
36 | else time[i].order=max;
| ^~~~~
0_0_39283263_16533.cpp:37:25: error: request for member 'order' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
37 | if (time[i].order>smax) smax=time[i].order;
| ^~~~~
0_0_39283263_16533.cpp:37:50: error: request for member 'order' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*)' {aka 'long long int(long long int*)'}
37 | if (time[i].order>smax) smax=time[i].order;
| ^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:61,
from 0_0_39283263_16533.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h: In instantiation of 'constexpr void std::__sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = long long int (*)(long long int*); _Compare = __gnu_cxx::__ops::_Iter_comp_iter<bool>]':
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:4894:18: required from 'constexpr void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = long long int (*)(long long int*); _Compare = bool]'
0_0_39283263_16533.cpp:27:13: required from here
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algo.h:1948:50: error: ISO C++ forbids using pointer to a function in subtraction [-fpermissive]
1948 | std::__lg(__last - __first) * 2,
| ~~~~~~~^~~~~~~~~
|