News for hackers. Stuff that matters.
Re:C++ Quiz by shmerl on Thursday September 18, 2014 @11:42AM (#8335812)
As I said, it wouldn't be a syntax error if ... contained the matching { somewhere inside.

That lone } which seemingly belongs to if in this case would be closing the function.

Re:C++ Quiz by adm_hn on Thursday September 18, 2014 @11:49AM (#8335855)
They are talking about the } after the return, not the one after the ... i.e. else return(1); }
Re:C++ Quiz by shmerl on Thursday September 18, 2014 @12:46PM (#8336189)
Yes, that's what I understood. That } after return matches to the function opening {. So it's correct syntactically, but is wrong according to intention.