You have not posted the error message you are getting.
You have a lot of delay()s in your program. If you literally only want to flash an SOS messsage that should be fine. But if you are thinking of anything more complex it would probably be wise to use millis() to manage your timing without blocking the Arduino in the way that delay() does.
Have a look at how millis() is used to manage timing without blocking in Several Things at a Time.
You were missing some semicolons at the ends of statements.
You didn't declare the return value type on your two functions (use the type 'void' if not value is returned).
You had an extra '}' in one of your loops.
You had comments where they weren't needed.
You had comments that did not match the code.
You had many integer constants without names.
You had global AND local variables with the same name. The globals were not used.
You used 'scount' and 'ocount' variable names even though they were local and could both be called 'count'.