Problem gcd
User itsLQ
Submission Time 2023-06-03 10:14:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int gcd(int, int)’:
gcd.cpp:10:37: error: expected ‘;’ before ‘}’ token
10 | return (b == 0) ? a : gcd(b, a % b)
| ^
| ;
11 | }
| ~
gcd.cpp: In function ‘int main()’:
gcd.cpp:18:9: error: ‘a’ was not declared in this scope
18 | cin >> a;
| ^
gcd.cpp:19:9: error: ‘b’ was not declared in this scope
19 | cin >> b;
| ^