We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46e5236 commit 99f3c8eCopy full SHA for 99f3c8e
tests/scripts/ptc.sh
@@ -35,12 +35,9 @@ for header in ../library/**/*.hpp; do
35
hash=$(head --lines "$i" "$header" | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
36
line_length=$(sed --quiet "${i}p" "$header" | wc --chars)
37
padding_length=$((60 - 8 - $line_length))
38
- echo $line_length
39
- echo $padding_length
40
padding_length=$(( $padding_length > 0 ? $padding_length : 0 ))
41
42
- padding=$(printf '%*s' "$num_spaces")
43
- sed --in-place "${i}s/$/\/\/${hash}/" "$header"
+ padding=$(printf '%*s' "$padding_length")
+ sed --in-place "${i}s/$/$padding\/\/${hash}/" "$header"
44
done
45
46
0 commit comments