记录详情

Compile Error

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

信息

递交者
类型
递交
题目
活动安排
题目数据
下载
语言
C++
递交时间
2020-03-12 21:47:34
评测时间
2020-03-12 21:47:34
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes