sagmentation fault

P1225 黑白棋游戏

准确的说,是DFS sagmentation fault了 ```cpp void DFS(string nowstr,int dep){ if(nowstr==ed){ print(); exit(0); } if(dep>ans) return; for(int i=1;i<=n;i++) for(int j=1;j<=n;j++){ get(nowstr); if(!now[i][j]) continue; for(int d=0;d<4;d++) if(CHECK&&!now[tx][ty]){ now[tx][ty]=1;now[i][j]=0; string newstr=gh; now[tx][ty]=0;now[i][j]=1; if(h[newstr]) continue; h[newstr]=true; pre[++cnt]={i,j,tx,ty}; DFS(newstr,dep+1); cnt--; } } } ```
by Kniqht @ 2022-09-10 22:28:44


有些东西我为了方便宏定义了
by Kniqht @ 2022-09-10 22:29:17


@[qi136](/user/315205) 搜遍全网找不到什么是 sagmentation fault。
by ppip @ 2022-09-10 22:32:21


@[ppip](/user/374433) 咦?怎么会呢,就是段错误啊
by Kniqht @ 2022-09-10 22:33:42


@[qi136](/user/315205) 拼写错了,应该是segmentation fault(
by bykem @ 2022-09-10 22:34:14


@[wsfxk](/user/376161) 呃呃呃,好吧抱歉,大佬能帮我看看吗?
by Kniqht @ 2022-09-10 22:34:53


|