Strings count pallindromic substrings

i have build the logic of this program and it is working absolutely fine except one test case so i went to leet code to check the test case which is failing but i found that it is showing an errot on leetcode and it is not compiling

error-Line 44: Char 17: error: use of undeclared identifier ‘Solution’
int ret = Solution().countSubstrings(param_1); return ret;
^

here is my program


please help me to solve the matter

Hi @abhibansal252
ur code is failing over this test case nitin
ur o/p 6
expected o/p 7

refer my code https://ide.codingblocks.com/s/617571

I have corrected the logic now its running absolutely fine but its still its not showing error on leetcode

my new code is this now https://ide.codingblocks.com/s/617594 but still on leetcode it is showing same error Line 44: Char 17: error: use of undeclared identifier ‘Solution’ int ret = Solution().countSubstrings(param_1); return ret; ^

can u share the code u are trying to submit on leetcode… the function on leetcode… i will check

here is the link of my code https://ide.codingblocks.com/s/617674 and this is the site where i am submitting https://leetcode.com/problems/palindromic-substrings/

are bhai leetcode pe int countSubstrings(string s) aise ye function ke andr kya likha hai vo bhejo na… vha to bss function complete krna hota hai… scratch se pura code thodi likha hoga vha pe

shall i consider ur doubt as resolved??

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

can you explain the logic