0_0_19962007_1728.cpp: In function 'int main()': 0_0_19962007_1728.cpp:154:13: error: 'cnt' was not declared in this scope if(work(cnt-1))printf("YES\n"); ^