Compile Error
foo.cc: In function 'int main()':
foo.cc:8:13: error: lvalue required as left operand of assignment
8 | if(a%b=0)
| ~^~
foo.cc:11:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
11 | while(c=0)
| ~^~
foo.cc:17:33: error: expected ';' before 'int'
17 | printf("最大公约数%d",b)
| ^
| ;
18 | int n=a<b?a:b;
| ~~~
foo.cc:19:15: error: 'n' was not declared in this scope
19 | while(n)
| ^
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- P1079 xf1-2最大公倍数与最小公因数
- 比赛
- 2022年迎新赛(第二场)
- 语言
- C++
- 递交时间
- 2022-08-27 09:36:26
- 评测时间
- 2022-08-27 09:36:26
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes