When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

Al.Cash's blog

By Al.Cash, 7 years ago, In English

Let me introduce the competitive programming tool that's aimed to help you get AC more easily: ACHelper, wiki

I tried to take the best elements from Hightail, CHelper and Caide, and add project generation using CMake on top of that.

The tool itself is cross-platform and should work with any programming language and IDE that is supported by CMake (or other project generator). However, templates only for C++ for Mac (that should work for Linux as well) are implemented at the moment. Any help on Windows support is highly appreciated, more details on that here.

A screenshot of ACHelper with my AppCode IDE after the testing. screenshot

Let me know what you think.

  • Vote: I like it
  • +76
  • Vote: I do not like it

»
7 years ago, # |
  Vote: I like it +22 Vote: I do not like it

This is awesome! If you have the time it would be great if you could make a screencast of you using it in a contest, as for CHelper with Egor / Petr it really helped me understand the best workflow.

»
7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

what am i doing wrong?

  • »
    »
    7 years ago, # ^ |
      Vote: I like it +14 Vote: I do not like it

    As you can see, there's no Xcode on the list. Looks like you're using Linux, so that makes perfect sense. Replace Xcode with one of the generators listed such that you have that IDE.

    • »
      »
      »
      7 years ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      i am unable to find full path to CMake executable in Fedora. Can anybody help?

      • »
        »
        »
        »
        7 years ago, # ^ |
          Vote: I like it +4 Vote: I do not like it

        mkdir error is fine, since the directory already exists.

        CMakeLists.txt should be created in the contest root directory by ACHelper. Parse some problems and check that it's there.

        There should be no need to run the script by hand, if it's set correctly in the last line of ACHelper.xml. But if you'd like to do that, run it from the contest root, i.e. scripts/unix/project.sh.

      • »
        »
        »
        »
        7 years ago, # ^ |
        Rev. 2   Vote: I like it +1 Vote: I do not like it

        try which cmake or type -a cmake

        • »
          »
          »
          »
          »
          7 years ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          It parsed the test cases! But i am still not able to understand how to run testcases!

          • »
            »
            »
            »
            »
            »
            7 years ago, # ^ |
            Rev. 2   Vote: I like it 0 Vote: I do not like it

            If CMake ran successfully, open a project that was generated inside Project directory with the IDE you specified. Then run the problem target in Release or RelWithDebInfo mode (just make sure is't the same as the one you set in CMakeScripts.txt — item 3 in the instruction).

            • »
              »
              »
              »
              »
              »
              »
              7 years ago, # ^ |
                Vote: I like it 0 Vote: I do not like it

              I opened a project that was generated inside the project directory with Codeblocks. Now, i don't know how to run the problem target in Release or RelWithDebInfo mode!

              sorry for being so dumb and bugging you again nd again!

              • »
                »
                »
                »
                »
                »
                »
                »
                7 years ago, # ^ |
                  Vote: I like it 0 Vote: I do not like it

                Well, this depends only on IDE, and I didn't use Codeblocks. You should be able to select the target and configure it somewhere in the interface. Maybe the IDE didn't create the run configuration automatically.

        • »
          »
          »
          »
          »
          7 years ago, # ^ |
            Vote: I like it +6 Vote: I do not like it

          poikniok is right, a screencast will be very helpful !