If you want an employer that fits you, you are going to be on the hunt for a while and that is ok. The only mistake you made is not to prepare your departure early.
If your hobbies are math and C++ im pretty sure there is an entire world of code out there that most of us are not interested in or capable of and therefore that is your niche.
Prepare your profile accordingly because how is a recruiter going to know what you want?!
Keep calm and keep applying, and the final thing to look out for: don't lowball yourself.
> If your hobbies are math and C++ im pretty sure there is an entire world of code out there that most of us are not interested in or capable of and therefore that is your niche.
That is true to a degree. There are jobs which need a combination of C++ and math. A lot of those jobs require pre-existing domain knowledge though. Graphics engines, geophysics software, physical simulation software, computer vision, math software (e.g. working at Wolfram) mostly requires some preexisting knowledge of that field. You could pick one of those field and try to learn it on your own, but it will be a many-month investment and will limit you to just a handful companies in the world - each of those niches is small or very small. On top of that, you'll likely be making less than a kid slinging React.
If you want an employer that fits you, you are going to be on the hunt for a while and that is ok. The only mistake you made is not to prepare your departure early.
If your hobbies are math and C++ im pretty sure there is an entire world of code out there that most of us are not interested in or capable of and therefore that is your niche.
Prepare your profile accordingly because how is a recruiter going to know what you want?!
Keep calm and keep applying, and the final thing to look out for: don't lowball yourself.