跳到正文

休闲·娱乐

吾日三省吾身

OIer_sundingjia约 2 分钟
原文
文章信息与版本

文章信息

收录
2025年12月12日
更新
2026年5月5日
篇幅
约 2 分钟

版本

  1. v1当前

主要根据 这个帖子,还有其他东西一起整理。

吾日 ∞\infty 省吾身:

A.今日保龄乎?

  • #include<bits\stdc++.h> 了乎?
  • 撞关键字了乎1
保龄全家桶
C++
#include<bits/stdc++.h>
using namespace std;
int y0,y1,j0,j1,jn,yn,time,next,pipe,errno,stdin,stdout,stderr,EOF,NULL;
int main()
{
	//balabala
	return 0;
}
  • 缩进正确了乎2?
典型错误
C++
if(nai_long){
  for(auto i : a){
   if(i == "nailong"){
		printf("woshinailong");
	 }
	 else{//你以为这个 else 是和外层的 if 配对的?
		printf("wocaishinailong");
	 }//实际上因为没有大括号的 for 会抓取下面的一整个语句,这个 else 和后面的 if 被 for 抓起来硬凑一对了
  }
}
  • xxx.cpp.cpp 了乎?
  • feropen 了乎?
  • int mian() 了乎?
  • \\freopen() 了乎?
  • freopen 写错了乎?
  • 题目名称变复数了乎?
  • /*F**k CCF*/ 了乎?
  • 函数写返回值了乎?
RE 全家桶
C++
#include<bits/stdc++.h>
using namespace std;
int nailong(string s)
{
	cout<<s<<" is nailong\n";
}
int main()
{
	nailong("sundingjia");
}
  • DEBUG 删了乎?
  • define int long long 了乎?
挂分全家桶

脚注

  1. 引用自 https://www.luogu.com.cn/discuss/1183843 回到正文↩

  2. 引用自 https://www.luogu.com.cn/article/u99oll2a 回到正文↩

原文