Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird Crash for a particular piece of code. #412

Open
aenlemmea opened this issue May 4, 2024 · 5 comments
Open

Weird Crash for a particular piece of code. #412

aenlemmea opened this issue May 4, 2024 · 5 comments

Comments

@aenlemmea
Copy link

aenlemmea commented May 4, 2024

#include <map>
#include <set>
#include <list>
#include <cmath>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <unordered_map>

#define all(x) (x).begin(), (x).end()
#define arr_all(x, y) x, x + y
#define F(i, start, n) for (auto i = start-(start > n); (i < n)^(start > n); i += 1-2*(start > n))
#define done return;
#define puni(x) int x; cin >> x;

#define fin "\n"

using namespace std;

void solve() {
	pair<int, int> A, B, F;
	cin >> A.first >> A.second;
	cin >> B.first >> B.second;
	cin >> F.first >> F.second;
	
	int ans = abs(A.first - B.first) + abs(A.second - B.second);
}

int main() {
	
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	
	int t;
	cin >> t;
	while (t--) {
		solve();
	}
	return 0;
}

If I try to add the line if (A.first == F. ... after int ans = ... then the IDE instantly crashes. It seems like something regarding showing command completions for F is failing. Just doing F. itself crashes RPCPP.

I am on Windows. Portable edition. Version: 2.26.2249 (x86_64)

@Ltabsyy
Copy link
Contributor

Ltabsyy commented May 4, 2024

这个在最新版已经修复了,等2.27/3.0正式版即可。
This has been fixed in the latest version, wait for the official version of 2.27/3.0.

@aenlemmea
Copy link
Author

Can I get an early CI artifact build because the crashes are happening too often now. I lost a few files completely due to this bug.

我能否获得早期的 CI 工件构建,因为现在崩溃发生得太频繁了。由于这个错误,我完全丢失了一些文件。

@royqh1979
Copy link
Owner

royqh1979 commented May 11, 2024

Can I get an early CI artifact build because the crashes are happening too often now. I lost a few files completely due to this bug.

我能否获得早期的 CI 工件构建,因为现在崩溃发生得太频繁了。由于这个错误,我完全丢失了一些文件。

You can get the newest build from https://github.com/royqh1979/RedPanda-CPP/actions

@aenlemmea
Copy link
Author

aenlemmea commented May 11, 2024 via email

@royqh1979
Copy link
Owner

royqh1979 commented May 12, 2024

I did search there but couldn't find a link to any exe. I will look again I guess.

You can click into the “build” workflow,then click into the latest finished workflow run.
Scroll down to the bottom of the page, you'll find the artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants