评测姬の语言
Accepted
Wrong Answer
Time Limit Exceeded
Memory Limit Exceeded
Runtime Error
Exit code: 11
访问越界/无意义运算

一般是语法上没问题,但是运行的时候有问题的情况,
例如拿一个数除以一个0,就会出现runtime error。
我估计跟你建立的数组大小关系不大,而是你非法调用了不在你数组范围内的数,
例如 明明数组size是5, 你却把值写到了 array [5] (超出范围)里面,类似这种,有可能发生runtime error
建议检查一下你的 for 或者 while loop~~
————asdsb000 ZOL问答
Warning: control reaches end of non-void function
/sandbox/source/main.cpp: In function ‘bool dfs(int, int, int)’:
/sandbox/source/main.cpp:34:1: warning: control reaches end of non-void function [-Wreturn-type]
34 | }
| ^
本应带有返回值的函数可能最终没有返回值。(咕咕)
一些精心设计的样例可能刚好测不出这个问题╮(╯▽╰)╭
加上相应的return就好啦