跳到正文

个人记录

原神编译器

5ab_juruo约 1 分钟
原文
文章信息与版本

文章信息

发布
2024年4月11日
收录
2025年12月12日
更新
2026年10月27日
篇幅
约 1 分钟
获赞
8

版本

  1. v1当前

下面这段代码在 g++ 开 -Wall -Wextra -Wshadow 下不会产生任何 warning:

C++
#include <iostream>
using namespace std;

signed main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	
	int n, s = n; // n is uninitialized
	
	cin >> n;
	cout << s << endl;
	
	return 0;
}
原文
存档评论2 条抓取于