1 / 6
Nov 2017

Hello,

I am getting this Segmentation fault error when i submit code otherwise it runs perfectly fine on ideone also. I don’t know which scenario causes this.
please take a look at my code.

link to my code

Just let me know where i am wrong.

Thank You.

  • created

    Nov '17
  • last reply

    Nov '17
  • 5

    replies

  • 829

    views

  • 2

    users

  • 1

    like

Honey [if I can said so :wink: ] : ch[8] !?

For a given positive integer K of not more than 1000000 digits, … [=== ch[8] !? ]

I don’t know, but I think you must rethinking litle more :wink:
Test? For example:

19
29

89

Accepted finally.:sweat_smile::confetti_ball:
The char Array was causing problem.
if input >> 99999 and 9
then output was 1000001 and 1100001

It was overwriting type.:grimacing:

Thank you so much @narbej

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 38 30d

Want to read more? Browse other topics in C and C++ or view latest topics.