Language: C++

#include<iostream>
#include<cmath>
using namespace std;
long long k, min, max, x_y, x, y; double mid; long long fib[10000000];
int main() {
	cin >> k;
	x_y = (long long)(2.0*sqrt(k - 0.01) - 1.0);
	max = (long long)(pow((1.0* x_y + 2) / 2, 2));
	min = (long long)(pow((1.0* x_y + 1) / 2, 2)) + 1;
	mid = 1.0*(max + min) / 2;
	if (k <= mid) { y = (k - min) * 2; }
	else { y = (max - k) * 2 + 1; }
	x = x_y - y;

	fib[0] = 1; fib[1] = 2;
	for (int i = 2; i <= x_y; i++) {
		fib[i] = (fib[i - 1] + fib[i - 2]) % 1000000007;
	}
	cout << (long long)(fib[y] * fib[x]) % 1000000007 << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: reference to 'max' is ambiguous
    8 |         max = (long long)(pow((1.0* x_y + 2) / 2, 2));
      |         ^~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:4:19: note:                 'long long int max'
    4 | long long k, min, max, x_y, x, y; double mid; long long fib[10000000];
      |                   ^~~
a.cc:9:9: error: reference to 'min' is ambiguous
    9 |         min = (long long)(pow((1.0* x_y + 1) / 2, 2)) + 1;
      |         ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:                 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:4:14: note:                 'long long int min'
    4 | long long k, min, max, x_y, x, y; double mid; long long fib[10000000];
      |              ^~~
a.cc:10:20: error: reference to 'max' is ambiguous
   10 |         mid = 1.0*(max + min) / 2;
      |                    ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:4:19: note:                 'long long int max'
    4 | long long k, min, max, x_y, x, y; double mid; long long fib[10000000];
      |                   ^~~
a.cc:10:26: error: reference to 'min' is ambiguous
   10 |         mid = 1.0*(max + min) / 2;
      |                          ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:                 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:4:14: note:                 'long long int min'
    4 | long long k, min, max, x_y, x, y; double mid; long long fib[10000000];
      |              ^~~
a.cc:11:34: error: reference to 'min' is ambiguous
   11 |         if (k <= mid) { y = (k - min) * 2; }
      |                                  ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:                 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:4:14: note:                 'long long int min'
    4 | long long k, min, max, x_y, x, y; double mid; long long fib[10000000];
      |              ^~~
a.cc:12:21: error: reference to 'max' is ambiguous
   12 |         else { y = (max - k) * 2 + 1; }
      |                     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:4:19: note:                 'long long int max'
    4 | long long k, min, max, x_y, x, y; double mid; long long fib[10000000];
      |                   ^~~