/ Vijos /

记录详情

Compile Error

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

信息

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