+ 1

Why am i getting this warning?

Here if i remove the p variable then it says p undeclared and if i keep it it says that it is never used.Why? https://code.sololearn.com/c2Sv9ttP3242/?ref=app

2nd Nov 2019, 11:32 AM
Spandan Bhattacharya
Spandan Bhattacharya - avatar
2 ответов
+ 1
you are using it in line 15, but not using this value anywhere. so you remove line 15 and decl of p, it will be fine
2nd Nov 2019, 12:35 PM
Dev Project
Dev Project - avatar
0
thanks,fixed it
2nd Nov 2019, 1:00 PM
Spandan Bhattacharya
Spandan Bhattacharya - avatar