fork(10) download
  1. #include <cstdlib>
  2.  
  3. #ifdef NDEBUG
  4. // Suppresses unused variable warnings in release builds.
  5. #define ASSERT(X) (void(sizeof (X)))
  6. #else
  7. #define ASSERT(X) ((X) ? void() : std::abort())
  8. #endif
  9.  
  10. constexpr int f(int const x)
  11. {
  12. return ASSERT(x != 0), x;
  13. }
  14.  
  15. int main()
  16. {
  17. int a = f(0);
  18. }
  19.  
Runtime error #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty