why getting compile error in gets()

why getting compile error in gets(A[i])??

The function gets() was removed from both C and C++.