foo.cc: In function 'int main()':
foo.cc:8:12: error: two or more data types in declaration of 'gcd'
8 | ll int gcd =a,ans=b;
| ^~~
foo.cc:8:19: error: two or more data types in declaration of 'ans'
8 | ll int gcd =a,ans=b;
| ^~~
foo.cc:11:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
11 | while(ans % a != b)
| ^~~
| abs
foo.cc:12:12: error: 'gcd' was not declared in this scope
12 | ans += gcd;
| ^~~
foo.cc:13:5: error: 'gcd' was not declared in this scope
13 | gcd *= a;
| ^~~
foo.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
15 | cout<<ans;
| ^~~
| abs
[Hydro](https://hydro.ac)提供评测服务