The procedure entry point could not be located in the dynamic link library

I am using sublime and mingw compiler. For the same code that I submitted for string compression problem, it’s working in Coding Blocks IDE but throws an error when I run it in sublime.
The error says "The procedure entry point _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7_M_dataEv could not be located in the dynamic link library. The url for my code is 158954.

Hi Kajal

The procedure entry point could not be located in the dynamic link library on your Windows computer. This error can occur if a program fails to locate the DLL library which it needs to run. It could also occur if the library is not in a directory specified in the path or if the DLL has gone missing or corrupted.
Reinstall the program which is throwing this error. Better still, uninstall it, download the latest setup file and install it.