You are not logged in. Please login at www.codechef.com to post your questions!

×

Are any compiler flags set on the online judge?

2
2

Does the online judge have any compiler flags set?

asked 10 Apr '13, 15:55

anup's gravatar image

2★anup ♦♦
2.2k263943
accept rate: 23%

Also, we can use #ifdef instead, right ?

(25 Jun '16, 11:23) abcdexter242★

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

  • 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

  • Pascal : O2 - second optimization level, fomit-frame-pointer - disallow to store frame pointer in CPU register

  • Python : OO - don't store debug information + don't store docstrings

  • Ada : O2 - second optimization level,

  • 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

  • Scheme : O0 - entry optimization level

  • Haskell : O - first optimization level

  • Pascal : O2 - second optimization level

  • Common Lisp : dynamic-space-size 48 - amount of space (in MB) dedicated for startup disable-debugger - disable debugger

  • C99 : lm - access to "math.h" library, fomit-frame-pointer - disallow to store frame pointer in CPU register, pthread - enable multithreading

  • Javascript Rhino : Xmx256M - memory limit equal to 256MB Xms16M - start Java VM with 16MB of memory

  • 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++14 : 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 : O - first optimization level

  • Python 3 : OO - don't store debug information + don't store docstrings

link

answered 10 Apr '13, 15:56

admin's gravatar image

0★admin ♦♦
19.6k349497539
accept rate: 35%

edited 03 Nov '17, 20:55

Is ONLINE_JUDGE actually set properly?

Please look at this question for an example.

Thanks.

link

answered 05 Jan '15, 08:59

xyzzy529's gravatar image

2★xyzzy529
1113
accept rate: 0%

You can check yourself, for example by throwing exception if not set ;-) If there is flag missing, please write an e-mail to bugs@codechef.com

(05 Jan '15, 16:07) betlista ♦♦3★

I did check and it is ALSO being set for the IDE (which is not what we want).

Sent email to bugs. Thanks.

(05 Jan '15, 23:47) xyzzy5292★
toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:

×206
×98

question asked: 10 Apr '13, 15:55

question was seen: 10,048 times

last updated: 03 Nov '17, 20:55