Codeforces and Polygon may be unavailable from December 6, 19:00 (UTC) to December 6, 21:00 (UTC) due to technical maintenance. ×

v01dieJESUZz's blog

By v01dieJESUZz, history, 6 years ago, In English

Hello, Like me, many other C++ coders would use the definition ONLINE_JUDGE in their default code templates to redirect Input/Output depending whether they are run on their local machine or on the Online Judge server. Hence is anyone aware if the ONLINE_JUDGE macro is defined or not in Facebook HackerCup as it would cause 2 of my submissions to automatically fail as in my template Input/Output is redirected to an external file rather than stdin and stdout.

PS : As far as I know, most Online Judges like Codechef or Codeforces have this macro defined but there are sites too like HackerRank where there are not defined. Hence I am not sure whether it is defined or not in Facebook HackerCup.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it