读入都读不进去,怎么回事啊,哇哇哇哇
查看原帖
读入都读不进去,怎么回事啊,哇哇哇哇
1435692
difficultlong楼主2025/2/1 21:50
#include<bits/stdc++.h>
using namespace std;
struct Node{
	int value;
	Node *next; 
}*head;

int main(){
	int q;
	head->value=1;
	scanf("%d",&q);
	for(int i=1;i<=q;i++){
		int a;
		scanf("%d",&a);
		Node x,y;
		if(a==1){
			scanf("%d%d",&x.value,&y.value);
			
		}
		else
			if(a==2){
				scanf("%d",&x.value);
				
			}
	}
	return 0;
}

为什么无法读入啊

2025/2/1 21:50
加载中...