Notices when submitting custom post type from front-end

The issue is in using the $post variable for arguments. After changing this to something like $new_post I no longer get the notices.

There must be some conflict with the global $post that WordPress uses.

I took this from the Codex, but looking back at the page, I realize that $post was just referring the argument name and the actual example in the codex does not use $post for the args array.