记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:20:6: error: expected ')' before 'vector'
   20 |     }
      |      ^
      |      )
   21 |     vector<p>v2;
      |     ~~~~~~
foo.cc:17:9: note: to match this '('
   17 |     sort(v.begin(),v.end(),[](p&i,p&j)
      |         ^
foo.cc:25:9: error: 'v2' was not declared in this scope; did you mean 'v'?
   25 |         v2.push_back(p{l,r});
      |         ^~
      |         v
foo.cc:27:17: error: 'v2' was not declared in this scope; did you mean 'v'?
   27 |     for(auto it=v2.begin();it<v2.end();it++)
      |                 ^~
      |                 v
foo.cc:32:23: error: 'l1' was not declared in this scope; did you mean 'l'?
   32 |             for(int i=l1;i<=r1;i++)
      |                       ^~
      |                       l
foo.cc:32:29: error: 'r1' was not declared in this scope; did you mean 'r'?
   32 |             for(int i=l1;i<=r1;i++)
      |                             ^~
      |                             r
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1234 D 奇怪的程序(Easy)
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-21 18:56:33
评测时间
2022-08-21 18:56:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes