0_0_37476676_15505.cpp: In function 'int main()': 0_0_37476676_15505.cpp:23:18: error: 'k' was not declared in this scope for(int j=0;j<=k;j++) ^