the biggest problem I’m having is the codechef runs the code, then says ‘wrong answer’, but no feedback as to what was wrong with the output from my program.
My program works for the presented inputs and meets (as I read the criteria) all the listed criteria.
Learn gdb from here and here (vedios from CS50 by harvard).It is a commandline runtime debugging tool. It supports many languges but the tutorials are specifically for c and can be extended to c++ easily. For other languages also you can find the tutorials.
It makes debuggig really faster and you dont have to change your program again and again for debugging,
in manually u can check all the possible inputs into it and can check out. i used this method to test my last work about kerala houseboat packages. also there are a lot of testing tools are available in the market.
}
This is my program for input and output processing but codechef is giving me wrong answer. I even tested this answer on ideone and there it got successfully executed. so why codechef is giving me wrong answer??
We test our code in other sites and ide they work fine there, but when submit in codechef it simply says WRONG ANSWER. seriuosly? shouldn’t it clearly state whats went wrong. Its so irritating ti see that message again and again having no idea what did go wrong.
seriously man,
workin on a code, i submit solution to the problem it accepts subtask1 and showing wa for subtask 2. i have test almost all possible inputs but it simply shows wa all time,
it should give feedback of what went wrong…
This is the most irritating issue i face here.
CodeChef should provide hints or useful feedback when it throws WA. Let them reduce points/stars but provide a meaningful response. Thats the least i expect !
The current UI doesn’t look intuitive & reduces engagement levels of beginners like me
If it tells, whats wrong in your code, what did you learn then? Like this, every other person will get AC, because of the hints. At the end of each round, editorial is published. Do refer to that, if you were not able to solve any problem
In that case lets extend your argument and ask What is the fun in revealing full editorial afterwards but hiding the test case failure reason when the person is actually engrossed?
No / delayed feedback == Delayed learning && Low engagement.
PS: Not everyone is here for the stars / ratings. Most beginners look for smooth learning curve.
Thats the mistake beginners do. Take example of this long challenge, 6th problem, Dr. Chef. Its a good implementation type problem where you need to spend atleast 1-2 day(even hours) to find edge cases, learn different implementation etc.
Even after writing code, it gives WA suppose.
What did you learn in these 1-2 days spent in this problem?- Learnt to debug, learnt to find edge case, leart to implement harder things or above your skills, learnt to understand question.
Now suppose, you submit within 1 hour of trying and it gives WA and you get the hint. Now you learnt nothing out of the question.
Sometimes try out codeforces. You are new here, so being impatient. We have been practising for 2 years now. We had the same mindset as you, but gradually it improved.
Personally, i tried CodeWars ( https://www.codewars.com/ ) & totally liked it !
I highly recommend to any beginner, it has better UI & provides instant error logs so that we atleast know what went wrong. Thats how it should be, more realistic to actual development where can analyze the logs incase theres an error!
BTW, looking at your submissions, you don’t seem to be 2 years old on CodeChef