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