minimum_guy's blog

By minimum_guy, history, 4 years ago, In English

/*I don't know why I am getting segmentation Fault. Please suggest me the changes to run my code.*/ 84895430

  • Vote: I like it
  • -25
  • Vote: I do not like it

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

you should give your code link..

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

W[i] can be negative and in your code ll is (unsigned long long int) that it make error out of bounds

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Thanks sir!! It worked. I was not seeing unsigned long long int. Thank You very much...