/ Vijos /

记录详情

Compile Error

/in/foo.cc:20:1: error: 'bitset' does not name a type
   20 | bitset<121> ans_set, tmp, tmp2;
      | ^~~~~~
/in/foo.cc:21:1: error: 'bitset' does not name a type
   21 | bitset<121> fucks[125];
      | ^~~~~~
/in/foo.cc:23:23: error: 'bitset' does not name a type
   23 | void dfs(int i, const bitset<121> &bt, const bitset<121> &fail, int cho = 0)
      |                       ^~~~~~
/in/foo.cc:23:29: error: expected ',' or '...' before '<' token
   23 | void dfs(int i, const bitset<121> &bt, const bitset<121> &fail, int cho = 0)
      |                             ^
/in/foo.cc: In function 'void dfs(int, int)':
/in/foo.cc:25:19: error: 'cho' was not declared in this scope
   25 |         if (n-i+1+cho <= ans) return;
      |                   ^~~
/in/foo.cc:26:25: error: 'cho' was not declared in this scope
   26 |         if (i == n+1 && cho > ans) {
      |                         ^~~
/in/foo.cc:29:17: error: 'ans_set' was not declared in this scope
   29 |                 ans_set = bt;
      |                 ^~~~~~~
/in/foo.cc:29:27: error: 'bt' was not declared in this scope
   29 |                 ans_set = bt;
      |                           ^~
/in/foo.cc:31:13: error: 'fail' was not declared in this scope
   31 |         if (fail[i] != 1)
      |             ^~~~
/in/foo.cc:32:26: error: 'bt' was not declared in this scope
   32 |                 dfs(i+1, bt | (tmp<<i), fail | fucks[i], cho + 1);
      |                          ^~
/in/foo.cc:32:32: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   32 |                 dfs(i+1, bt | (tmp<<i), fail | fucks[i], cho + 1);
      |                                ^~~
      |                                tm
/in/foo.cc:32:48: error: 'fucks' was not declared in this scope; did you mean 'fuck'?
   32 |                 dfs(i+1, bt | (tmp<<i), fail | fucks[i], cho + 1);
      |                                                ^~~~~
      |                                                fuck
/in/foo.cc:32:58: error: 'cho' was not declared in this scope
   32 |                 dfs(i+1, bt | (tmp<<i), fail | fucks[i], cho + 1);
      |                                                          ^~~
/in/foo.cc:33:18: error: 'bt' was not declared in this scope
   33 |         dfs(i+1, bt, fail, cho);
      |                  ^~
/in/foo.cc:33:22: error: 'fail' was not declared in this scope
   33 |         dfs(i+1, bt, fail, cho);
      |                      ^~~~
/in/foo.cc:33:28: error: 'cho' was not declared in this scope
   33 |         dfs(i+1, bt, fail, cho);
      |                            ^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:45:9: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   45 |         tmp = 1;
      |         ^~~
      |         tm
/in/foo.cc:49:33: error: 'fucks' was not declared in this scope; did you mean 'fuck'?
   49 |                                 fucks[i] = fucks[i] | (tmp<<j);
      |                                 ^~~~~
      |                                 fuck
/in/foo.cc:50:9: error: 'bitset' was not declared in this scope
   50 |         bitset<121> st, fal;
      |         ^~~~~~
/in/foo.cc:13:1: note: 'std::bitset' is defined in header '<bitset>'; did you forget to '#include <bitset>'?
   12 | #include <set>
  +++ |+#include <bitset>
   13 | 
/in/foo.cc:50:21: error: 'st' was not declared in this scope; did you mean 'std'?
   50 |         bitset<121> st, fal;
      |                     ^~
      |                     std
/in/foo.cc:50:25: error: 'fal' was not declared in this scope; did you mean 'fmal'?
   50 |         bitset<121> st, fal;
      |                         ^~~
      |                         fmal
/in/foo.cc:55:25: error: 'ans_set' was not declared in this scope
   55 |                 cout << ans_set[i] << " ";
      |                         ^~~~~~~

信息

递交者
类型
递交
题目
P1593 部落卫队
语言
C++
递交时间
2026-10-28 22:21:45
评测时间
2026-10-28 22:21:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes