my $value = $job->problem->value // LEVEL_VALUES->{$job->problem->level};
my $factor = $job->result ? 0 : 1;
$factor = $1 / 100 if $job->result_text =~ /(\d+)/;
- $scores{$job->owner->id}{$job->problem->id} = int ($factor * calc_score ($value, $time, $tries{$job->owner}{$job->problem}, $ct->stop - $ct->start));
+ $scores{$job->owner->id}{$job->problem->id} = int ($factor * calc_score ($value, $time, $tries{$job->owner->id}{$job->problem->id}, $ct->stop - $ct->start));
$tries{$job->owner->id}{$job->problem->id}++;
} else {
no warnings 'numeric';