/ Vijos /

记录详情

Compile Error

foo.cc:9:1: error: 'vector' does not name a type
    9 | vector<int> result;
      | ^~~~~~
foo.cc:13:33: error: 'vector' has not been declared
   13 | void dfs(int u, int n, ULL sum, vector<int> res)
      |                                 ^~~~~~
foo.cc:13:39: error: expected ',' or '...' before '<' token
   13 | void dfs(int u, int n, ULL sum, vector<int> res)
      |                                       ^
foo.cc: In function 'void dfs(int, int, ULL, int)':
foo.cc:22:13: error: 'result' was not declared in this scope
   22 |             result = res;
      |             ^~~~~~
foo.cc:22:22: error: 'res' was not declared in this scope
   22 |             result = res;
      |                      ^~~
foo.cc:31:17: error: 'res' was not declared in this scope
   31 |                 res.push_back(i - 1);
      |                 ^~~
foo.cc:37:17: error: 'res' was not declared in this scope
   37 |                 res.push_back(n / i - 1);
      |                 ^~~
foo.cc: In function 'int main()':
foo.cc:54:29: error: 'result' was not declared in this scope
   54 |         for (int i = 0; i < result.size(); i ++ )
      |                             ^~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1310 分解因式 加强版
语言
C++
递交时间
2022-05-22 09:46:40
评测时间
2022-05-22 09:46:40
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes