/ Vijos /

记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
题目
P1164 曹冲养猪
语言
C++
递交时间
2022-01-23 14:00:30
评测时间
2022-01-23 14:00:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes