0_0_33524601_13930.cpp: In function 'int main()': 0_0_33524601_13930.cpp:35:44: error: 'cnt' was not declared in this scope if(q[i].p==q[i-1].p&&q[i].a==q[i-1].a) cnt++; ^