+ 1

Please someone help me with military time quiz

I've done a code for this military time quiz (12 hour to 24 hour format) but it failed the hidden test cases. If you can find the mistake, please let me know. Thank you https://code.sololearn.com/ck1P0I8c9u7z/?ref=app

13th Jun 2021, 4:28 PM
Rishi
Rishi - avatar
3 ответов
0
Rishi Tested these sample cases , getting wrong.. Input 12:00 AM => output need is 00:00 Input 12:00 PM => output need is 12:00 1:00 AM => 01:00 All you need is hr is in double digits if it is in single digit.. For input => Expected output 12:00 AM => 00:00 1:00 AM => 01:00 12:00 PM => 12:00 use int main() , not void main() pls use sesrch.. hope you can find from these. https://www.sololearn.com/discuss/2803281/?ref=app
13th Jun 2021, 4:47 PM
Jayakrishna 🇮🇳
+ 1
Jayakrishna🇮🇳 thank you so much. I tried using search but couldn't find this. from next time I'll try more carefully before posting a question
14th Jun 2021, 2:36 AM
Rishi
Rishi - avatar
+ 1
Rishi (Duplicates gets deleted by Mods. Try your question will not be a duplicate ) You're welcome...👍👍
14th Jun 2021, 12:02 PM
Jayakrishna 🇮🇳