Skip to content

Commit

Permalink
Forgot std:: on seg tree header
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Oct 17, 2024
1 parent 6335f0d commit f323646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/tree/segment_tree_iterative.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct seg_tree {
* @param v: the input vector
*/
explicit seg_tree(const std::vector<T> & v) noexcept : data(v), n(int(v.size())) {
tree = vector<T>(2*v.size(), 0);
tree = std::vector<T>(2*v.size(), 0);
int idx = n - 1;
for(int i = 2*n - 1; i>=n; i--) {
tree[i] = data[idx--];
Expand Down

0 comments on commit f323646

Please sign in to comment.