Reporte de error en texniccenter

Reporte de error en texniccenter

Había escrito esto en texniccenter y cuando hice Ctrl+F7 me dio un error como "secuencia de control indefinida". No entiendo qué estoy haciendo mal. ¿Hay algún problema en mi código? También descargué el paquete "bbm" y lo agregué al principio pero nada funciona. ¿Alguien me puede ayudar? Espero que esto no sea demasiado tonto para este foro.

\documentclass{article}
\usepackage{amsmath}
\usepackage{bbm}
\begin{document}
\section{Problems}
\label{sec:Problems}
\begin{flushleft}
This approach helps a lot since equality cases can be easily obtained.
The left side's >equality case is $r = 1$.
The right side's equality case occur when $y = rx$ passes
through the interior of exactly $n$ squares.
Such cases occur when $r$ is either an
integer, reciprocal of an integer, $r \geq n$ or $0 < r \leq 1/n$.
  $\blacksquare$
\end{flushleft}

2.Determine all functions $f : \mathbb{R} \to \mathbb{R}$ such that
\[f(xy+f(x))=f(x)f(y)+x , \ \ \ \forall x,y \in  \mathbb{R}.\] 
\end{document}

Esto es lo que escribí. Mi alineación es bastante fea aquí y me disculpo por ello, pero la fealdad es mejor que el código incorrecto. Además, esta es la primera vez que uso un editor. Normalmente escribo en plataformas habilitadas para \LaTeX\, como matemáticas SE, MO, etc. Además, la parte de "Este enfoque..." es el final de otro problema, omití todo pero conservé esta parte para que quede claro sobre el errores. Además, quiero dar un cuadrado negro cuando finalice la solución, intenté darle, y eso también muestra "Secuencia de control indefinida:. Por favor ayúdenme, muchas gracias.

Respuesta1

Si desea utilizar el paquete bbm, el comando correcto estaría \mathbbm{R}aquí. Pero como necesitarásalgún paquete más para tu\blacksquareRecomendaría el paquete amssymbque se usa con frecuencia y que contiene el paquete amsfonts. Este último contiene el comando (\mathbb{R}) que estás utilizando en este momento.

Recomendaría utilizar el siguiente MWE:

% arara: pdflatex

\documentclass{article}
\usepackage{amssymb}
\usepackage{mathtools} % not needed here, but it loads most of the stuff you will need. E.g. `amsmath`

\begin{document}
\section{Problems}
\label{sec:Problems}
\begin{flushleft}
This approach helps a lot since equality cases can be easily obtained.
The left side's equality case is $r = 1$.
The right side's equality case occurs when $y = rx$ passes
through the interior of exactly $n$ squares.
Such cases occur when $r$ is either an
integer, reciprocal of an integer, $r \geq n$ or $0 < r \leq 1/n$.
 $\blacksquare$
\end{flushleft}

2. Determine all functions $f : \mathbb{R} \to \mathbb{R}$ such that
\[f(xy+f(x))=f(x)f(y)+x , \quad \forall x,y \in  \mathbb{R}.\] 
\end{document}

ingrese la descripción de la imagen aquí

información relacionada