What is the errors in this code ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the errors in this code ?

It's a structure code .. i wanted write a code to show date ... but this code is not taking input correctly. plz help me out.. https://code.sololearn.com/cfa5wEApOLM2/?ref=app

11th Jan 2018, 4:33 PM
Samarth H Chinivar
Samarth H Chinivar - avatar
5 Answers
+ 12
As Lakshay has mentioned, your code is taking input correctly. But it's not showing anything because you haven't printed the values. You need to use cout to print the input values : https://code.sololearn.com/c9K9UKZaFGcC/?ref=app
11th Jan 2018, 6:08 PM
Shamima Yasmin
Shamima Yasmin - avatar
+ 6
Your code is perfectly fine. In sololearn's playground you have to input all the inputs in the beginning giving space or return b/w them. I think this maybe your problem, if not let me know about it.
11th Jan 2018, 4:44 PM
Lakshay
Lakshay - avatar
+ 2
thank u so much .. its working perfectly as i required ..
12th Jan 2018, 12:56 AM
Samarth H Chinivar
Samarth H Chinivar - avatar
+ 2
Thanks lakshay and shamima for helping... now i learnt to input and output structures from u guys ...
13th Jan 2018, 2:00 PM
Samarth H Chinivar
Samarth H Chinivar - avatar
+ 1
thanks for reply .. Yes i gave input correctly but its not showing output correctly .. i entered 24 space 5 space 2017 .. its not giving any output .. once try it for yourself
11th Jan 2018, 4:58 PM
Samarth H Chinivar
Samarth H Chinivar - avatar