Weird Invalid Memory Reference?

Write here if you have problems with your C source code

Moderator: Board moderators

Post Reply
Larry
Guru
Posts: 647
Joined: Wed Jun 26, 2002 10:12 pm
Location: Hong Kong and New York City
Contact:

Weird Invalid Memory Reference?

Post by Larry »

I didn't use any arrays, pointers, malloc, or anything that points to memory, but yet I get a Invalid Memory Reference... can this be related to unsigned long long?

I do something like:

( 1llu << num )

but that's about as complicated as it goes.. :cry:
Maarten
Experienced poster
Posts: 108
Joined: Sat Sep 27, 2003 5:24 pm

Post by Maarten »

are you sure it is that statement that gives your invalid memory reference ?
Larry
Guru
Posts: 647
Joined: Wed Jun 26, 2002 10:12 pm
Location: Hong Kong and New York City
Contact:

Post by Larry »

No, but like I said, there's nothing at all I do different, other than unsigned long long in this usage.

What are the compiler flags that the judge use?
Maarten
Experienced poster
Posts: 108
Joined: Sat Sep 27, 2003 5:24 pm

Post by Maarten »

i have no idea, but you can send me your code and i can try and run it on my computer, maybe it helps
Moni
Experienced poster
Posts: 202
Joined: Fri Mar 22, 2002 2:00 am
Location: Chittagong. CSE - CUET
Contact:

Post by Moni »

Larry wrote:No, but like I said, there's nothing at all I do different, other than unsigned long long in this usage.

What are the compiler flags that the judge use?
Hi, Larry I am also interested about it :roll:

Would you send that also to me ???
ImageWe are all in a circular way, no advances, only moving and moving!
jakabjr
Learning poster
Posts: 56
Joined: Wed Mar 23, 2005 9:21 pm
Location: Timisoara, Romania

Post by jakabjr »

also interested. can u post the code?
an idea: maybe u forgot the & in scanf...
Understanding a problem in a natural way will lead to a natural solution
Post Reply

Return to “C”