IDE debugging?

I've scanned through the program line by line several times now, and I can't find any open '(){}'. I'm wondering if it's got something to do with the IDE settings or something, as I don't remember having to declare functions before setup, and in the reference section of this website it's showing functions at the end of the program, after the main loop, which is where I always put them - but if I do it now it compains about them being 'not declared in this scope'.