玄关
查看原帖
玄关
671208
control_our_own_life楼主2024/4/15 21:26

题目 我的代码:

#include <bits/stdc++.h>
using namespace std;
int t, a, b, c;

int main() {
	ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	cin >> t;
	while (t--) {
		cin >> a;
		getchar();
		cin >> b;
		getchar();
		cin >> c;
		getchar();
		if (a + b == c)
			cout << "Right!\n";
		else
			cout << "Wrong!\n";
	}
	return 0;
}/*
5
1+1=2
1+2=2
15+66=81
5+37=40
99+99=99
answer:
Right!
Wrong!
Right!
Wrong!
Wrong!
*/

问题:在linux里正常输出,可是到了windows就全输出“Wrong!”为什么(freopen已删)

2024/4/15 21:26
加载中...