没有return 0……
by Broadway @ 2017-11-01 13:22:23
。。。不会吧 我以前都不写也对的呀
by sky_silence_gdk @ 2017-11-01 13:24:23
**测评机**:返回值非零,程序一定错了
by autoint @ 2017-11-01 13:28:21
好吧 谢谢 但为啥这次不写就不是0呢 以前不写也就是0了呀
by sky_silence_gdk @ 2017-11-01 13:31:00
而且……我下第一个测试点自己测 结尾是with return value 0的呀……
by sky_silence_gdk @ 2017-11-01 13:31:59
@[sky\_silence\_gdk](/space/show?uid=34094) find\_set(int x)写的有问题,没有返回值.
by karma @ 2017-11-01 13:57:22
@[sky\_silence\_gdk](/space/show?uid=34094) 将find\_set()改为
```cpp
int find_set(int x)
{
if(a[x]!=x)
return a[x]=find_set(a[x]);
else
return x;
}
```
by karma @ 2017-11-01 13:58:55
@ \_\_乱世魇华 谢谢!改了就对了 那为什么我线下测可以过啊。。。
by sky_silence_gdk @ 2017-11-01 18:51:20
@[\_\_乱世魇华](/space/show?uid=36075) 谢谢!改了就对了 那为什么我线下测可以过啊。。。
by sky_silence_gdk @ 2017-11-01 18:52:07
@[sky\_silence\_gdk](/space/show?uid=34094) 玄学问题
by karma @ 2017-11-01 19:00:22