Title |
User |
Message |
Date Posted |
Re: What is Runtime Error 26? |
bbi5291 |
I looked through your submission and it appears you had runtime error 216. This indicates a general protection fault, probably caused by going out of bounds in memory. |
Mar 21, 2009 - 6:47:40 pm UTC |
Re: What is Runtime Error 26? |
jargon |
Are you sure it's 26? |
Mar 21, 2009 - 6:35:19 pm UTC |
What is Runtime Error 26? |
Bob |
|
Mar 21, 2009 - 6:28:05 pm UTC |
Re: Ending the input. |
bleung91 |
KEep a running size count, which is easy to do, or use a vector, in which case you can indeed do: int vector_size = v.size(); and that returns the number of elements in the vector. however, vectors... |
Mar 08, 2009 - 1:48:29 am UTC |
Ending the input. |
purohit3105 |
Yes, I know. But, it doesn't seem work if I want to find the length of an int array. |
Mar 08, 2009 - 12:46:33 am UTC |
Re: Re: Re: Re: Re: Re: Ending the input. |
bleung91 |
strlen(variable)? say I have the following: string str; the length of this string is str.length(). so i can do this: for (i=0;i |
Mar 08, 2009 - 12:31:19 am UTC |
Re: Re: Re: Re: Re: Re: Ending the input. |
purohit3105 |
I already wrote another program without ever using chars. Then I modified the first program and it seemed to get me 20/100 so I am using that now. Check my 7:05 submission. |
Mar 08, 2009 - 12:04:31 am UTC |
Re: Re: Re: Re: Re: Ending the input. |
dAedaL |
Please, at least TRY to follow other people's advice BEFORE you post another complaint. It was suggested twice that you use strings, and I've looked at your submissions and I still see char arrays. |
Mar 07, 2009 - 11:19:28 pm UTC |
Re: Ending the input. |
purohit3105 |
But thats not the problem. I am reading in fine for sure but the thing is my solution requires to have a int array of a certain size and use that to get the answer but I don't know how to find the siz... |
Mar 07, 2009 - 8:53:21 pm UTC |
Re: Re: Re: Re: Re: Re: Ending the input. |
jargon |
Hanson is correct; you should use strings. (This doesn't work in pascal because pascal strings are only 255 chars.) If you use strings, just use s.length(), where s is a string. |
Mar 07, 2009 - 7:01:03 pm UTC |