首页 > 解决方案 > vs 代码中的智能感知在 pbds 中使用关键字时显示错误

问题描述

你好这是我的代码:

/*

Set time here:
    Start: 2021-06-12 22:09:26
    End(when AC):

*/


/*
Author: Shobhit Tewari
*/

#include<bits/stdc++.h>
using namespace std;

#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<class T> using oset =  tree<T, null_type, less<T>, rb_tree_tag, tree_order_statistics_node_update>;


#define int long long
#define null 0
#define fio ios_base::sync_with_stdio(false); cin.tie(null);

#define pb push_back
#define sz(v) (int)(v.size())
#define all(v) v.begin(), v.end()

const int mod = 1e9 +7;
const int infinity = INT32_MAX;
const double pi = 3.1415926535897932384626433832795;

void solve(){
    
}

signed main(){
    fio;
    int t=1;
    //cin >> t;
    while(t--){
        solve();
    }
    return 0;
}

VS 代码中的 Intellisense 在 oset 下显示一条波浪线(错误)using

对于在 oset 中的使用说:expected a declarationC/C++(169)

有人可以帮助我,因为我无法理解,而且代码编译和运行良好。

标签: c++visual-studio-codeintellisense

解决方案


推荐阅读