wittywho's blog

By wittywho, history, 8 months ago, In English

I am facing this issue while i try to submit via the CPH (Competitive Programming Helper) judge, It gives compilation error, but i am getting correct output while i try compiling and running it manually on the terminal. This issue i started facing since i update some xcode file via the app store update. What could be the probable reason, and what should i do in this case? please help.

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

»
8 months ago, # |
  Vote: I like it 0 Vote: I do not like it

I got to know this problem is due to the command line tool version 15. So now i need to either wait for an update by apple, or i should downgrade my command line tool version.

Can anyone assist me with how to downgrade the version, i already have downloaded the dmg file, but if I install it will it cause that my system will have two different version of the command line tool or the installation will completely replace the current version? Thanks

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

I had the same issue and i figured out i need to use the same build (whether gcc or g++-13) with same arguments as that of code runner / terminal.

First see what command and arguments are being used to compile when you hit code runner / terminal. Then make it same for cph.

You can change the cph build by going to Settings > Competitive Programming Helper > ( Cpp Args or any language you are using.)

Mine was resolved my adding the -std=c++17 argument for cpp build.