Skip to content

Commit e42bc85

Browse files
committed
Add -pedantic, -Werror to compilation flags
1 parent 525fff8 commit e42bc85

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.verify-helper/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[[languages.cpp.environments]]
22
CXX = "g++"
3-
CXXFLAGS = ["-std=c++23", "-Wall", "-Wextra", "-O2", "-march=native"]
3+
CXXFLAGS = ["-std=c++23", "-Wall", "-Wextra", "-pedantic", "-Werror", "-O2", "-march=native"]

verify/data_structures/bitpack/system_mod_2.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ bitpack<maxn> a[maxn];
1313
void solve() {
1414
int n, m;
1515
cin >> n >> m;
16-
string As[n];
16+
vector<string> As(n);
1717
for(int i = 0; i < n; i++) {
1818
cin >> As[i];
1919
}

verify/poly/roots.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void find_roots_impl(polyn const& p, vector<base> &res) {
1515
if(p.deg() == 1) {
1616
res.push_back(-p[0] / p[1]);
1717
} else if(p.deg() > 1) {
18-
auto A = polyn::gcd(polyn(vector<base>{rng(), 1}).powmod((mod - 1) / 2, p) - base(1), polyn(p));
18+
auto A = polyn::gcd(polyn(vector<base>{(base)rng(), 1}).powmod((mod - 1) / 2, p) - base(1), polyn(p));
1919
find_roots_impl(A, res);
2020
find_roots_impl(p / A, res);
2121
}

0 commit comments

Comments
 (0)