Are any compiler flags set on the online judge?

This is the updated information regarding flags on the compilers set by online judge as of March 2024.

  • C++ :
O2 - second optimization level,
lm - access to "math.h" library,
fomit-frame-pointer - disallow to store frame pointer in CPU register,
pthread - enable multithreading 
  • C :
O2 - second optimization level,
lm - access to "math.h" library,
fomit-frame-pointer - disallow to store frame pointer in CPU register,
pthread - enable multithreading
  • Rust :
opt-level=2 - second optimization level
edition=2024

Runtime Flags

  • Java :
Xss64m
  • ** PyPy 3 :**
OO
5 Likes