+ 8
What's wrong with this code??
7 Answers
+ 4
yes I wanted to do the same
but what's wrong with mine ?
+ 4
@Sreejith mine code was also correct
just one silly mistake and caught it..
instead of c3.output (); I wrote cout<<c3.output();
+ 3
Here's the corrected program. I think....
https://code.sololearn.com/cnM24PWIRn66/?ref=app
pls let me know if this is what you wanted
+ 3
hope this will help
https://code.sololearn.com/cFbA4kL7S1B4/?ref=app
try to link the statements
+ 2
I mentioned your mistakes in this program. check it out
https://code.sololearn.com/cBzaSWCH7hb3/?ref=app
+ 1
output function is declared as void
and you cannot use cout to display void function ,it will cause error
I think you should declare output as int
anyway you got it right that's good
+ 1
@Himani if you don't mind
can you explain your code, I can't understand how it works