Smart keypad advance

what is wrong in code

you have wrongly understood the question
every digit is mapped with alphabet
1->a
2->b
and so on…

but then in sample input 34 should be then c,d

okay
sorry i am little confused

you have to consider
string table[] = { " ", “.+@$”, “abc”, “def”, “ghi”, “jkl” , “mno”, “pqrs” , “tuv”, “wxyz” };

then it will run correctlyl

modified code