哥们,认真的吗。
  • 板块P1001 A+B Problem
  • 楼主theb0t
  • 当前回复11
  • 已保存回复11
  • 发布时间2024/9/26 14:59
  • 上次更新2024/9/26 19:32:34
查看原帖
哥们,认真的吗。
997236
theb0t楼主2024/9/26 14:59

语言选择C++11,不要加O2,AC了。

或许局部变量存储位置一样?

#include<bits/stdc++.h>
using namespace std;
void A()
{
	int a, b;
	scanf("%d%d", &a, &b);
}
void B()
{
	int a, b;
	printf("%d", a + b);
}
int main()
{
	A(), B();
	return 0;
}
2024/9/26 14:59
加载中...