/ Vijos /

记录详情

Compile Error

/in/foo.cc:6:6: error: 'vector' in namespace 'std' does not name a template type
    6 | std::vector<ll> compute_phi(ll N) {
      |      ^~~~~~
/in/foo.cc:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    2 | #include <algorithm>
  +++ |+#include <vector>
    3 | 
/in/foo.cc: In function 'll solve(ll, ll)':
/in/foo.cc:36:10: error: 'vector' is not a member of 'std'
   36 |     std::vector<ll> phi = compute_phi(limit);
      |          ^~~~~~
/in/foo.cc:36:10: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
/in/foo.cc:36:19: error: expected primary-expression before '>' token
   36 |     std::vector<ll> phi = compute_phi(limit);
      |                   ^
/in/foo.cc:36:21: error: 'phi' was not declared in this scope
   36 |     std::vector<ll> phi = compute_phi(limit);
      |                     ^~~
/in/foo.cc:36:27: error: 'compute_phi' was not declared in this scope
   36 |     std::vector<ll> phi = compute_phi(limit);
      |                           ^~~~~~~~~~~

信息

递交者
类型
递交
题目
P1561 tracyhenry的难题
语言
C++
递交时间
2026-06-26 18:27:07
评测时间
2026-06-26 18:27:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes