expected ; before reloj
statement is a reference, not call, to funcion 'time'
statement has no effect
''reloj'' is undeclared (first use this function)
Each undeclared identifier is reported only once for each function it appears
Have you changed anything else in the code? I also see some typos in the bottom part of the code where you say reloj.sec instead of reloj.seg.
Here is the code with the square brackets and the typos removed. The biggest thing to notice is the addition of whitespace at the beginning of the lines to make the code more easy to read. It is easier to tell what each loop encompasses if you use proper indentation.