Problem gcd
User ansel
Submission Time 2024-06-18 10:34:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int gcd(unsigned int, unsigned int)’:
gcd.cpp:7:11: error: a function-definition is not allowed here before ‘{’ token
7 | int main(){
| ^
gcd.cpp:10:1: error: expected ‘}’ at end of input
10 | }
| ^
gcd.cpp:3:40: note: to match this ‘{’
3 | int gcd(unsigned int a, unsigned int b){
| ^