"scanf" function problem(c++)
what is wrong with "scanf"? Is this function not working in the compiler "sololearn"? https://code.sololearn.com/c9Pv50SfWuxk/?ref=app
I know it is not related to your problem. But you should not use scanf in c++. Use it in C, but not in c++. Use cin instead. Remember that c and c++ are two completely different langages, and that what is correct in C is often a bad practice in c++.
thank you for the detailed answer 👍🏼😀
with "cin" doesn't work too 🤔
for example in this code it doesn't work(but I couldn't apply this function anywhere, so I used "cin"): https://code.sololearn.com/c9Pv50SfWuxk/?ref=app
I think Theophilе is right about c and c ++. Thought that this function can be used in the C ++ language. I'll check it a little later on another compiler