First off, fix your indentation. It's a pain to have to read code like that. Second off, your scanf() function will do two things: Firstly, the way it is written now, it will not compile. Secondly, should you get it to compile without changing how you pass in the variable, it will result in a segmentation fault.

Next time actually read what I wrote. See the part about with warnings on? And no, it won't compile. You can't just have a function call outside of all of your braces (see that bottom line in your first post?).