We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3b0be commit ce40d2aCopy full SHA for ce40d2a
examples/practice2_j_segment_tree.rs
@@ -8,7 +8,7 @@ fn main() {
8
9
let n: usize = input.next().unwrap().parse().unwrap();
10
let q: usize = input.next().unwrap().parse().unwrap();
11
- let mut segtree = Segtree::<Max<u32>>::new(n + 1);
+ let mut segtree = Segtree::<Max<i32>>::new(n + 1);
12
for i in 1..=n {
13
segtree.set(i, input.next().unwrap().parse().unwrap());
14
}
0 commit comments