The Riemann integral over $[a,b]$ of a continuous function $f$ is $$\int\limits_a^bf(x)dx=\lim\limits_{\delta\rightarrow 0} \sum\limits_{i=0}^{n-1} (x_{i+1}-x_i)f(c_i)$$ where $c_i\in[x_i,x_{i+1}]$ and $\delta=\sup(x_{i+1}-x_i)$. The set $[a,b]$ is uncountable. When $\delta\rightarrow 0$, the number of elements in a set $[x_i,x_{i+1}]$ goes to $1$ and so the number of terms in the sum above is countable. How could a counatble set form a partition of an uncountable set (the sets $]x_i,x_{i+1}[$ form a partition of $]a,b[$).
Now I suspect that there's something wrong in "when $\delta\rightarrow 0$, the number of elements in a set $[x_i,x_{i+1}]$ goes to $1$" but even if I replaced it with "when $\delta\rightarrow 0$, the number of elements in a set $[x_i,x_{i+1}]$ goes to an integer $k$" or "when $\delta\rightarrow 0$, the number of elements in a set $[x_i,x_{i+1}]$ is countable" (I don't know why it isn't $1$) I still have the same problem.