F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38808686_19234.cpp: In function 'void solve()':
0_0_38808686_19234.cpp:26:5: error: 'vector' was not declared in this scope
   26 |     vector<bitset<M + 1>> a(M + 1);
      |     ^~~~~~
0_0_38808686_19234.cpp:5:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    4 | #include <bitset>
  +++ |+#include <vector>
    5 | #define int long long
0_0_38808686_19234.cpp:26:24: error: expected primary-expression before '>' token
   26 |     vector<bitset<M + 1>> a(M + 1);
      |                        ^~
0_0_38808686_19234.cpp:26:27: error: 'a' was not declared in this scope
   26 |     vector<bitset<M + 1>> a(M + 1);
      |                           ^
0_0_38808686_19234.cpp:27:12: error: expected primary-expression before 'bool'
   27 |     vector<bool> st(M + 1);
      |            ^~~~
0_0_38808686_19234.cpp: In lambda function:
0_0_38808686_19234.cpp:36:22: error: 'st' was not declared in this scope; did you mean 'std'?
   36 |                 if (!st[i]) {a[i] ^= s, s ^= a[i], a[i] ^= s; st[i] = true; all ++; return;}
      |                      ^~
      |                      std
0_0_38808686_19234.cpp: In function 'void solve()':
0_0_38808686_19234.cpp:5:13: error: expected primary-expression before 'long'
    5 | #define int long long
      |             ^~~~
0_0_38808686_19234.cpp:49:12: note: in expansion of macro 'int'
   49 |     vector<int> id(M + 1, -1);
      |            ^~~
0_0_38808686_19234.cpp:53:13: error: 'st' was not declared in this scope; did you mean 'std'?
   53 |         if (st[i])
      |             ^~
      |             std
0_0_38808686_19234.cpp:55:13: error: 'id' was not declared in this scope; did you mean 'i'?
   55 |             id[cnt ++ ] = i;
      |             ^~
      |             i
0_0_38808686_19234.cpp: In lambda function:
0_0_38808686_19234.cpp:100:21: error: 'id' was not declared in this scope; did you mean 'i'?
  100 |                 if (id[i] == -1) {res.set(); return res;}
      |                     ^~
      |                     i
0_0_38808686_19234.cpp:101:26: error: 'id' was not declared in this scope; did you mean 'i'?
  101 |                 res ^= a[id[i]];
      |                          ^~
      |                          i


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 23:06:34, Gzip enabled