I have a doubt about covers, finite subcovers and its relation with compactness.
Let $X$ be a topological space. We define an open cover of $A\subset X$ as an union of a collection of open subsets of $X$ that contains $A$.
We define a finite subcover taking a finite number of those sets that still cover $A$.
If a set has a finite open subcover, then it's compact.
Question: $(-1,0)\cup(-1/2,2)$ is a finite open cover of $(0,1)$. Regarding the definition of compactness, $(0,1)$ is compact. What am I not understanding correctly?
Your definition of compactness is wrong. A subset $A\subset X$ is compact if, given any open cover of that set, we can extract a finite open subcover. That is, to check compactness of $A$, you have to take an arbitrary collection $(U_i)_{i\in I}$ of open sets that cover $A$ and prove that you find finitely many $i_1,\dots,i_n\in I$ such that $A\subset \bigcup_{k=1}^n U_{i_k}$. By your definition, every subset would be compact since it can be covered by $X$ itself.