0_0_28832487_4172.cpp: In function 'int solve(int, int, int)': 0_0_28832487_4172.cpp:45:3: error: 'f' was not declared in this scope f=cnt=0; ^