Link for the code - doubt

Hello @shyama check this correct code:
i have corrected and commented the mistake:


Happy Learning!!

1 Like

Sir the code works and runs in ide but it is not getting submiited at all

when i am submittig it is passing all the test cases.
could you please confirm which code you are submitting?

@shyama i can see you have not tried to submit.
where you are submitting on hackerblocks or on your portal?

Submit button is not working sir , pls check it

@shyama for that you have to wait till morning because i c an report this in morning only.
Till then you can submit here: https://hack.codingblocks.com/app/practice/1/497/problem

Sir , i did click on submit and compile and run button many times but it returns 0 only

Please share the screenshot and also check the code which you are submitting.
You have to do cout instead of return in the last

Okay sir done , pls resolve this issue

Is you doubt resolved now?

@shyama provide any custom input.
Just submit it. It will pass all the test cases.

I understood the mistake i did in code but i am unable to submit it says compilation successful with 0 but same code worked fully at hackerblocks


Still it is not working sir

Where it is written provide custom input click there and paste the sample input present in the question.
If you will not Give any input then it will give you answer 0 only.

Sir it is done !! Still 0 only as answer I have copy pasted same input and it still says 0

And what it is showing when you are submitting here?