Ahmed_Hussein_Karam's blog

By Ahmed_Hussein_Karam, history, 4 years ago, In English

Could anyone let me know why this submission doesn't work?

| Write comment?
»
4 years ago, # |
  Vote: I like it -9 Vote: I do not like it

Because 1 <= x <= 10^12, so you need to set i = long long (line 37).

»
4 years ago, # |
  Vote: I like it +7 Vote: I do not like it

don't use pow(), it's rather inaccurate