+ 2

Why can't this code run when given huge values?

https://code.sololearn.com/czQg0RGpkM10/?ref=app I can't run this code given a huge value for seconds. I use a windows PC and GCC compiler..

6th Mar 2018, 8:39 PM
Otumian Empire
Otumian Empire - avatar
1 Answer
+ 7
If your huge value is bigger than 2147483647, it doesn't fit within an int.
6th Mar 2018, 9:03 PM
John Wells
John Wells - avatar