Migration to another compiler version and older cmake
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <cmath>
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <cmath>
|
||||
|
||||
void print(std::vector<int>& gifts) {
|
||||
for (auto gift : gifts)
|
||||
@@ -16,7 +17,7 @@ namespace {
|
||||
std::sort(gifts.begin(), gifts.end());
|
||||
|
||||
for (int i = 0; i < k; ++i) {
|
||||
auto value = std::sqrtl(gifts[gifts.size() - 1]);
|
||||
auto value = std::sqrt(gifts[gifts.size() - 1]);
|
||||
if (value == 1)
|
||||
continue;
|
||||
auto it = std::upper_bound(gifts.begin(), gifts.end(), value);
|
||||
|
||||
Reference in New Issue
Block a user