/in/foo.cc:8:15: error: expected ')' before 'time1'
 bool cmp(time time1,time time2){
               ^~~~~
/in/foo.cc:8:26: error: expected ')' before 'time2'
 bool cmp(time time1,time time2){
                          ^~~~~
/in/foo.cc:8:31: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(time time1,time time2){
                               ^
/in/foo.cc:8:31: warning: left operand of comma operator is a reference, not call, to function 'time' [-Waddress]
/in/foo.cc:8:31: warning: left operand of comma operator has no effect [-Wunused-value]
/in/foo.cc:8:32: error: expected ',' or ';' before '{' token
 bool cmp(time time1,time time2){
                                ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:12:7: error: expected ';' before 'times'
  time times[1001];
       ^~~~~
/in/foo.cc:12:18: warning: statement is a reference, not call, to function 'time' [-Waddress]
  time times[1001];
                  ^
/in/foo.cc:12:18: warning: statement has no effect [-Wunused-value]
/in/foo.cc:16:14: error: 'times' was not declared in this scope
         cin>>times[i].b>>times[i].e;
              ^~~~~
/in/foo.cc:18:10: error: 'times' was not declared in this scope
     sort(times,times+T,cmp);
          ^~~~~