Why my code got error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
12th Aug 2020, 4:32 AM
kumar_bittu
kumar_bittu - avatar
2 Answers
+ 3
the code from if(isAnagram) is outside the main function.(probably by mistake) type it inside the main function. there are many more errors,
12th Aug 2020, 5:19 AM
Prabhakar Dev
Prabhakar Dev - avatar
+ 3
https://code.sololearn.com/c8BVL9pcsa3a/?ref=app here is the fixed version. i have commented the explainations
12th Aug 2020, 5:25 AM
Prabhakar Dev
Prabhakar Dev - avatar