/ SeriousOJ /

Record Detail

Compile Error

foo.c:22:1: error: expected identifier or '(' before '}' token
   22 | }
      | ^

Code

#include <stdio.h>

int main() {
    int a, b;
    int count = 0;

    scanf("%d %d", &a, &b);

    while (a != 0 && b != 0) {
        if (a >= b) {
            a = a - b;
        } else {
            b = b - a;
        }
        count++;
    }

    printf("%d\n", count);
    return 0;
}

}

Information

Submit By
Type
Submission
Problem
P1029 Make it zero
Language
C99 (GCC 13.2.0)
Submit At
2025-05-11 09:22:44
Judged At
2025-05-11 09:22:44
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes