0_0_35446616_31499.cpp: In function 'int main()': 0_0_35446616_31499.cpp:24:28: error: 'i' was not declared in this scope scanf("%d", &b[i]); ^