Let $X$ be a topological space, and $A \subseteq X$ a subspace. How to think about an element $u \in H^n(X, A)$? Is the following correct? $u$ can be represented by a function $U$ taking an $n$-cell $\sigma$ in $X$ as input and assigning an integer $U(\sigma)$ as output. If $\sigma \subseteq A$, then $U(\sigma)=0$. Also, $U$ applied to the boundary $\partial \tau$ of any $n+1$-cell $\tau$ of $X$ is $0$. Finally, we can replace $U$ by $U+\delta V$, which assigns to $\sigma$ the value $U(\sigma)$ plus $V(\partial \sigma)$, where $V$ is a function on $n-1$ cells that vanishes on cells in $A$.
So the value of the ${\textit class}$ $u$ on $\sigma$ is not well defined.