Problem Code : CV , I'm not able to find why run time error is happenning.Please somebody help me regarding this

i mean google account*

Use while(t–) which is the post decrement operator.

i’m using the same …here it is showing while(t-) because of codechef formatting .i’m doing while(t–) always

see the difference - vs –

Always format your code like while(t--)

1 Like

Your submission is correct, so it is getting AC. The reason behind getting Runtime Error or TLE is use of while(t–) instead of while(t--), i.e. you are using Dash instead of Minus Sign.
Although they seems to be same, they are not. The C++ Compiler does know well how to treat --(Double Minus Sign as Post-decrement Operator), but it fails in the case of (Dash) which leads to Runtime Error.
Hope this helps. Feel free to ask any further doubts.

are u using codechef ide ?
if yes then provide inputs in custom input area

but how can u get TLE without submitting?

bro you are right. i’m using post decrement not dash.when i copied my code to forum then post decrement operator seems to be dash but in reality it is minus minus.only formatting makes difficult for all of you to see that it is minus minus,and believe me it is.and i’m using minus minus every time but it is showing run time error always don’t know why.my concern is only this ,if on submission it is AC then why TLE and RUNTIME ERROR.

bro see this link once
https://drive.google.com/file/d/1rb3jywjBcNbP8ZEzKH1oRAHJO4dq65cw/view?usp=sharing

Did you give custom input while testing your code? In your screenshot, the custom input checkbox is unticked.
If no input is given, input and Output both are undefined and System might give Runtime Error for crossing the Execution Time Limit per submission.

no , i didn’t give any input.

this literally what i asked you
provide inputs there
and why do u say it gives TLE when it gives AC on submitting
u cannot get TLE verdict by running progs on local machine or online ide

You can see the above mentioned link…there you will find TLE status.That’s why i said TLE!

okk i see!! u r using ide mode while submitting
will check whats the matter later

heyy bro do one more thing, problem code : PROXYC .i did my coding.answer is right on my ide but submittion says WA.please help me.i’m new to programming so i need to learn a lot.i’m not trying to get points in JUNE CHALLENGE,i only want to learn…

check for my code and my id is pandey246 from which i submitted my code.

Sure. Please remind us after long challenge end.

1 Like

sure
will do it after contest
btw u do realize we cannot see others code during contest right

I’ll send you bro if u want to see it…

Give me your email so that i can send it to you.I don’t have patience that’s why I’m saying this.