运行
g++ -o a a.cpp && ./a
g++ b.cpp -o b && ./b
g++ c.cpp -o c && ./c
freopen
#ifndef ONLINE_JUDGE
freopen("in.txt","r",stdin);
freopen("out.txt","w",stdout);
#endif
快读
template<typename Tp> inline void read(Tp&x)
{
x=0;register bool z=1;
register char c=getchar();
for(;c<'0'||c>'9';c=getchar()) if(c=='-') z=0;
for(;'0'<=c&&c<='9';c=getchar()) x=(x<<1)+(x<<3)+(c^48);
x=(z?x:~x+1);
}
(解绑cin、cout)
std::ios::sync_with_stdio(false);
std::cin.tie(0);std::cout.tie(0);
标签:std,&&,VsCode,++,freopen,cpp,运行,cout
From: https://www.cnblogs.com/Charlieljk/p/17844885.html