记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:5:29: error: expression list treated as compound expression in initializer [-fpermissive]
  int a,b,max,min,res,lcm(a,b);
                             ^
foo.cc:5:29: warning: left operand of comma operator has no effect [-Wunused-value]
foo.cc:16:9: error: 'lcm' cannot be used as a function
  lcm(a,b)=a*b/min;
         ^
foo.cc:17:15: error: 'lcm' cannot be used as a function
  cout<<lcm(a,b);
               ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
语言
C++
递交时间
2021-09-05 10:59:10
评测时间
2021-09-05 10:59:10
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes