0_0_29316146_19921.cpp: In function 'int main()': 0_0_29316146_19921.cpp:39:39: error: 'i' was not declared in this scope for(int j=1;j<=m;j++) scanf("%d",&b[i]); ^