Problem gcd
User ryuki
Submission Time 2024-02-29 09:02:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int32_t GCD(long long int, long long int)’:
gcd.cpp:10:2: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
10 | num = a % b;
| ^~~
| enum
gcd.cpp:11:20: error: expected ‘;’ before ‘}’ token
11 | return GCD(b, num)
| ^
| ;
12 | }
| ~
gcd.cpp: In function ‘int32_t main()’:
gcd.cpp:19:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
19 | ans = GCD(a, b);
| ^~~
| abs