programming-languages

PSA: target pragmas won't work on the new g++-13 compiler on CF

A PSA about GCC 13 on Codeforces rejecting target pragmas, why the issue appears, and what changed in later GCC versions.

Avoiding temporaries - generalizing i++ using std::exchange

A discussion and generalization of post-increment through std::exchange, with examples in recurrences, GCD code, lazy updates, moves, locks, and iterators.

The Boost C++ library in competitive programming

The Boost C++ library and examples of what it would give competitive programmers beyond the standard library.

Writing C++ like Python: tricks Python doesn't want you to know

A collection of modern C++ tricks that make code succinct and clean, from negative indexing and ranges to lambdas and compact utilities.

On using C on Codeforces (and some compiler update requests)

A discussion of using C on Codeforces.