Submission #00176
ソースコード
ステータス
コンパイルメッセージ
./Main.cpp:17:11: エラー: ‘bitset’ does not name a type; did you mean ‘fd_set’?
using B = bitset<MN>;
^~~~~~
fd_set
./Main.cpp:23:5: エラー: ‘B’ does not name a type
B d;
^
./Main.cpp:36:5: エラー: ‘B’ does not name a type
B get(int a, int b) {
^
./Main.cpp: メンバ関数 ‘void Node::set(int, int)’ 内:
./Main.cpp:26:13: エラー: ‘d’ was not declared in this scope
d[x] = true;
^
./Main.cpp:34:9: エラー: ‘d’ was not declared in this scope
d = l->d | r->d;
^
./Main.cpp:34:16: エラー: ‘struct Node’ has no member named ‘d’
d = l->d | r->d;
^
./Main.cpp:34:23: エラー: ‘struct Node’ has no member named ‘d’
d = l->d | r->d;
^
./Main.cpp: コンストラクタ ‘Node::Node(int)’ 内:
./Main.cpp:42:9: エラー: ‘d’ was not declared in this scope
d.reset();
^
./Main.cpp: 関数 ‘int main()’ 内:
./Main.cpp:89:25: エラー: ‘struct Node’ has no member named ‘get’; did you mean ‘set’?
cout << tr->get(a[i], b[i]).count() << endl;
^~~
set
セット
テストケース