为什么会报错
  • 板块灌水区
  • 楼主Igallta
  • 当前回复23
  • 已保存回复23
  • 发布时间2023/11/14 19:46
  • 上次更新2023/11/16 20:28:15
查看原帖
为什么会报错
813622
Igallta楼主2023/11/14 19:46
#include<bits/stdc++.h>
using namespace std;
const int N=2e5+5;
vector<int,pair<int,int>>tp;
int n,ll,rr;
struct Node{
	int sum,l,r;
}t[4*N]; 
signed main(){
	cin>>n>>ll>>rr;
	for(int i=1;i<=n;i++){
		int xx,yy;
		cin>>xx>>yy;
		pair<int,int>p=make_pair{xx,yy};
		tp.push_back(p);
	}
	return 0;
}

跟我说 [Error] no type named 'value_type' in 'struct std::pair<int, int>'

我都看不出来我哪错了

2023/11/14 19:46
加载中...