Welcome to the forum.
I have changed your thread title for the following reason:
'Thread titles should include all or part of the word/phrase being discussed.' (Extract from the Posting Guidelines.)
'Compos mentis' is Latin, meaning 'of sound mind' or 'sane', so it's incorrect to put 'in' before it. The opposite is 'non compos mentis'.
Student or Learner