Title |
User |
Message |
Date Posted |
Re: Largest array possible? |
hansonw1 |
You can do the math yourself. The memory limit is 16MB - that's 16,777,216 bytes. A boolean is 1 byte, an integer is 2 bytes, and a longint is 4 bytes. |
Jan 31, 2009 - 10:44:22 pm UTC |
Largest array possible? |
Bob |
What is the largest array possible for this program without exceeding the memory limit? |
Jan 31, 2009 - 10:08:59 pm UTC |
Re: What is General Protection Fault? |
bbi5291 |
In your case it means memory access out of bounds. What happens in your code if M or N is greater than 5000000? |
Jan 31, 2009 - 7:50:57 pm UTC |
What is General Protection Fault? |
Bob |
|
Jan 31, 2009 - 7:00:09 pm UTC |
Re: Re: Re: What's Run time error SIGABRT in c++? |
bbi5291 |
The memory reading is often inaccurate, and also since your attempt at allocating a huge array fails, the memory usage doesn't include the size of that array anyways. |
Jan 18, 2009 - 8:05:10 pm UTC |
Re: Re: What's Run time error SIGABRT in c++? |
zhxl0903 |
but the judge says that i'm only using 64kb of memory for that one |
Jan 18, 2009 - 8:03:29 pm UTC |
Re: What's Run time error SIGABRT in c++? |
bbi5291 |
In your particular case it means you are using too much memory. |
Jan 18, 2009 - 7:59:52 pm UTC |
What's Run time error SIGABRT in c++? |
zhxl0903 |
|
Jan 18, 2009 - 7:57:13 pm UTC |
Re: Re: Re: Re: Bosco |
bbi5291 |
scanf and printf |
Dec 17, 2008 - 2:23:34 am UTC |
Re: Re: Re: Bosco |
purohit3105 |
What can you replace cin or cout with? |
Dec 17, 2008 - 1:43:30 am UTC |