Separate the integral into two halves: $$\int_0^{2022} x^2 dx - \int_0^{2022}\lfloor x \rfloor \lceil x \rceil dx = \frac{2022^3}{3} - \int_0^{2022}\lfloor x \rfloor \lceil x \rceil dx$$
For the second integral, take partition $P={(0,1,2,\cdots,2022)}$ and form lower and upper Darboux sums: $$L(P,f)=U(P,f)=0\cdot 1+1\cdot2+2\cdot3+\ldots+2021\cdot2022=\sum_{x=1}^{2022}x(x-1)$$
which we can compute using formulae for sums of powers of integers if you'd like, or recognizing the summand as $2{x \choose 2}$ we can use the hockey stick identity:
$$\sum_{x = 1}^{2022} 2{x \choose 2} = 2{2023 \choose 3} = \frac{2023 \cdot 2022 \cdot 2021}{3} = \frac{2022^3 - 2022}{3}$$
Subtracting this from our first integral gives
$$\frac{2022^3}{3} - \frac{2022^3 - 2022}{3} = \frac{2022}3 = \boxed{674}$$