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