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