Where is The mistake plz !! i beg for help!!

10^9 things cannot be stored even in simple arrays. There has got to be another approach which uses less time and memory. Also, dont stick to C. Try to move up to C++ asap if you’re aiming to excel in competitive coding.