Smart keypad advanced problm

AM GETTING THE CORRECT ANSWER BUT ALS0 RUN TIME ERROR ON ONLINE IDE
ON SUBMISSION IT GIVES RUN TIME ERROR
AND
WITH INPUT 33
am getting “deepak” twice bcoz 2 substring generated by input match with this name so is this a problem regarding submission

my code
https://ide.codingblocks.com/s/42456

qn link
https://hack.codingblocks.com/contests/c/512/97

PLEASE HELP ME

Hey Jai, there is just a small mistake you haven’t written the return statement in base case of helper function.

https://ide.codingblocks.com/s/48641
when i run this code on online ide it runs fine.
But when I run it on the terminal in my computer, it shows the following error----

test.cpp:11:17: error: non-aggregate type ‘vectorstd::__1::string’ (aka ‘vector<basic_string<char, char_traits,
allocator > >’) cannot be initialized with an initializer list
vector searchIn= {
^ ~
test.cpp:15:17: error: non-aggregate type ‘vectorstd::__1::string’ (aka ‘vector<basic_string<char, char_traits,
allocator > >’) cannot be initialized with an initializer list
vector phone = { " ", " ", “abc”, “def”, “ghi”, “jkl”, “mno”, “pqrs”, “tuv”, “wxyz” };
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.

Why is this ? Pls explain