C++ code of hits for user influence