记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:35:5: error: 'vector' was not declared in this scope
   35 |     vector<int> ans;
      |     ^~~~~~
foo.cc:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include <algorithm>
  +++ |+#include <vector>
    5 | 
foo.cc:35:12: error: expected primary-expression before 'int'
   35 |     vector<int> ans;
      |            ^~~
foo.cc:41:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   41 |             ans.clear();
      |             ^~~
      |             abs
foo.cc:46:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   46 |             ans.push_back(prime.first);
      |             ^~~
      |             abs
foo.cc:49:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   49 |     sort(ans.begin(), ans.end());
      |          ^~~
      |          abs
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
5-5 统计素数因子
语言
C++
递交时间
2023-11-28 16:02:22
评测时间
2023-11-28 16:02:22
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes