iamazat's blog

By iamazat, 14 years ago, In English
  • Vote: I like it
  • -12
  • Vote: I do not like it

»
14 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

there is an integer overflow. the upperBound can be as large as 10^12 (100 000 000 000 000). unsigned long is not enough. you have to use type long long.