+ 11

What is the problem in this code?

The compiler says'' variable is set but not used '' what is it mean??? https://code.sololearn.com/chnuko8jcowS/?ref=app

5th Jun 2020, 6:45 AM
Naveed
Naveed - avatar
26 Answers
+ 3
I gaved them values and I want it to print them on screen . I didn't get the idea of it but now I realize that to use cout<<n.Reg_no; And I successfully did it. https://code.sololearn.com/chnuko8jcowS/?ref=app
5th Jun 2020, 11:17 AM
Naveed
Naveed - avatar
+ 7
Oma Falk 😂😂 i think he have skills he dont need to post question actully he can do it
5th Jun 2020, 11:23 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 4
Naveed Ahmad 🇵🇰 Doesn't matter. Object or variable can be of any type. You have to use otherwise you will get this warning.
5th Jun 2020, 7:15 AM
A͢J
A͢J - avatar
+ 4
Why u made your code more complex you can easily print these three numbers wht need to divide it into functions
5th Jun 2020, 11:24 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
Naveed Ahmad 🇵🇰 It means you have just declared the variable but didn't use anywhere. So it is just a warning.
5th Jun 2020, 7:11 AM
A͢J
A͢J - avatar
+ 3
Thanks everyone ! I just comeback after 2 weeks and I forgot such things in coding.😟
5th Jun 2020, 11:18 AM
Naveed
Naveed - avatar
+ 3
You called me that " it's not complicated use your own brain " and I did it.😍
5th Jun 2020, 11:21 AM
Naveed
Naveed - avatar
+ 3
Now it's ok bro.venda hajsman
5th Jun 2020, 4:27 PM
Naveed
Naveed - avatar
+ 3
I think you want to unlock your "self-learner" badge 😂
6th Jun 2020, 6:20 AM
SAN
SAN - avatar
+ 3
Nice bro
6th Jun 2020, 6:25 AM
SAN
SAN - avatar
+ 3
Thank you.
6th Jun 2020, 6:26 AM
Naveed
Naveed - avatar
+ 2
Naveed Ahmad 🇵🇰 What do you expect the code to do? Is there any command that could bring the values to the screen or do anything else with them?😉
5th Jun 2020, 9:21 AM
Crash
Crash - avatar
+ 2
What are you trying to print through this program. U made some functions and u calling with dot and u assign some values in main where is your () round brac.
5th Jun 2020, 10:08 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
I well start practicing again to remember everything and recover myself back in coding Oma Falk . I utmost thankfull to you.
5th Jun 2020, 11:22 AM
Naveed
Naveed - avatar
+ 2
C,Cpp,Java,Html. Now it's not complex for me it's a bit easier.
5th Jun 2020, 11:29 AM
Naveed
Naveed - avatar
+ 2
I don't see any error
5th Jun 2020, 3:48 PM
Václav Hajšman
Václav Hajšman - avatar
+ 2
ŚĄŃ no bro I already unlocked it watch my old replies you we'll understand.
6th Jun 2020, 6:24 AM
Naveed
Naveed - avatar
+ 2
It's great, I don't see any errors.
6th Jun 2020, 12:46 PM
Nika
Nika - avatar
+ 1
AJ Anant yes bro but it's only the object of the class "car" .
5th Jun 2020, 7:13 AM
Naveed
Naveed - avatar
+ 1
It's running correctly
6th Jun 2020, 3:04 PM
The Kanks
The Kanks - avatar