Skip to content

Commit 71f7a98

Browse files
committed
switch to gcc20 permanently now
1 parent 2564508 commit 71f7a98

File tree

6 files changed

+16
-28
lines changed

6 files changed

+16
-28
lines changed

tests/.config/.gcc_compile_flags

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
-Wduplicated-cond
1313
-Werror
1414
-O2
15+
-std=c++20
File renamed without changes.

tests/library_checker_aizu_tests/kactl_macros_gcc17.hpp

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/////////MODIFYING THIS FILE WILL RERUN ALL TESTS/////////
2+
//
13
// to avoid bits/stdc++.h include which slows down CI
24
// modifying this file will re-run all library checker
35
// tests
@@ -6,22 +8,22 @@
68
#include <cassert>
79
#include <iostream>
810
#include <map>
9-
#include <numeric> //for iota
11+
#include <numeric> //for iota
1012
#include <queue>
1113
#include <set>
1214
#include <string>
1315
#include <unordered_map>
1416
#include <vector>
1517
// for random numbers
16-
#include <stdint.h> // for uint64_t
18+
#include <stdint.h> // for uint64_t
1719
#include <bitset>
1820
#include <chrono>
19-
#include <climits> // for INT_MAX, INT_MIN
20-
#include <complex> //for kactl's FFT
21-
#include <functional> //for lambdas
21+
#include <climits> // for INT_MAX, INT_MIN
22+
#include <complex> //for kactl's FFT
23+
#include <functional> //for lambdas
2224
#include <optional>
2325
#include <random>
24-
#include <utility> // for std::exchange
26+
#include <utility> // for std::exchange
2527
using namespace std;
2628
// https://github.com/kth-competitive-programming/kactl/blob/main/content/contest/template.cpp
2729
// compile all tests with KACTL macros mainly to avoid
@@ -30,7 +32,9 @@ using namespace std;
3032
// also defines are used here instead of typedef/using's
3133
// (even though it's sketchier) so that they can be
3234
// expanded before pushing to main
33-
//
34-
// modifying kactl_macros.hpp will also re-run all library
35-
// checker tests
36-
#include "kactl_macros_gcc20.hpp"
35+
#define rep(i, a, b) for (int i = a; i < b; i++)
36+
#define all(x) begin(x), end(x)
37+
#define sz(x) ssize(x)
38+
#define ll int64_t
39+
#define pii pair<int, int>
40+
#define vi vector<int>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ git submodule init
66
git submodule update
77

88
find library_checker_aizu_tests/ -type f -name "*.test.cpp" |
9-
parallel g++ {} "$(tr '\n' ' ' <.config/.gcc_compile_flags)" -std=c++20 -Wno-narrowing
9+
parallel g++ {} "$(tr '\n' ' ' <.config/.gcc_compile_flags)"

tests/scripts/compile_gcc17.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)