Recently, I wrote a recursive solution for a CSES DP problem and while doing so, there was a typo(The text predictor of CLion corrected emplace to template) and I did not notice this.
However it still compiled without errors and when I submitted it in CSES, it got accepted. I have attached a screenshot and the code below.
I thought there will be some compilation error or some error that will be thrown when this happened, but nothing happened.
Could anyone please tell me why?
Thanks in advance!