In this question, I'm assuming the definition of Riemann Integrability.
a) Produce an example of a sequence $f_n \rightarrow 0$ pointwise on $[0,1]$ where $\lim_{n\to\infty}\int_0^1f_n$ does not exist.
b) Produce an example of a sequence $g_n$ with $\int_0^1g_n\to0$ but $g_n(x)$ does not converge to zero for any $x\in[0,1]$. Let's insist that $g_n(x)\geq 0$ for all $x$ and $n$.
For part (a), I thought of the function sequence $$f_n(x) = \begin{cases}1/x & \text{if }0<x<1/n\\0 &\text{if }x=0 \text{ or }x\geq1/n\end{cases}$$ This seems to work. I'm not sure about part (b) though. I would appreciate it if someone could check part (a) and offer some help with part (b).
For part $a$, your answer works, but none of the integrals exist. Try to see if you can alter your example so that each $f_n$ is integrable, but the limit of the integrals doesn't exist.
For $b$, try to think about each $g_n$ being an indicator function of a set; if the indicator functions get narrow quite slowly and slide across $[0,1]$, then the integrals will go to zero. It is possible to choose functions so that the $g_n$'s will not converge to zero pointwise.