Skip to content

Local run configuration

Alexey Dmitriev edited this page Jan 9, 2016 · 3 revisions

To run submissions locally for such contest as Google Code Jam and Facebook Hacker Cup "Local regex" input type is used. To use it you should

  1. Set working directory of run configuration "output" to directory where input files will be stored. It may be for example downloads directory or root of the project. Note that default working directory is in the middle of nowhere.
  2. Set configuration of run configuration "output" to Release. Debug configuration amy be too slow.
  3. Make sure your compiler support std::regex from C++11. Note that G++ 4.8 and earlier don't.

After you have done it, you should run specific task (to generate output file) and then run "output" run configuration.

Note, that it's probably not going to work out-of-the-box under Windows. You may try to find dirent.h for windows or patch JHelper to produce different code for Windows.