I believed, at the time, I had given enough information.... I was unaware that what looks like perfectly reasonable and syntactically correct code can fail to work under "circumstances"
The code was obviously (really, really obviously) not syntactically correct - had it been so, the compiler would not have so comprehensively up-chucked on it.
We can tell that, even though we still can't see the code itself.
Seriously, how are we supposed to gauge your level of expertise, but by asking questions?