0_0_26269819_1757.cpp: In function 'int main()': 0_0_26269819_1757.cpp:30:10: error: 'cnt' was not declared in this scope x = 0; cnt=0; ^ 0_0_26269819_1757.cpp:36:10: error: 'v' was not declared in this scope else v[cnt++]=make_pair(i,j); ^