Skip to content

Commit 8298ec3

Browse files
author
Cameron Custer
committed
brace rep-if-else bodies to fix -Wmisleading-indentation
1 parent b30c6f8 commit 8298ec3

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

tests/library_checker_aizu_tests/graphs/dijkstra_aizu.test.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ int main() {
1717
adj[u].emplace_back(v, w);
1818
}
1919
vector<ll> len = dijkstra(adj, s);
20-
rep(i, 0, n) if (len[i] == LLONG_MAX) cout << "INF\n";
21-
else cout << len[i] << '\n'; return 0;
20+
rep(i, 0, n) {
21+
if (len[i] == LLONG_MAX) cout << "INF\n";
22+
else cout << len[i] << '\n';
23+
}
24+
return 0;
2225
}

tests/library_checker_aizu_tests/strings/wildcard_pattern_matching.test.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ ll modpow(ll a, ll e) {
1515
vl to_vec(const string& s) {
1616
int n = sz(s);
1717
vl res(n);
18-
rep(i, 0, n) if (s[i] == '*') res[i] = 0;
19-
else res[i] = s[i] - 'a' + 1; return res;
18+
rep(i, 0, n) {
19+
if (s[i] == '*') res[i] = 0;
20+
else res[i] = s[i] - 'a' + 1;
21+
}
22+
return res;
2023
}
2124
int main() {
2225
cin.tie(0)->sync_with_stdio(0);

0 commit comments

Comments
 (0)