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