My issue
My code
//-----------------------SJ-------------------
#include <bits/stdc++.h>
#include <iostream>
#include <string>
using namespace std;
// define
# define ll long long
# define pb push_back
# define YES cout << "YES" << endl;
# define NO cout << "NO" << endl;
# define endl '\n'
# define modulo % (1000000007) //const ll Modulo = 1e9+7;
# define cinarr(arr,n) for(auto i = 0 ; i < n ; i++) cin >> arr[i];
# define cinvec(v,n) for(auto i = 0; i < n; i++) {int temp; cin >> temp; v.pb(temp);}
# define coutarr(arr) for(auto &a:arr) cout << a << " "; cout << "\n";
# define coutvec(v) for(auto i : v) cout << i << " "; cout << "\n";
//# define itrover({x}) for (auto n : {x}) cout << n << " "; cout << endl;
# define sorta(arr,n) sort(arr, arr + n)
# define sortd(arr,n) sort(arr, arr + n, greater<int>())
# define cntsetbits(x,cntx) while(x != 0){ x = (x & (x - 1)); cntx++; }
//--------------------------------------------
int main() {
ll d;
cin >> d;
if ((d & 1) == 1) cout << -1 << endl;
else{
cout << 0 << " " << d << endl;
cout << d << " " << 0 << endl;
cout << 0 << " " << -d << endl;
cout << -d << " " << 0 << endl;
}
return 0;
}
Problem Link: DISTCON Problem - CodeChef
// whats wrong with this