0

Why "scanf" is not compiling, in this code. Please solve this and explain what is wrong in this code

https://code.sololearn.com/cZGS5tRBroTi/?ref=app

4th Nov 2020, 1:27 PM
Pankaj
Pankaj - avatar
4 odpowiedzi
+ 3
You code is in C++ language
4th Nov 2020, 1:55 PM
CHERIEF Houcine Abdelkader
CHERIEF Houcine Abdelkader - avatar
0
To read through scanf here in c++, you need atleast one cin statement... Otherwise it won't work properly..
4th Nov 2020, 2:06 PM
Jayakrishna 🇮🇳
6th Nov 2020, 2:39 PM
Pankaj
Pankaj - avatar
0
Pankaj cin>>&n; Its not correct in cpp Just put cin>>n; //no need of &
8th Nov 2020, 1:37 PM
Jayakrishna 🇮🇳