Try to explicitly cast the third arguments to the ranked_update enumeration in both calls to ranked_update_rank, as such:
On line 218:
ranked_update_rank(sd,0,static_cast<ranked_update>(type-1),RANK_P_OTHERS);
On line 244:
ranked_update_rank(sd,points,static_cast<ranked_update>(type),RANK_P_OTHERS);
And recompile. You might face other issues with this code, since it was probably written for VC++ 6.0, which is a legacy version of a C++ compiler.