a suspect has a constitutional right not to be compelled to talk , and any statement made during an interrogation can not be used in court unless the police and the prosecutor can prove that the suspect clearly understood that ( 1 ) he had the right to remain silent , ( 2 ) anything said could be used against him in court , and ( 3 ) he had a right to an attorney , whether or not he could afford one .