0_0_29738273_31647.cpp: In function 'void init()': 0_0_29738273_31647.cpp:16:9: error: 'rank' was not declared in this scope rank[i]=0; ^