Heart failure is different from cardiac arrest , because the heart is still working . Heart failure can be sudden ( `` acute '' ) , for example after a heart attack , or can come on slowly . Heart failure can affect the entire heart or only the right or left side .