I want a circle around a roman numeral inside a section title.
A command \circled is made from:
\documentclass[11pt,a4paper]{article}
\usepackage{tikz}
...
%Circle around characters
\newcommand*\circled[1]{%
\tikz[baseline=(C.base)]\node[draw,circle,inner sep=0.5pt](C) {#1};\!
}
a solution I have from the latex community forum. It works very well surrounding a character with a circle. When I try to put this inside a \subsection command to add it to a section title, it actually works, but I get many errors.
Result:

Warnings:

What is wrong here? It works apparently, but can I fix the errors?

\documentclass{...}and ending with\end{document}. Using...in the preamble is an error – Jun 14 '15 at 14:12\circledbe\protected? – GuM Jun 14 '15 at 14:17