Skip to content

Commit

Permalink
removed "vi"
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomarcosth9 committed Jan 3, 2024
1 parent d18fc27 commit 91be105
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Codigos/Estruturas de Dados/Ordered Set/ordered_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

using namespace __gnu_pbds;

typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
template<typename T> typedef tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update> ordered_set;
6 changes: 3 additions & 3 deletions Codigos/Estruturas de Dados/Sparse Table/sparse_table.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
struct SparseTable {
int n, e;
vector<vi> st;
SparseTable(vi &v) : n(v.size()), e(floor(log2(n))) {
st.assign(e + 1, vi(n));
vector<vector<int>> st;
SparseTable(vector<int> &v) : n(v.size()), e(floor(log2(n))) {
st.assign(e + 1, vector<int>(n));
for (int i = 0; i < n; i++) { st[0][i] = v[i]; }
for (int i = 1; i <= e; i++) {
for (int j = 0; j + (1 << i) <= n; j++) { st[i][j] = min(st[i - 1][j], st[i - 1][j + (1 << (i - 1))]); }
Expand Down
6 changes: 3 additions & 3 deletions Codigos/Grafos/Matching/hungarian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ const ll INF = 1e18 + 18;

vector<pair<int, int>> result;

ll hungarian(int n, int m, vector<vi> &A) {
vi u(n + 1), v(m + 1), p(m + 1), way(m + 1);
ll hungarian(int n, int m, vector<vector<int>> &A) {
vector<int> u(n + 1), v(m + 1), p(m + 1), way(m + 1);
for (int i = 1; i <= n; i++) {
p[0] = i;
int j0 = 0;
vi minv(m + 1, INF);
vector<int> minv(m + 1, INF);
vector<char> used(m + 1, false);
do {
used[j0] = true;
Expand Down

0 comments on commit 91be105

Please sign in to comment.