c++ - 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)
有人可以帮助我,因为我无法理解,而且代码编译和运行良好。
解决方案
推荐阅读
- javascript - Discord.js 一个在用户选择的频道中说些什么的机器人
- sql-server - 在 sql server 2012 中自动生成脚本
- maven - 无法在 maven (IntelliJ) 中下载旧版本源
- hadoop - Flume HDFS Sink 写入错误“无协议:值”
- javascript - 将变量推入数组中的次要子对象
- windows - Ansible Windows Kerberos 身份验证从服务器返回错误的 HTTP 响应代码 500
- swift - 快速编写委托参考的不同选项
- android - 如何显示串口蓝牙的rssi?
- ios - Uvicorn 服务器意外关闭
- wordpress - 如何在 WooCommerce 电子邮件中在一行中显示名字和姓氏