0_0_38124887_8500.cpp: In function 'int main()': 0_0_38124887_8500.cpp:13:17: error: 'k' was not declared in this scope cin >> n >> k; ^