Language: C++

#include<iostream>
#include<fstream>
#include<sstream>
#include<algorithm>
#include<cstdio>
#include<cctype>
#include<cassert>
#include<cmath>
#include<ctime>
#include<cstdlib>
#include<cstring>
#include<string>
#include<queue>
#include<vector>
#include<map>
#include<set>
#include<bitset>
#include<stack>
#include<iomanip>
#include<utility>
using namespace std;
#define mp make_pair
#define pb push_back
#define X first
#define Y second
#define rg register
#define il inline
#define lch(x) ((x)<<1)
#define rch(x) ((x)<<1^1)
#define eprintf(...) fprintf(stderr,__VA_ARGS__)
#define rep0(i,n) for(register int i=0;i<(n);++i)
#define per0(i,n) for(register int i=(n)-1;i>=0;--i)
#define rep(i,st,ed) for(register int i=(st);i<=(ed);++i)
#define per(i,ed,st) for(register int i=(ed);i>=(st);--i)
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int uint;
typedef double dbl;
typedef long double ldb;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
template<typename T> il T qmin(const T &a,const T &b){return a<b?a:b;}
template<typename T> il T qmax(const T &a,const T &b){return a>b?a:b;}
template<typename T> il void getmin(T &a,const T &b){if(a>b) a=b;}
template<typename T> il void getmax(T &a,const T &b){if(a<b) a=b;}
il void fileio(string s){
	freopen((s+".in").c_str(),"r",stdin);
	freopen((s+".out").c_str(),"w",stdout);
}
 
const int inf=(int)1e9+7;
const ll linf=(ll)1e17+7;
const int N=1e5+7;

int a[N],n;

il bool calc(){
int tot=0,num;
rep(i,1,n){
    tot+=(~a[i]&1);
    if(a[i]&1) num=a[i];
}
if(tot!=n-1){
    return tot&1;
}else{
    if(num==1) return tot&1;
    if(~n&1) return true;
    rep(i,1,n) a[i]/=2;
    int g=a[1];
    rep(i,2,n) g=__gcd(a[i],g);
    rep(i,1,n) a[i]/=g;
    return calc()^1;
}
}

int main(){
scanf(“%d”,&n);
int tot=0;
rep(i,1,n) scanf(“%d”,a+i),tot+=(~a[i]&1);
puts(calc()?”YES”:”NO”);
return 0;
}


Compiler output:
a.cc:77:7: error: extended character “ is not valid in an identifier
   77 | scanf(“%d”,&n);
      |       ^
a.cc:77:9: error: extended character ” is not valid in an identifier
   77 | scanf(“%d”,&n);
      |         ^
a.cc:79:18: error: extended character “ is not valid in an identifier
   79 | rep(i,1,n) scanf(“%d”,a+i),tot+=(~a[i]&1);
      |                  ^
a.cc:79:20: error: extended character ” is not valid in an identifier
   79 | rep(i,1,n) scanf(“%d”,a+i),tot+=(~a[i]&1);
      |                    ^
a.cc:80:13: error: extended character ” is not valid in an identifier
   80 | puts(calc()?”YES”:”NO”);
      |             ^
a.cc:80:13: error: extended character ” is not valid in an identifier
a.cc:80:19: error: extended character ” is not valid in an identifier
   80 | puts(calc()?”YES”:”NO”);
      |                   ^
a.cc:80:19: error: extended character ” is not valid in an identifier
a.cc: In function 'bool calc()':
a.cc:59:5: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   59 | rep(i,1,n){
      |     ^
a.cc:33:39: note: in definition of macro 'rep'
   33 | #define rep(i,st,ed) for(register int i=(st);i<=(ed);++i)
      |                                       ^
a.cc:68:9: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   68 |     rep(i,1,n) a[i]/=2;
      |         ^
a.cc:33:39: note: in definition of macro 'rep'
   33 | #define rep(i,st,ed) for(register int i=(st);i<=(ed);++i)
      |                                       ^
a.cc:70:9: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   70 |     rep(i,2,n) g=__gcd(a[i],g);
      |         ^
a.cc:33:39: note: in definition of macro 'rep'
   33 | #define rep(i,st,ed) for(register int i=(st);i<=(ed);++i)
      |                                       ^
a.cc:71:9: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   71 |     rep(i,1,n) a[i]/=g;
      |         ^
a.cc:33:39: note: in definition of macro 'rep'
   33 | #define rep(i,st,ed) for(register int i=(st);i<=(ed);++i)
      |                                       ^
a.cc: In function 'int main()':
a.cc:77:7: error: '\U0000201c' was not declared in this scope
   77 | scanf(“%d”,&n);
      |       ^
a.cc:77:9: error: 'd\U0000201d' was not declared in this scope
   77 | scanf(“%d”,&n);
      |         ^~
a.cc:79:5: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
   79 | rep(i,1,n) scanf(“%d”,a+i),tot+=(~a[i]&1);
      |     ^
a.cc:33:39: note: in definition of macro 'rep'
   33 | #define rep(i,st,ed) for(register int i=(st);i<=(ed);++i)
      |                                       ^
a.cc:80:13: error: '\U0000201dYES\U0000201d' was not declared in this scope
   80 | puts(calc()?”YES”:”NO”);
      |             ^~~~~
a.cc:80:19: error: '\U0000201dNO\U0000201d' was not declared in this scope
   80 | puts(calc()?”YES”:”NO”);
      |                   ^~~~