Problem gcd
User redline
Submission Time 2025-06-16 15:02:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:10:10: error: ‘g’ was not declared in this scope
10 | cout << g(a, b);
| ^
gcd.cpp: In function ‘int g(int, int)’:
gcd.cpp:17:20: error: expected ‘;’ before ‘}’ token
17 | return g(b, a % b)
| ^
| ;
18 | }
| ~