TLE in Word Ladder problem

I have already optimized this code previously, is there any optimization possible

code link : https://ide.codingblocks.com/s/284342
problem link : https://leetcode.com/problems/word-ladder/


You can refer this code.
If you want me to check your code, then please add some comments.

my bad.
code with comments