Hi, I am currently facing trouble using Xcode for the first time. Previously I used lightweight online IDEs but now I feel the need to switch to an offline one. Since I use Mac I wanted some help on how to setup Xcode for CP. Also while copying large test cases from udebug I see Xcode is not able to run on them and provide the required output. And another problem I have been facing is using the header bits/stdc++.h in Xcode. I searched for a solution online and did something like this 52770619 but over here it showed compilation error.
I would be very happy if anyone can help me.
I am not sure but I think something like
should work. I haven't tested it but you can try it. Let me know if it helped!
It worked like magic... Thanks :) Do u also use Xcode?
No, I don't. It was just a quick idea I had. If you want to use it on other OJs where they do not define ONLINE_JUDGE you can change the syntax a bit like
and compile defining YOUR_DEFINE like you defined _DEBUG. I am glad I could help you :)