+ 1
Please tell me error in this code.
3 Respostas
+ 1
thanks dear brother
+ 1
No problem. Happy coding ☺☺
0
distance clashes with something in the std namespace.
Fixed bug: You don't need the / symbol:
"d2.inches)/%12;"
Reformatting your code helped find this bug. See how more readable your code is, when formatted correctly, e.g. good identation etc.
Note, I changed classes to have the first letter capitalised, which is standard coding standards. This stopped the clash of Distance with distance.
https://code.sololearn.com/cewfr75YBVWW/?ref=app