UNLOCK problem (C++ STL CHALLENGE)

For UNLOCK problem under c++ STL challenges.
My code gives blank output after running. But after removing long long data type from all the variables it only passes a single test case.
I have followed the similar technique used in other platform.
Please Review my code and suggest idea.