Блог пользователя jagerknight

Автор jagerknight, история, 2 года назад, По-английски

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

  • Проголосовать: нравится
  • +41
  • Проголосовать: не нравится