why we do not get error in ATM question if we use map function?

I am getting NZEC error if I get the input normally but no error if get it using map fuction()