Language: C++

///*BY ME*///
#include <bits/stdc++.h>

#define y1 sijf
#define RampageRead ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);mt19937 rng(std::chrono::system_clock::now().time_since_epoch().count())
#define all(v) (v).begin(),(v).end()
#define pb push_back
#define F first
#define S second
#define endl '\n'
#define flsh cout<<flush
typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
typedef double dd;
const ll MOD=1e9+7;

int n,a[101],sum,mn,mx;
int main()
{
    RampageRead;
    cin>>n;
    if(n>2) mn=1+(n-1)*2;
    else mn=2;
    for(int i=n-1;i>=n/2;i--) mx+=i*2;
    if(n&1) mx-=(n/2);
    //cout<<mn<<" "<<mx<<endl;
    for(int i=0;i<n;i++)
    {
        cin>>a[i];
        sum+=a[i];
    }
    sort(a,a+n);
    for(int i=2;i<n;i++)
    if(a[i-1]+1<a[i] or mx<sum or mn>sum)
        {
            cout<<"Impossible";
            return 0;
        }
    cout<<"Possible";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'ios_base' has not been declared
    5 | #define RampageRead ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);mt19937 rng(std::chrono::system_clock::now().time_since_epoch().count())
      |                     ^~~~~~~~
a.cc:21:5: note: in expansion of macro 'RampageRead'
   21 |     RampageRead;
      |     ^~~~~~~~~~~
a.cc:5:50: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | #define RampageRead ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);mt19937 rng(std::chrono::system_clock::now().time_since_epoch().count())
      |                                                  ^~~
a.cc:21:5: note: in expansion of macro 'RampageRead'
   21 |     RampageRead;
      |     ^~~~~~~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:61: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 | #define RampageRead ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);mt19937 rng(std::chrono::system_clock::now().time_since_epoch().count())
      |                                                             ^~~~
a.cc:21:5: note: in expansion of macro 'RampageRead'
   21 |     RampageRead;
      |     ^~~~~~~~~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:73: error: 'mt19937' was not declared in this scope; did you mean 'std::mt19937'?
    5 | #define RampageRead ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);mt19937 rng(std::chrono::system_clock::now().time_since_epoch().count())
      |                                                                         ^~~~~~~
a.cc:21:5: note: in expansion of macro 'RampageRead'
   21 |     RampageRead;
      |     ^~~~~~~~~~~
In file included from /usr/include/c++/14/random:48,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:179:
/usr/include/c++/14/bits/random.h:1717:37: note: 'std::mt19937' declared here
 1717 |     0xefc60000UL, 18, 1812433253UL> mt19937;
      |                                     ^~~~~~~
a.cc:33:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
   33 |     sort(a,a+n);
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~