Determine the number of ordered quadruples of integers $(a,b,c,d)$ for which $0\leq a,b,c,d\leq 36$ and $37|a^2+b^2-c^3-d^3$.
Problem
Source: XI International Festival of Young Mathematicians Sozopol 2022, Theme for 11-12 grade
Tags: number theory, modulo