0_0_16438239_25362.cpp: In function 'int solve()': 0_0_16438239_25362.cpp:50:13: error: 'cnt' was not declared in this scope cnt++; ^ 0_0_16438239_25362.cpp:53:12: error: 'cnt' was not declared in this scope return cnt; ^