@[HYzhangshengyi](/user/377044)
函数的 $\operatorname{int}$ 类型必须要有返回的东西,请定义为 $\operatorname{void}$ 类型,并且不需要输出。
by NightStriker @ 2022-09-28 13:44:20
int函数不return是吧
by _Remake_ @ 2022-09-28 13:44:55
void是个啥,放在哪里???
by HY_luogugu @ 2022-09-28 13:52:01
@[HYzhangshengyi](/user/377044)
```
int x(int a)
```
改成
```
void x(int a)
```
by KAqwq @ 2022-09-28 13:57:25
@[Kamisato_Ayato](/user/448018)
那不是还要把
```
cout<<x(i);
```
改成
```
x(i);
```
吗
by Ameko @ 2022-09-28 15:48:34
@[Ameko](/user/689696) 就是啊
by KAqwq @ 2022-09-29 12:27:20