0_0_31660872_30874.cpp: In function 'int main()': 0_0_31660872_30874.cpp:5:15: error: 'k' was not declared in this scope while(cin >> k) ^