Problem gcd
User boaznumberd5555
Submission Time 2023-03-03 15:15:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int gcd(int, int)’:
gcd.cpp:5:18: error: expected ‘;’ before ‘gcd’
5 | if(b=0) return a
| ^
| ;
6 | gcd(b,a%b)
| ~~~
gcd.cpp:6:12: error: expected ‘;’ before ‘}’ token
6 | gcd(b,a%b)
| ^
| ;
7 | }
| ~