/ Vijos /

记录详情

Compile Error

/in/foo.cc:11:1: error: 'time' does not name a type
 time ans[1010];
 ^~~~
/in/foo.cc:12:15: error: expected ')' before 'a'
 bool cmp(time a,time b)
               ^
/in/foo.cc:12:22: error: expected ')' before 'b'
 bool cmp(time a,time b)
                      ^
/in/foo.cc:12:23: error: expression list treated as compound expression in initializer [-fpermissive]
 bool cmp(time a,time b)
                       ^
/in/foo.cc:12:23: warning: left operand of comma operator is a reference, not call, to function 'time' [-Waddress]
/in/foo.cc:12:23: warning: left operand of comma operator has no effect [-Wunused-value]
/in/foo.cc:13:1: error: expected ',' or ';' before '{' token
 {
 ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:26:3: error: 'ans' was not declared in this scope
   ans[i].st=x;
   ^~~
/in/foo.cc:29:7: error: 'ans' was not declared in this scope
  sort(ans+1,ans+m+1,cmp);
       ^~~

信息

递交者
类型
递交
题目
P1401 复制CS
语言
C++
递交时间
2018-01-24 14:29:13
评测时间
2018-01-24 14:29:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes