再求链表
  • 板块灌水区
  • 楼主Digital_Sunrise
  • 当前回复1
  • 已保存回复1
  • 发布时间2022/10/4 22:53
  • 上次更新2023/10/27 08:46:09
查看原帖
再求链表
413301
Digital_Sunrise楼主2022/10/4 22:53
#include <bits/stdc++.h>
using namespace std;
const int _ = 2e5 + 5;

struct NodeList
{
	int val;
	NodeList* pre;
	NodeList* nxt;
	NodeList(){pre = nxt = nullptr,val = 0;}
};

int n;
int cnt;
int sum;

int main()
{
	NodeList* List[_];
	NodeList* End[_];
//	End[0] = new NodeList;
	List[0] = new NodeList;
	return 0;
}

为什么注释掉21行程序能正常结束,而取消注释就会炸掉

2022/10/4 22:53
加载中...