Nevermind!! I fixed it. Turns out I had a brace in the wrong place at the end :\
I know this is annoying, but I really cannot find the error in my code. I get an error message that says: SMOalg.cxx:104: syntax error before...
Separate names with a comma.