Skip to content

Commit c14e374

Browse files
committed
fix greps
1 parent c765aab commit c14e374

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/library_checker_aizu_tests/data_structures/pq_ds_undo_sliding_window.test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ int main() {
2727
int pri = (n - l) / 2;
2828
rep(i, 0, l) {
2929
updates.push_back(arr[i]);
30-
pq.push(pri--, updates.size() - 1);
30+
pq.push(pri--, size(updates) - 1);
3131
}
3232
cout << stm.get_max();
3333
rep(i, l, n) {
3434
updates.push_back(arr[i]);
35-
pq.push(pri--, updates.size() - 1);
35+
pq.push(pri--, size(updates) - 1);
3636
pq.pop();
3737
cout << " " << stm.get_max();
3838
}

tests/library_checker_aizu_tests/handmade_tests/pq_updates.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ int main() {
1717
int upd_id_counter = 0;
1818
rep(op, 0, 200) {
1919
bool do_push =
20-
naive_mp.empty() ||
20+
empty(naive_mp) ||
2121
(rnd(0, 1) == 0 && sz(naive_mp) < max_capacity);
2222
if (do_push) {
2323
int upd_id = ++upd_id_counter;

0 commit comments

Comments
 (0)