what the error says and what is the actual error may be different sometimes because of missing/wrongly placed {'s,''s,"',s etc
but just check through the whole code, or if its too big, just the part you know effects that bit of code and make sure all the {}'s are in the right place
and im guessing its impossible for something to be closer then 0 (distance_to_object()<0) lol
so thats not really needed
also, making alarm[0]=0 should activate the code in alarm[0], if you dont want that, set it to -1
and if you tap a, then alarm[0] will be set to 60 and never go off, so you could check to see if alarm[0]<0, and if so set it to 60
same with point_distance()<0 setting the alarm to 0, which will constantly set off the alarm code i think. but that shouldnt matter as like i said, distance_to_object()<0 is impossible (isnt it? :S)
edit:it does seem to be that you missed off the end ) like bongo bob said.
so like i said, what it may say the error is may not always be the case