foo.cc:3:20: error: expected initializer before 'll'
3 | typedef long lkong ll;
| ^~
foo.cc: In function 'int main()':
foo.cc:6:5: error: 'll' was not declared in this scope
6 | ll n,a,b;
| ^~
foo.cc:7:10: error: 'n' was not declared in this scope; did you mean 'yn'?
7 | cin>>n>>a>>b;
| ^
| yn
foo.cc:7:13: error: 'a' was not declared in this scope
7 | cin>>n>>a>>b;
| ^
foo.cc:7:16: error: 'b' was not declared in this scope
7 | cin>>n>>a>>b;
| ^
foo.cc:8:7: error: expected ';' before 'int'
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)提供评测服务