0_0_22145872_20132.cpp: In function 'int main()': 0_0_22145872_20132.cpp:19:29: error: 'lim' was not declared in this scope for(int j =1;j<=lim;++j){ ^