0_0_35732935_5549.cpp: In function 'int Calc(int, int)': 0_0_35732935_5549.cpp:12:5: error: 'K1' was not declared in this scope if(K1%3==2&&L2%3==1) return 1+(L1-1)/3*3+(L2-1)/3*3; ^