0_0_31763580_23119.cpp: In function 'int main()': 0_0_31763580_23119.cpp:60:22: error: 'k' was not declared in this scope scanf("%d", &k); ^