Adding int max to another number will overflow. I’m assuming you are using C++. When pasting code always Format it.