rank corr

(cherry picked from commit 649e4dd913)
This commit is contained in:
antikvist 2020-06-20 19:18:23 +03:00 committed by Nikita Mikhaylov
parent 483409f2e1
commit ae17810201
2 changed files with 2 additions and 3 deletions

View File

@ -8,7 +8,6 @@
namespace ErrorCodes namespace ErrorCodes
{ {
extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH;
extern const int NOT_IMPLEMENTED; extern const int NOT_IMPLEMENTED;
} }

View File

@ -195,7 +195,7 @@ public:
while (j < size - 1) while (j < size - 1)
{ {
if (value[j].first == value[j + 1].first) if (tmp_values[j].first == tmp_values[j + 1].first)
{ {
// rank of (j + 1)th number // rank of (j + 1)th number
rank += 1; rank += 1;
@ -232,7 +232,7 @@ public:
while (j < size - 1) while (j < size - 1)
{ {
if (value[j].second == value[j + 1].second) if (tmp_values[j].second == tmp_values[j + 1].second)
{ {
// rank of (j + 1)th number // rank of (j + 1)th number
rank += 1; rank += 1;