foo.cc:5:17: error: 'x2' has not been declared
5 | int gcd(int x1, x2) {
| ^~
foo.cc: In function 'int gcd(int, int)':
foo.cc:6:11: error: 'x2' was not declared in this scope; did you mean 'x1'?
6 | while(x2 ==0)return x1;
| ^~
| x1
foo.cc:6:16: error: unable to find numeric literal operator 'operator""\U0000ff09return'
6 | while(x2 ==0)return x1;
| ^~~~~~~~~
foo.cc:6:16: note: use '-fext-numeric-literals' to enable more built-in suffixes
foo.cc:6:25: error: expected ')' before 'x1'
6 | while(x2 ==0)return x1;
| ~ ^~~
| )
foo.cc:6:26: warning: statement has no effect [-Wunused-value]
6 | while(x2 ==0)return x1;
| ^~
foo.cc:7:16: error: 'x2' was not declared in this scope; did you mean 'x1'?
7 | return gcd(x2, x1 % x2);
| ^~
| x1
[Hydro](https://hydro.ac)提供评测服务