jagerknight's blog

By jagerknight, history, 4 months ago, In English

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!

You can see one 'template' in the if condition inside the while loop.

Code

The accepted page

 
 
 
 
  • Vote: I like it
  • +41
  • Vote: I do not like it