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

What does faultyLocation mean? #1

Open
BEbillionaireUSD opened this issue Jan 27, 2024 · 1 comment
Open

What does faultyLocation mean? #1

BEbillionaireUSD opened this issue Jan 27, 2024 · 1 comment

Comments

@BEbillionaireUSD
Copy link

I assume the faultyLocation.txt contains the indices of faulty lines, but I found that the indices can refer to empty lines.
For example, in abc280_f/Java/42792826/faultyVersion.java, the faultyLocation.txt contains 165, but the 165th line is an empty line (if we index the first line with #1).

163. boolean unite(int u,int v,long c){
164. assert valid(u,v,c);
165.
166.     if ((u = root(u)) == (v = root(v)))
167.       return false;

Did I miss something or you have a different indexing manner?

@appmlk
Copy link
Owner

appmlk commented Jul 8, 2024

Your assumption about the faultyLocation.txt file is correct. In this version, the correct fix is to add code at line 165, which is why line 165 is marked as faulty

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

2 participants