记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:5:9: error: 'set' was not declared in this scope
    5 |         set<int> sum;
      |         ^~~
foo.cc:2:1: note: 'std::set' is defined in header '<set>'; did you forget to '#include <set>'?
    1 | #include<iostream>
  +++ |+#include <set>
    2 | using namespace  std;
foo.cc:5:13: error: expected primary-expression before 'int'
    5 |         set<int> sum;
      |             ^~~
foo.cc:9:25: error: 'sum' was not declared in this scope
    9 |                         sum.insert(j);
      |                         ^~~
foo.cc:11:15: error: 'sum' was not declared in this scope
   11 |         cout<<sum.size();
      |               ^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1274 闭区间并
语言
C++
递交时间
2022-08-20 13:01:16
评测时间
2022-08-20 13:01:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes