Language: C++

#include <bits/stdc++.h>
using namespace std;

int N1,N2,N3,N4;
cin>>N1>>N2>>N3>>N4;

if(N1==1&&N2==9&&N3==7&&N4==4){
cout<<YES<<endl;
}

 else if(N1==1&&N2==9&&N3==4&&N4==7){
cout<<YES<<endl;
}

 else if(N1==1&&N2==7&&N3==9&&N4==4){
cout<<YES<<endl;
}

 else if(N1==1&&N2==7&&N3==4&&N4==9){
cout<<YES<<endl;
}

 else if(N1==1&&N2==4&&N3==9&&N4==7){
cout<<YES<<endl;
}

 else if(N1==1&&N2==4&&N3==7&&N4==9){
cout<<YES<<endl;
}

 else if(N1==1&&N2==4&&N3==9&&N4==7){
cout<<YES<<endl;
}

 else if(N1==4&&N2==9&&N3==7&&N4==1){
cout<<YES<<endl;
}

 else if(N1==4&&N2==9&&N3==7&&N4==1){
cout<<YES<<endl;
}

 else if(N1==4&&N2==9&&N3==7&&N4==1){
cout<<YES<<endl;
}

 else if(N1==4&&N2==9&&N3==1&&N4==7){
cout<<YES<<endl;
}

 else if(N1==4&&N2==7&&N3==9&&N4==1){
cout<<YES<<endl;
}

 else if(N1==4&&N2==7&&N3==1&&N4==9){
cout<<YES<<endl;
}

 else if(N1==4&&N2==1&&N3==9&&N4==7){
cout<<YES<<endl;
}

 else if(N1==4&&N2==1&&N3==7&&N4==9){
cout<<YES<<endl;
}

 else if(N1==7&&N2==9&&N3==4&&N4==1){
cout<<YES<<endl;
}

 else if(N1==7&&N2==9&&N3==1&&N4==4){
cout<<YES<<endl;
}

 else if(N1==7&&N2==4&&N3==9&&N4==1){
cout<<YES<<endl;
}

 else if(N1==7&&N2==4&&N3==1&&N4==9){
cout<<YES<<endl;
}

 else if(N1==7&&N2==1&&N3==9&&N4==4){
cout<<YES<<endl;
}

 else if(N1==7&&N2==1&&N3==4&&N4==9){
cout<<YES<<endl;
}

 else if(N1==9&&N2==7&&N3==4&&N4==1){
cout<<YES<<endl;
}

 else if(N1==9&&N2==7&&N3==1&&N4==4){
cout<<YES<<endl;
}

 else if(N1==9&&N2==4&&N3==7&&N4==1){
cout<<YES<<endl;
}

 else if(N1==9&&N2==4&&N3==1&&N4==7){
cout<<YES<<endl;
}

 else if(N1==9&&N2==1&&N3==7&&N4==4){
cout<<YES<<endl;
}

 else if(N1==9&&N2==1&&N3==4&&N4==7){
cout<<YES<<endl;
}

 else 
         cout<<NO<<endl;

}





Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin>>N1>>N2>>N3>>N4;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if(N1==1&&N2==9&&N3==7&&N4==4){
      | ^~
a.cc:11:2: error: expected unqualified-id before 'else'
   11 |  else if(N1==1&&N2==9&&N3==4&&N4==7){
      |  ^~~~
a.cc:15:2: error: expected unqualified-id before 'else'
   15 |  else if(N1==1&&N2==7&&N3==9&&N4==4){
      |  ^~~~
a.cc:19:2: error: expected unqualified-id before 'else'
   19 |  else if(N1==1&&N2==7&&N3==4&&N4==9){
      |  ^~~~
a.cc:23:2: error: expected unqualified-id before 'else'
   23 |  else if(N1==1&&N2==4&&N3==9&&N4==7){
      |  ^~~~
a.cc:27:2: error: expected unqualified-id before 'else'
   27 |  else if(N1==1&&N2==4&&N3==7&&N4==9){
      |  ^~~~
a.cc:31:2: error: expected unqualified-id before 'else'
   31 |  else if(N1==1&&N2==4&&N3==9&&N4==7){
      |  ^~~~
a.cc:35:2: error: expected unqualified-id before 'else'
   35 |  else if(N1==4&&N2==9&&N3==7&&N4==1){
      |  ^~~~
a.cc:39:2: error: expected unqualified-id before 'else'
   39 |  else if(N1==4&&N2==9&&N3==7&&N4==1){
      |  ^~~~
a.cc:43:2: error: expected unqualified-id before 'else'
   43 |  else if(N1==4&&N2==9&&N3==7&&N4==1){
      |  ^~~~
a.cc:47:2: error: expected unqualified-id before 'else'
   47 |  else if(N1==4&&N2==9&&N3==1&&N4==7){
      |  ^~~~
a.cc:51:2: error: expected unqualified-id before 'else'
   51 |  else if(N1==4&&N2==7&&N3==9&&N4==1){
      |  ^~~~
a.cc:55:2: error: expected unqualified-id before 'else'
   55 |  else if(N1==4&&N2==7&&N3==1&&N4==9){
      |  ^~~~
a.cc:59:2: error: expected unqualified-id before 'else'
   59 |  else if(N1==4&&N2==1&&N3==9&&N4==7){
      |  ^~~~
a.cc:63:2: error: expected unqualified-id before 'else'
   63 |  else if(N1==4&&N2==1&&N3==7&&N4==9){
      |  ^~~~
a.cc:67:2: error: expected unqualified-id before 'else'
   67 |  else if(N1==7&&N2==9&&N3==4&&N4==1){
      |  ^~~~
a.cc:71:2: error: expected unqualified-id before 'else'
   71 |  else if(N1==7&&N2==9&&N3==1&&N4==4){
      |  ^~~~
a.cc:75:2: error: expected unqualified-id before 'else'
   75 |  else if(N1==7&&N2==4&&N3==9&&N4==1){
      |  ^~~~
a.cc:79:2: error: expected unqualified-id before 'else'
   79 |  else if(N1==7&&N2==4&&N3==1&&N4==9){
      |  ^~~~
a.cc:83:2: error: expected unqualified-id before 'else'
   83 |  else if(N1==7&&N2==1&&N3==9&&N4==4){
      |  ^~~~
a.cc:87:2: error: expected unqualified-id before 'else'
   87 |  else if(N1==7&&N2==1&&N3==4&&N4==9){
      |  ^~~~
a.cc:91:2: error: expected unqualified-id before 'else'
   91 |  else if(N1==9&&N2==7&&N3==4&&N4==1){
      |  ^~~~
a.cc:95:2: error: expected unqualified-id before 'else'
   95 |  else if(N1==9&&N2==7&&N3==1&&N4==4){
      |  ^~~~
a.cc:99:2: error: expected unqualified-id before 'else'
   99 |  else if(N1==9&&N2==4&&N3==7&&N4==1){
      |  ^~~~
a.cc:103:2: error: expected unqualified-id before 'else'
  103 |  else if(N1==9&&N2==4&&N3==1&&N4==7){
      |  ^~~~
a.cc:107:2: error: expected unqualified-id before 'else'
  107 |  else if(N1==9&&N2==1&&N3==7&&N4==4){
      |  ^~~~
a.cc:111:2: error: expected unqualified-id before 'else'
  111 |  else if(N1==9&&N2==1&&N3==4&&N4==7){
      |  ^~~~
a.cc:115:2: error: expected unqualified-id before 'else'
  115 |  else
      |  ^~~~
a.cc:118:1: error: expected declaration before '}' token
  118 | }
      | ^