- Many tips on the C wiki page also apply to C++
- Read tips for golfing in C++ on the codegolf stack exchange.
- A list of builtins is available here.
If you are familiar with or translating from C:
__builtin_printfcan be used in place of
printfwithout including any header
- You can
#import<ios>to include common C I/O functions.
- If you have several imports, you may be able to replace all of them with
#import<bits/stdc++.h>, which includes everything listed here.