0_0_21457826_2286.cpp: In function 'int main()': 0_0_21457826_2286.cpp:37:11: error: 'K' was not declared in this scope cin>>n>>K; ^