Skip to content

Commit 0df0a03

Browse files
committed
may solve build issue
1 parent c668f7a commit 0df0a03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/data_structures/fenwick.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Also this implementation supports two constructors.
165165
You can create a Fenwick tree initialized with zeros, or you can convert an existing array into the Fenwick form.
166166

167167
=== "C++"
168-
```cpp
168+
```{.cpp file=fenwick_sum}
169169
struct FenwickTree {
170170
vector<int> bit; // binary indexed tree
171171
int n;
@@ -253,7 +253,7 @@ Additionally, each time a value is `update`'d, the new value has to be smaller t
253253
Both significant limitations are because the $min$ operation together with the set of integers doesn't form a group, as there are no inverse elements.
254254
255255
=== "C++"
256-
```cpp
256+
```{.cpp file=fenwick_min}
257257
struct FenwickTreeMin {
258258
vector<int> bit;
259259
int n;
@@ -436,7 +436,7 @@ As you can see, the main benefit of this approach is that the binary operations
436436
The following implementation can be used like the other implementations, however it uses one-based indexing internally.
437437
438438
=== "C++"
439-
```cpp
439+
```{.cpp file=fenwick_sum_onebased}
440440
struct FenwickTreeOneBasedIndexing {
441441
vector<int> bit; // binary indexed tree
442442
int n;

0 commit comments

Comments
 (0)