Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Konano committed Feb 14, 2020
1 parent 24fc52a commit 4e25acf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ _deps
!*-sample.txt

.vscode
build
build*
release.*
6 changes: 4 additions & 2 deletions src/MultField/mult-choose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ int main() {
}
}
sort(q.begin(), q.end());
maxLayer = 0;
maxLayer = 1;
for (int i = 0; i < C_num; i++) layer[i] = 0;
for (int i = 0; i < (int)q.size(); i++) {
layer[q[i].second] = 1;
for (int j = 0; j < i; j++) if (layer[q[i].second] < layer[q[j].second] + 1) {
Expand Down Expand Up @@ -221,7 +222,8 @@ int main() {
}
}
sort(q.begin(), q.end());
maxLayer = 0;
maxLayer = 1;
for (int i = 0; i < C_num; i++) layer[i] = 0;
for (int i = 0; i < (int)q.size(); i++) {
layer[q[i].second] = 1;
for (int j = 0; j < i; j++) if (layer[q[i].second] < layer[q[j].second] + 1) {
Expand Down

0 comments on commit 4e25acf

Please sign in to comment.