Language: C++

//Decision's template
#include<cstdio>
#include<cstring>
#include<iostream>
#include<cstdlib>
#include<vector>
#include<queue>
#include<stack>
#include<algorithm>
#include<string>
#include<cmath>
#include<map>
#include<set>
#include<numeric>
using namespace std;

#define maxn 1000007
#define DP_maxn 16
#define INF 1000000007
#define mod 998244353
#define mst(s,k) memset(s,k,sizeof(s))
#define eps 1e-12
#define f_read freopen("std.in","r",stdin);
#define f_witten freopen("std.out","w",stdout);

typedef long long ll;

struct Edge{
    int from,to;
    Edge(int u,int v):from(u),to(v){}
};

/*-------------------------------template End--------------------------------*/

ll s;
ll x1,x2,y1,y2,x3,y3;

void getans() {
    x1 = sqrt(s);
    y2 = sqrt(s);
    x3 = y3 = 0;
    ll tmp = x1 * y2;
    tmp -= s;
    y1 = -1;
    x2 = -tmp;
    ll minn = x1;
    minn = min(minn,x2);
    minn = min(minn,y1);
    minn = min(minn,y2);
    if(minn < 0){
        minn = -minn;
        x1 += minn;
        x2 += minn;
        x3 += minn;
        y1 += minn;
        y2 += minn;
        y3 += minn;
    }
}

int main() {
    cin>>s;
    getans();
    cout<<x3<<" "<<y3<<" "<<x1<<" "<<y2<<" "<<x2<<" "<<y2<<endl;
    return 0;
}


Compiler output:
a.cc:36:10: error: 'll y1' redeclared as different kind of entity
   36 | ll x1,x2,y1,y2,x3,y3;
      |          ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cstdio:41,
                 from a.cc:2:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:1: note: previous declaration 'double y1(double)'
  257 | __MATHCALL (y1,, (_Mdouble_));
      | ^~~~~~~~~~
a.cc: In function 'void getans()':
a.cc:44:8: error: assignment of function 'double y1(double)'
   44 |     y1 = -1;
      |     ~~~^~~~
a.cc:48:15: error: no matching function for call to 'min(ll&, double (&)(double) noexcept)'
   48 |     minn = min(minn,y1);
      |            ~~~^~~~~~~~~
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:4:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:48:15: note:   deduced conflicting types for parameter 'const _Tp' ('long long int' and 'double(double) noexcept')
   48 |     minn = min(minn,y1);
      |            ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: '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:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61,
                 from a.cc:9:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:48:15: note:   mismatched types 'std::initializer_list<_Tp>' and 'long long int'
   48 |     minn = min(minn,y1);
      |            ~~~^~~~~~~~~
a.cc:55:12: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   55 |         y1 += minn;
      |         ~~~^~~~~~~
a.cc:55:12: error: assignment of read-only location 'y1'