WIERD C++ BEHAVIOUR I CAN'T UNDERSTAND

Правка en1, от naivedyam, 2024-12-02 12:03:54

I was recently trying out a CSES problem Coin Combinations 2 and THIS CODE GAVE ME MULTIPLE RUNTIME ERRORS while THIS ONE PASSED. If you look closely, both are exact same codes except that the one with runtime errors uses long long instead of int. Why using long long is giving runtime errors here?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский naivedyam 2024-12-02 12:03:54 476 Initial revision (published)