pbds 配对堆 CE 求调
  • 板块学术版
  • 楼主昒昕
  • 当前回复7
  • 已保存回复7
  • 发布时间2022/3/22 19:36
  • 上次更新2023/10/28 05:55:51
查看原帖
pbds 配对堆 CE 求调
84132
昒昕楼主2022/3/22 19:36

RT,感觉跟某度上的一模一样,主要代码:

#include <bits/stdc++.h>
#include <ext/pb_ds/priority_queue.hpp>
using namespace __gnu_pbds;
using namespace std;
typedef long long ll;
__gnu_pbds::priority_queue<ll,greater<ll>,pairing_heap_tag> heap;

在你谷IDE上报错信息为:

/tmp/compiler_jesxsrp_/src:20:61: 错误:invalid declarator before ‘heap’ 20 | __gnu_pbds::priority_queue<ll,greater<ll>,pairing_heap_tag> heap;

求指点/kel

2022/3/22 19:36
加载中...