criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
        int a=sc.nextInt();
        int b=sc.nextInt();
		int c=sc.nextInt();
		
    
 	if(a==b==c){
    		System.out.println("No");
    	}else if(a==b){
     		System.out.println("Yes");
   	 }else if(b==c){
    	System.out.println("Yes");
    }else if(c==a){

    	System.out.println("Yes");
    }else{
    	System.out.println("No");
    }
    }
}

Compiler output:
Main.java:11: error: incomparable types: boolean and int
 	if(a==b==c){
 	       ^
1 error
Language: C++

include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int a,b,c;
    cin >> a  >> b >> c;
    if(a==b||a==c||b==c)
        cout << "Yes";
    else
        cout << "No";
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> a  >> b >> c;
      |     ^~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "Yes";
      |         ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "No";
      |         ^~~~
Language: C++

a,b,c = map(int,input().split())
if a == b and c != a:
    print("Yes")
elif b == c and c != a:
    print("Yes")
elif c == a and a != b:
    print("Yes")
else:
    print('No')

Compiler output:
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c = map(int,input().split())
      | ^
Language: C++

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

int main(){
  int a, b, c;
  cin>>a >>b >>c;
  if(a==b==c || (a!=b && b!=c &&c!=a)){
    cout<<"No"<<endl;
    return 0;
  }
  
  cout<<"Yes"<<endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>a >>b >>c;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"No"<<endl;
      |     ^~~~
a.cc:8:17: error: 'endl' was not declared in this scope
    8 |     cout<<"No"<<endl;
      |                 ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<"Yes"<<endl;
      |   ^~~~
a.cc:12:16: error: 'endl' was not declared in this scope
   12 |   cout<<"Yes"<<endl;
      |                ^~~~
Language: C++

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
#define mod 1000000007
#define lim 1000000000000000007
#define lim1 18446744073709551615  //Unsigned
#define sq(a) ((a)*(a))
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
#define mms(v,i) memset(v,i,sizeof(v))
#define pb push_back
#define pf push_front
#define ppb pop_back
#define ppf pop_front
#define REP(i,a,b) for (int i = a; i <= b; i++)
#define REPN(i,a,b) for (int i = a; i >= b; i--)
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
typedef pair<int,int> pi;
typedef pair<ll,ll> PL;
typedef pair<ll,int> PLI;
typedef pair<int,ll> PIL;
typedef pair<int,pair<int,int> > pii;
typedef pair<double,double> pdd;
typedef tree<int,null_type,less<int>,rb_tree_tag,tree_order_statistics_node_update> indexed_set;
ll power(ll a,ll b) {
    if (b==0) return 1;
    ll c = power(a,b>>1);
    c = (c*c)%mod;
    if (b&1) return (c*a)%mod;
    return c;
}
ll powerwithoutmod(ll a,ll b) {
    if (b==0) return 1;
    ll c = power(a,b>>1);
    c = (c*c);
    if (b&1) return (c*a);
    return c;
}
ll gcdll(ll a,ll b) {
    if (b==0) return a;
    return gcdll(b,a%b);
}
int gcd(int a,int b) {
    if (b==0) return a;
    return gcd(b,a%b);
}

struct custom_hash {
    static uint64_t splitmix64(uint64_t x) {
        // http://xorshift.di.unimi.it/splitmix64.c
        x += 0x9e3779b97f4a7c15;
        x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
        x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
        return x ^ (x >> 31);
    }

    size_t operator()(uint64_t x) const {
        static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
        return splitmix64(x + FIXED_RANDOM);
    }
};

const int N = (int)1e5+5;
const int Q = 301;
const int logN = 16;

void solve() {
	int a,b,c;
  	cin>>a>>b>>c;
  	if (a!=b && a!=c && b!=c) {
    	cout<<<"No";
      return;
    }
  	else if (a==b && a==c) {
    	cout<<<"No";
      return;
    }
  	cout<<"Yes";
}
int main() {
    //freopen("output.txt","r",stdin);
    //freopen("output.txt","w",stdout);

    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int T=1;
    //cin>>T;
    REP(TC,1,T) {
        //cout<<"Case #"<<TC<<": ";
        solve();
        cout<<"\n";
    }
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:73:15: error: expected primary-expression before '<' token
   73 |         cout<<<"No";
      |               ^
a.cc:77:15: error: expected primary-expression before '<' token
   77 |         cout<<<"No";
      |               ^
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <algorithm> // sort
#include <unistd.h>
#include <bits/stdc++.h>

static const ll INF = 1000000000000000000LL;

#define pii pair<int,int>
#define vl vector<ll>
#define vvl vector< vector<ll> >
#define REP(i, n) for (long long i = 0; i < (n); i++) 
#define all(c) c.begin(),c.end()
#define fio() cin.tie(0); ios::sync_with_stdio(false);
using namespace std;


typedef long long ll;
static const ll MOD = 1000000007;

int main()
{
    int a,b,c;
    cin >> a >> b >> c;
    string res = "No";

    if(a == b && b != c)res = "Yes";
    if(b == c && c != a)res = "Yes";
    if(c == a && a != b)res = "Yes";

    cout << res << endl;

    return 0;
}

Compiler output:
a.cc:9:14: error: 'll' does not name a type; did you mean 'vl'?
    9 | static const ll INF = 1000000000000000000LL;
      |              ^~
      |              vl
Language: C++

A = list(map(int,input().split()))
A.sort()
if (A[0]==A[1] and A[1]!=A[2]) or (A[1]==A[2] and A[1]!=A[0]):
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A = list(map(int,input().split()))
      | ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b,c;cin>>a>>b>>c;
  string ans;
  if (a==b&&b!=c) ans="Yes";
  else if (b==c&&c!=a) ans="Yes";
  else if (c==a&&a!=b) ans="Yes":
  else ans="No";
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: expected ';' before ':' token
    9 |   else if (c==a&&a!=b) ans="Yes":
      |                                 ^
      |                                 ;
Language: C++

#include <iostream>
using namespace std; 
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
	
	int a[3];
	cin>>a[0]>>a[1]>>a[2];
	sort(a,a+2);
	if(a[0]==a[2])
	{
		printf("NO");
		return 0;
	}
	if(a[0]==a[1])
	{
		printf("YES");
	}
	if(a[1]==a[2])
	{
		printf("YES");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:9:9: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |         sort(a,a+2);
      |         ^~~~
      |         short
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  int A;
  cin >> A >> B >> C;
  int flag = 0;
  if(A == B && B != C)flag = 1;
  if(A == C && B != C)flag = 1;
  if(B == C && A != C)flag = 1;
  cout << (flag?"YES":"NO") << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'B' was not declared in this scope
    5 |   cin >> A >> B >> C;
      |               ^
a.cc:5:20: error: 'C' was not declared in this scope
    5 |   cin >> A >> B >> C;
      |                    ^
Language: C

#include <stdio.h>
main()
{
  int a,b,c;
  scanf("%d %d %d", &a, &b, &c);
  int i=0;
  if(a==b && a!=c) printf("Yes");
  else if(a==c && a!=b) printf("Yes");
  else if(b==c && a!=b) printf("Yes");
  else printf("No")

  return 0;
}
  

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:10:20: error: expected ';' before 'return'
   10 |   else printf("No")
      |                    ^
      |                    ;
   11 | 
   12 |   return 0;
      |   ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a ,b , c;
    cin >> a >> b > >c;
    if(a == b && c != a)
        cout << "Yes";
    else if(a == c && b != a)
        cout << "Yes";
    else if(b == c && c != a)
        cout <<"Yes";
    else cout << "No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected primary-expression before '>' token
    5 |     cin >> a >> b > >c;
      |                     ^
Language: C++

#include<bits/stdc++.h>
using namespace std; 
int main(){
	int a,b,c;
	cin>>a>>>b>>c;
	int t=(a==b)+(a==c)+(b==c);
	if(t==1)cout<<"Yes";
	else cout<<"No"; 
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: expected primary-expression before '>' token
    5 |         cin>>a>>>b>>c;
      |                 ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
#include <vector>
#include <algorithm>
typedef long long int ll;
using namespace std;
#define P 1000000007
#define rep(i,n) for(i=0;i<n;++i)
#define repp(i,a,n) for(i=a;i<n;++i)
#define repr(i,a,n) for(i=a;i>n;--i)

ll binpowmod(ll a, ll b, ll m) {
    a %= m;
    ll res = 1;
    while (b > 0) {
        if (b & 1)
            res = res * a % m;
        a = a * a % m;
        b >>= 1;
    }
    return res;
}

ll binpow(ll a, ll b) {
    ll res = 1;
    while (b > 0) {
        if (b & 1)
            res = res * a;
        a = a * a;
        b >>= 1;
    }
    return res;
}

ll modInverse(ll n, ll p)
{
    return binpowmod(n, p-2, p);
}

int main() 
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll a,b,c;
    string a;
    cin >> a >> b >> c ;
    if(a==b) 
    {
        if(a==c) cout << "NO" << endl ;
        else cout << "Yes" << endl ;
    }
    else if(b==c)
    {
        cout << "Yes" << endl ;
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:45:12: error: conflicting declaration 'std::string a'
   45 |     string a;
      |            ^
a.cc:44:8: note: previous declaration as 'll a'
   44 |     ll a,b,c;
      |        ^
Language: C++

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

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep3(i,m,n) for(int (i)=m;(i)<=(n);(i)++)
#define rep3rev(i,m,n) for(int (i)=m;(i)>=(n);(i)--)
#define all(a) (a.begin()),(a.end())
#define rall(a) (a.rbegin()),(a.rend())
#define fi first
#define se second

typedef long long ll;
typedef vector<int> vi;
typedef vector<vector<int>> vvi;
typedef pair<int, int> pii;

void Main()
{
    int a, b, c;
    cin >> a >> b >> c;
	if(a==b && a!=c) cout << "Yes" << endl;
  	else(b==c && b!=a) cout << "Yes" << endl;
  	else(c==a && c!=b) cout << "Yes" << endl;
  	else cout << "No" << endl;   	 
  	return;
}

int main()
{
	cin.tie(nullptr);
	ios_base::sync_with_stdio(false);
	cout << fixed << setprecision(15);
	Main();
	return 0;
}

Compiler output:
a.cc: In function 'void Main()':
a.cc:22:27: error: expected ';' before 'cout'
   22 |         else(b==c && b!=a) cout << "Yes" << endl;
      |                           ^~~~~
      |                           ;
a.cc:23:9: error: 'else' without a previous 'if'
   23 |         else(c==a && c!=b) cout << "Yes" << endl;
      |         ^~~~
a.cc:23:27: error: expected ';' before 'cout'
   23 |         else(c==a && c!=b) cout << "Yes" << endl;
      |                           ^~~~~
      |                           ;
a.cc:24:9: error: 'else' without a previous 'if'
   24 |         else cout << "No" << endl;
      |         ^~~~
Language: C++

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

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int a, b, c;
  cin >> a >> b >> c;
  
  if((a == b && a != c) || (a == c && b != c) || (c == b && a != c)) cout << "Yes\n";
  else cout << "No\n"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before '}' token
   12 |   else cout << "No\n"
      |                      ^
      |                      ;
   13 | }
      | ~
Language: C++

se = set(map(int, input().split()))

if len(se)==2:
    print('Yes')
else:
    print('No')


Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'se' does not name a type
    1 | se = set(map(int, input().split()))
      | ^~
Language: C++

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

#define ll long long

int main()
{
    int a,b,c
    //string
    //ll
    cin>>a>>b>>c;
    if(a==b||b==c||c==a)
        cout<<"Yes\n";
    else
        cout<<"No\n";
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected initializer before 'cin'
   11 |     cin>>a>>b>>c;
      |     ^~~
a.cc:12:17: error: 'c' was not declared in this scope
   12 |     if(a==b||b==c||c==a)
      |                 ^
Language: C++

/*
  AUTHOR:SOURABH
  CREATED:12:02:20
*/
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>

#define ordered_set tree<ll , null_type, less< ll >, rb_tree_tag, tree_order_statistics_node_update>
#define ll long long int
#define ld long double
#define fi first
#define se second
#define pb push_back
#define pob pop_back
#define W while
#define fn(i,x) for(i=0;i<x;i++)
#define fs(i,s,x) for(i=s;i<x;i++)
#define fr(i,x) for(i=x;i>=0;i--)
#define fit(it,s) for(it=s.begin();it!=s.end();it++)
#define mp make_pair
#define pii pair<int,int>
#define pll pair<ll,ll>
#define vii vector<int>
#define vll vector<ll>
#define mii map<int,int>
#define mll map<ll,ll>
#define mod 1000000007
#define MAX 100005
#define M 32

using namespace std;
using namespace __gnu_pbds;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);

    //freopen("in.txt","r",stdin);
    //freopen(2 "out.txt","w",stdout);

    ll t,n;
    cin>>t;
    W(t--)
    {
        cin>>a>>b>>c;
        if((a==b && b!=c) || (b==c && b!=a) && (c==a && b!=a))
            cout<<"Yes";
        else
            cout<<"No";
    }
    return 0;
}











Compiler output:
a.cc: In function 'int main()':
a.cc:48:14: error: 'a' was not declared in this scope
   48 |         cin>>a>>b>>c;
      |              ^
a.cc:48:17: error: 'b' was not declared in this scope
   48 |         cin>>a>>b>>c;
      |                 ^
a.cc:48:20: error: 'c' was not declared in this scope
   48 |         cin>>a>>b>>c;
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std ;
int main()
{
	int a[10];
	cin>>a[0]>>a[1]>>a[2];
	sort(a,a+3);
	if(a[0]==a[1]&&a[0]!=a[2]||){
		printf("Yes\n");
	}	
	else{
		cout<<"No"<<endl;
	}
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: expected primary-expression before ')' token
    8 |         if(a[0]==a[1]&&a[0]!=a[2]||){
      |                                    ^
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <string>
#include <cmath>
#include <climits>
#include <algorithm>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <cassert>
#include <vector>
#define all(x) x.begin() , x.end()
#define fi first
#define se second
#define pb push_back
#define umax( x , y ) x = max( x , (y) )
#define umin( x , y ) x = min( x , (y) )
#define set multiset
#define null NULL
#define ort (b+s)/2

using namespace std;

typedef long long Lint;
typedef long double db;
typedef pair<int,int> ii;
typedef pair<int,ii> iii;
typedef pair<db,db> dd;
typedef pair<int,string> is;

const int maxn = 600020;
const int K = 320;
const int MOd = 1e9 + 7;


void solve() {
	scanf("%d %d %d",ar[1],ar[2],ar[3]);
	sort( ar+1, ar+1+3 );
	if( ar[1] == ar[2] && ar[2] != ar[3] ) {
		printf("Yes\n");
		return;
	}
	if( ar[1] != ar[2] && ar[2] == ar[3] ) {
		printf("Yes\n");
		return;
	}
	printf("No\n");
}

int main(  ) {


    int n = 1;
    //scanf("%d",&n);
    while( n-- ) solve();

    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:40:26: error: 'ar' was not declared in this scope
   40 |         scanf("%d %d %d",ar[1],ar[2],ar[3]);
      |                          ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
void solve(){
    ll a,b;c;
    cin>>a>>b>>c;
    set<ll> s;
    s.insert(a);
    s.insert(b);
    s.insert(c);
    if(ll(s.size())==2)
    cout<<"YES"
    else
    cout<<"NO";
}
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    ll t;
    t=1;
    for(ll i=0;i<t;i++)
    solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:5:12: error: 'c' was not declared in this scope
    5 |     ll a,b;c;
      |            ^
a.cc:12:16: error: expected ';' before 'else'
   12 |     cout<<"YES"
      |                ^
      |                ;
   13 |     else
      |     ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
set <int> s;
int main()
{
  	int a, b, c;
  	cin >> a >> b >> c;
  s.insert(a), s.insert(b), s.insert(c);
  if(sz(s) == 2) cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: 'sz' was not declared in this scope; did you mean 's'?
    9 |   if(sz(s) == 2) cout << "Yes";
      |      ^~
      |      s
Language: C++

#include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <fstream>
#include <cassert>
#include <cstring>
#include <unordered_set>
#include <unordered_map>
#include <numeric>
#include <ctime>
#include <bitset>
#include <complex>

using namespace std;

signed main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0);

	int a, b, c;
	cin >> a >> b >> s;
	set<int> s;
	s.insert(a);
	s.insert(b);
	s.insert(c);
	if ((int)s.size() == 2) cout << "Yes\n";
	else cout << "No\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:26: error: 's' was not declared in this scope
   28 |         cin >> a >> b >> s;
      |                          ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int a;
	int f=0;
	int s[10000];
	for(int i=0;i<a;i++){
		cin>>s[i];
		if(s[i]%2==0){
			if(s%5!=0&&s%3!=0){
				f=1;
			}
		}
	}
	if(f)cout<<"DENIED";
	else cout<<"APPROVED";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: invalid operands of types 'int [10000]' and 'int' to binary 'operator%'
   10 |                         if(s%5!=0&&s%3!=0){
      |                            ~^~
      |                            | |
      |                            | int
      |                            int [10000]
a.cc:10:37: error: invalid operands of types 'int [10000]' and 'int' to binary 'operator%'
   10 |                         if(s%5!=0&&s%3!=0){
      |                                    ~^~
      |                                    | |
      |                                    | int
      |                                    int [10000]
Language: C

#include <stdio.h>
int main()
{
  int n;
  scanf("%d",&n);
  int i,a;
  for (i=0;i<n;i++){
    scanf("%d",&a)
      if(a%2==0){
        if(a%3!=0&&a%5!=0){
          puts("DENIED");
          return 0;
        }
      }
  }
  puts("APPROVED");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:19: error: expected ';' before 'if'
    8 |     scanf("%d",&a)
      |                   ^
      |                   ;
    9 |       if(a%2==0){
      |       ~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int  n;
    cin >> n;

    vector<int> a(n);
    for(int i = 0; i < n; i++)
        cin >> a.at(i);
        
        if(a.at(i) % 2 == 0 && a.at(i) % 3 != 0 && a.at(i) % 5 != 0){
            cout << "DENIED" << endl;
        }
        else{
            cout << "APPROVED" << endl;
        }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'i' was not declared in this scope
   13 |         if(a.at(i) % 2 == 0 && a.at(i) % 3 != 0 && a.at(i) % 5 != 0){
      |                 ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
    int  n;
    cin >> n;

    vector<int> a(n);
    for(int i = 0; i < n; i++)
        cin >> a.at(i);
        
        if(a.at(i) % 2 == 0 && a.at(i) % 3 != 0 && a.at(i) % 5 != 0){
            cout << "DENIED" << endl;
        }
        else{
            cout << "APPROVED" << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'i' was not declared in this scope
   13 |         if(a.at(i) % 2 == 0 && a.at(i) % 3 != 0 && a.at(i) % 5 != 0){
      |                 ^
a.cc: At global scope:
a.cc:21:5: error: expected unqualified-id before 'return'
   21 |     return 0;
      |     ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
  ll N;
  cin>>N;
  vector<long long>(N);
  for(ll i=0;i<N;i++){
    cin>>vec.at(i);
    if(vec.at(i)%2==1){
      break;
    }
    if(vec.at(i)%3!=0||vec.at(i)%5!=0){
      cout<<"DENIED"<<endl;
      return 0;
    }
  }
  cout<<"APPROVED"<<endl;


} 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: conflicting declaration 'std::vector<long long int> N'
    7 |   vector<long long>(N);
      |                     ^
a.cc:5:6: note: previous declaration as 'll N'
    5 |   ll N;
      |      ^
a.cc:9:10: error: 'vec' was not declared in this scope
    9 |     cin>>vec.at(i);
      |          ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < n; i++)
static const long long INF = 1000000;
using p = pair<int64_t,int64_t>;

int main(){
    int n;
    cin >> n;
    vector<int> vec(n);
    int n = 0;
    rep(i,n){
        int a;
        cin >> a;
        if (a % 2 != 0){
            continue;
        }
        else if (a % 3 == 0){
            continue;
        }
        else if(a % 5 == 0){
            continue;
        }
        else {
            cout << "DENIED" << endl;
            return 0;
        }
    }
    cout << "APPROVED" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: redeclaration of 'int n'
   11 |     int n = 0;
      |         ^
a.cc:8:9: note: 'int n' previously declared here
    8 |     int n;
      |         ^
Language: Java

	import java.util.*;
	 
	class Main{
	  public static void main(String[] args){
	    
	 
	Scanner sc = new Scanner(System.in);
	        int N = sc.nextInt();
        int[] X = new int[N];
        for (int j = 0; j < N ; j++){
  			X[j] = sc.nextInt();
        }
        String message;
        for (int i = 0; i < N ; i++){
  			if (X[i]%2 == 0){
              if (X[i]%3 != 0 || X[i]%5 != 0){
                message = "DENIED";
                break;
              }
              else{ 
                message = "APPROVED";
  	          } 
            }
    		else{
              message = "APPROVED";
            }
            }
        System.out.println(message);
        }
	  }
	



Compiler output:
Main.java:28: error: variable message might not have been initialized
        System.out.println(message);
                           ^
1 error
Language: Java

	import java.util.*;
	 
	class Main{
	  public static void main(String[] args){
	    
	 
	Scanner sc = new Scanner(System.in);
	        int N = sc.nextInt();
        int[] X = new int[N];
        for (int j = 0; j < N ; j++){
  			X[j] = sc.nextInt();
        }
        for (int i = 0; i < N ; i++){
  			if (X[i]%2 = 0){
              if (X[i]%3 != 0 || X[i]%5 != 0){
                System.out.println("DENIED");
                break;
              }
              else{ 
                System.out.println("APPROVED");
  	          } 
              }
    		else{
              System.out.println("APPROVED");
            }
            }
        }
	  }
	



Compiler output:
Main.java:14: error: unexpected type
  			if (X[i]%2 = 0){
  			        ^
  required: variable
  found:    value
1 error
Language: Java

	import java.util.*;
	 
	class Main{
	  public static void main(String[] args){
	    
	 
	Scanner sc = new Scanner(System.in);
	        int N = sc.nextInt();
        int X[];
        for (int i = 0; i < N ; i++){
  			X[i] = sc.nextInt();
        }
        for (int i = 0; i < N ; i++){
  			if (X[i]%2 == 0){
              if (X[i]%3 != 0 || X[i]%5 != 0){
                System.out.println("DENIED");
                break;
            else 
                System.out.println("APPROVED");
              
        }
        
	  }
	}



Compiler output:
Main.java:18: error: 'else' without 'if'
            else 
            ^
Main.java:24: error: reached end of file while parsing
	}
	 ^
2 errors
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int n;
  string res = "APPROVED"
  cin >> n;
  for(int i=0; i<n; i++)
  {
    int a;
    cin >> a;
    if(a % 2 == 0)
    {
      if(a % 3 != 0 && a % 5 != 0)
        res = "DENIED"
    }
  }
  
  cout << res << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'cin'
    8 |   cin >> n;
      |   ^~~
a.cc:16:23: error: expected ';' before '}' token
   16 |         res = "DENIED"
      |                       ^
      |                       ;
   17 |     }
      |     ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  vecteor<int>a(n);
  for(int i=0;i<n;i++){
    cin>>a.at(i);
  }
  for(int i=0;i<n;i++){
    if(a.at(i)%2==0&&a.at(i)%3!=0&&a.at(i)%5!=0){
      cout<<"DENIED"<<endl;
      return 0;
    }
  }
  cout<<"APPROVED"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vecteor' was not declared in this scope
    6 |   vecteor<int>a(n);
      |   ^~~~~~~
a.cc:6:11: error: expected primary-expression before 'int'
    6 |   vecteor<int>a(n);
      |           ^~~
a.cc:8:10: error: 'a' was not declared in this scope
    8 |     cin>>a.at(i);
      |          ^
a.cc:11:8: error: 'a' was not declared in this scope
   11 |     if(a.at(i)%2==0&&a.at(i)%3!=0&&a.at(i)%5!=0){
      |        ^
Language: C

#include<stdio.h>
int main(){
 int i,n,b;
  scanf("%d",&n);
  for(i=1;i<=n;i++){scanf("%d",&b);
  if(b%2==0){if(b%3!=0&&b%5=!0)break;}}
  puts(i==n?"Yes":"No");              
}


Compiler output:
main.c: In function 'main':
main.c:6:28: error: lvalue required as left operand of assignment
    6 |   if(b%2==0){if(b%3!=0&&b%5=!0)break;}}
      |                            ^
Language: C

#include<stdio.h>
int main(void){
 int n,b;
  scanf("%d",&n);
  for(i=0;i<n;i++){scanf("%d",&b);
  if(b%2==0){puts(b%3==0||b%5==0?"APPROVED";"DENIED");return 0;}
                  }
     return 0;              
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=0;i<n;i++){scanf("%d",&b);
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:44: error: expected ':' before ';' token
    6 |   if(b%2==0){puts(b%3==0||b%5==0?"APPROVED";"DENIED");return 0;}
      |                                            ^
      |                                            :
Language: C

#include<stdio.h>
int main(void){
 int n,b;
  scanf("%d",&n);
  for(i=0;i<n;i++){scanf("%d",&b);
  if(b%2==0){puts(b%3==0||b%5==0?"APPROVED""DENIED");return 0;}
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=0;i<n;i++){scanf("%d",&b);
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:52: error: expected ':' before ')' token
    6 |   if(b%2==0){puts(b%3==0||b%5==0?"APPROVED""DENIED");return 0;}
      |                                                    ^
      |                                                    :
main.c:7:1: error: expected declaration or statement at end of input
    7 | }
      | ^
Language: Java

#include <stdio.h>

int main(void)
{
    int n,i;
    int a[1000];
    scanf("%d", &n);

    for (i = 0; i < n; i++)
    {
        scanf("%d", &a[i]);
    }

    if (a[i] / 2 == 0 && a[i] % 3 == 0 || a[i] % 5 == 0) printf("APPROVED");
    else printf("DENIED");    

    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:6: error: class, interface, enum, or record expected
    int a[1000];
    ^
Main.java:7: error: class, interface, enum, or record expected
    scanf("%d", &n);
    ^
Main.java:9: error: class, interface, enum, or record expected
    for (i = 0; i < n; i++)
    ^
Main.java:9: error: class, interface, enum, or record expected
    for (i = 0; i < n; i++)
                ^
Main.java:9: error: class, interface, enum, or record expected
    for (i = 0; i < n; i++)
                       ^
Main.java:12: error: class, interface, enum, or record expected
    }
    ^
Main.java:15: error: class, interface, enum, or record expected
    else printf("DENIED");    
    ^
Main.java:17: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:18: error: class, interface, enum, or record expected
}
^
11 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
 
int main() {
 ll N;
  cin>>N;
  
  for(ll i=0;i<N;i++) {
ll A;
    cin>>A;
    if(A%2==0) {
if(A%3!=0&&A%5!=0) {
return "DENIED"<<endl;
  return 0;
}
    }
  }
  
  cout<<"APPROVED"<<endl;
}
  
  
  

  


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: invalid operands of types 'const char [7]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 | return "DENIED"<<endl;
      |        ~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,A) for(int i = 0;i < A;i++)

int main() {
  int A;
  cin >> A;
  int x;
  int count = 0;
  rep(i,A){
    cin >> x;
    if(x % 2 == 0 && x % 3 != 0){
      count++;
    }
    else if(x % 2 == 0 && x % 3 !=){
      count++;
    }
  }
  if(count > 0){
    cout << "DENIED" << endl;
  }
  else{
    cout << "APPROVED" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:35: error: expected primary-expression before ')' token
   15 |     else if(x % 2 == 0 && x % 3 !=){
      |                                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,A) for(int i = 0;i < A;i++)

int main() {
  int A;
  cin >> A;
  int x;
  int count = 0;
  rep(i,A){
    cin >> x;
    if(x % 2 == 0 && x % 3 != 0){
      count++;
    }
    else if(x % 2 == 0 && x % 3 !=){
      count++;
    }
  }
  if(count > 0){
    cout << DENIED << endl;
  }
  else{
    cout << APPROVED << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:35: error: expected primary-expression before ')' token
   15 |     else if(x % 2 == 0 && x % 3 !=){
      |                                   ^
a.cc:20:13: error: 'DENIED' was not declared in this scope
   20 |     cout << DENIED << endl;
      |             ^~~~~~
a.cc:23:13: error: 'APPROVED' was not declared in this scope
   23 |     cout << APPROVED << endl;
      |             ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,A) for(int i = 0;i < A;i++)

int main() {
  int A;
  cin >> A;
  int x;
  int count = 0;
  rep(i,A){
    cin >> x;
    if(x % 2 == 0 && x % 3 != 0){
      count++
    }
    else if(x % 2 == 0 && x % 3 !=){
      count++;
    }
  }
  if(count > 0){
    cout << DENIED << endl;
  }
  else{
    cout << APPROVED << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: expected ';' before '}' token
   13 |       count++
      |              ^
      |              ;
   14 |     }
      |     ~         
a.cc:15:35: error: expected primary-expression before ')' token
   15 |     else if(x % 2 == 0 && x % 3 !=){
      |                                   ^
a.cc:20:13: error: 'DENIED' was not declared in this scope
   20 |     cout << DENIED << endl;
      |             ^~~~~~
a.cc:23:13: error: 'APPROVED' was not declared in this scope
   23 |     cout << APPROVED << endl;
      |             ^~~~~~~~
Language: C

#include<stdio.h>
int main(){
  int n;
  scanf("%d",&n);
  int a[n];
  for(int i=0;i<n;i++){
    scanf("%d",&a[i]);
    if(a[i]%2==0){
      if(a[i]%3!=0 && a[i]%5!=0){
        printf("DENIED");
        return 0;
      }
    }
    printf("APPROVED");
    return 0;
  }
  

Compiler output:
main.c: In function 'main':
main.c:16:3: error: expected declaration or statement at end of input
   16 |   }
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  bool t=true;
  cin >> n;
  for(int i=0;i<n;i++){
    int a;
    cin >> a;
    if(a%2==0){
      if(a%3==0 && a%5==0)contiune;
      else{
        cout << "DENIED" << endl;
        t=false;
        break;
      }
    }
  }
  if(t)cout << "APPROVED" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: 'contiune' was not declared in this scope
   11 |       if(a%3==0 && a%5==0)contiune;
      |                           ^~~~~~~~
Language: C

#include<iostream>
int check_so_chan(int n)
{
    if(!(n%2 == 0)) return 0;
    return 1;
}
main()
{
    int N;
    int check = 1;
    scanf("%d", &N);
    int A[N];
    for(int i = 0 ; i< N ; i++)
    {
        scanf("%d", &A[i]);
    }
    // for(int i = 0 ; i < N ; i++)
    // {
    //     printf("%d ", A[i]);
    // }
    for(int i = 0 ; i < N ; i++)
    {
        if(check_so_chan(A[i]))
        {
            if(!((A[i] % 3 == 0) || (A[i] % 5 == 0))) 
            check = 0;
        }
    }
    if(check == 1) printf("APPROVED");
    else printf("DENIED");
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
int check_so_chan(int n)
{
    if(n%2 == 0) return 0;
    return 1;
}
main()
{
    int N;
    int check = 1;
    scanf("%d", &N);
    int A[N];
    for(int i = 0 ; i< N ; i++)
    {
        scanf("%d", &A[i]);
    }
    // for(int i = 0 ; i < N ; i++)
    // {
    //     printf("%d ", A[i]);
    // }
    for(int i = 0 ; i < N ; i++)
    {
        if(check_so_chan(A[i]))
        {
            if(((A[i] % 3 == 0) || (A[i] % 5 == 0))) 
            check = 1;
        }
        else check = 0;
    }
    if(check == 1) printf("APPROVED");
    else printf("DENIED");
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N);
  string S = "APPROVED"
  for (int i = 0; i < N; i++) {
  cin >> vec.at(i);
  }

  for (int i = 0; i < N; i++) {
    if (vec[i]%2 == 0 && vec[i]%3 != 0){
      S = "DENIED";
       break;
    }
      
    if (vec[i]%2 == 0 && vec[i]%5 != 0){
      S = "DENIED";
       break;
    }
    
    cout << S << endl;
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for (int i = 0; i < N; i++) {
      |   ^~~
a.cc:9:19: error: 'i' was not declared in this scope
    9 |   for (int i = 0; i < N; i++) {
      |                   ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N);
  cin >> vec(N);
  for (int i = 0; i < 3; i++) {
    if (vec[i]%2 == 0 && vec[i]%3 != 0){
      cout << "DENIED";
    }
    break;
      
    if (vec[i]%2 == 0 && vec[i]%5 != 0){
      cout << "DENIED";
    }
    break;
    
    else {
      cout << "APPROVED";
    }
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: no match for call to '(std::vector<int>) (int&)'
    8 |   cin >> vec(N);
      |          ~~~^~~
a.cc:20:5: error: 'else' without a previous 'if'
   20 |     else {
      |     ^~~~
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<int> vec(N);
  cin >> vec(N);
  for (int i = 0; i < 3; i++) {
    if (vec[i]%2 == 0 && vec[i]%3 != 0){
      cout << "DENIED";
    }
    break;
      
    else if (vec[i]%2 == 0 && vec[i]%5 != 0){
      cout << "DENIED";
    }
    break;
    
    else {
      cout << "APPROVED";
    }
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: no match for call to '(std::vector<int>) (int&)'
    8 |   cin >> vec(N);
      |          ~~~^~~
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else if (vec[i]%2 == 0 && vec[i]%5 != 0){
      |     ^~~~
a.cc:20:5: error: 'else' without a previous 'if'
   20 |     else {
      |     ^~~~
Language: C++

N = int(input())
x = True

for _ in range(N):
  a = int(input())
  if a % 2 != 0:
    continue
  if not (a%3==0 or a%5==0):
    x = False
if x:
  print("APPROVED")
else:
  print("DENIED")

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

import sys

N = int(input())

for _ in range(N):
  a = int(input())
  if a % 2 != 0:
    continue
  if not (a%3==0 or a%5==0):
    print("DENIED")
    sys.exit()
print("APPROVED")

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int main() {
  int N ;
  int A ; 
  
  cin >> N ; 
  
  for (i = 0 ; i < N ; i++){
    cin >> A ; 
    if(A % 3 != 0 || A % 5 != 0){
      cout << "DENIED" << endl ;  
      return 0 ; 
    }
  }
  
  cout << "APPROVED" << endl ; 
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'i' was not declared in this scope
   10 |   for (i = 0 ; i < N ; i++){
      |        ^
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		
		int[] value = new int[n];
		int i=0;
		for (;i<value.length; i++){
			value[i] = sc.next();
			if (value[i]%2==0 && value%3!=0 || value[i]%2==0 && value%5!=0){
				break;
			}
		}
		if (i==n){
			System.out.println(APPROVED);
		} else {
			System.out.println(DENIED);
		}
		
    	}
  
}

Compiler output:
Main.java:11: error: incompatible types: String cannot be converted to int
			value[i] = sc.next();
			                  ^
Main.java:12: error: bad operand types for binary operator '%'
			if (value[i]%2==0 && value%3!=0 || value[i]%2==0 && value%5!=0){
			                          ^
  first type:  int[]
  second type: int
Main.java:12: error: bad operand types for binary operator '%'
			if (value[i]%2==0 && value%3!=0 || value[i]%2==0 && value%5!=0){
			                                                         ^
  first type:  int[]
  second type: int
Main.java:17: error: cannot find symbol
			System.out.println(APPROVED);
			                   ^
  symbol:   variable APPROVED
  location: class Main
Main.java:19: error: cannot find symbol
			System.out.println(DENIED);
			                   ^
  symbol:   variable DENIED
  location: class Main
5 errors
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
    		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		
		int[] value = new int[n];
		int i=0;
		for (;i<value.length; i++){
			value[i] = sc.nextInt();
			if (value[i]%2==0 && value%3!=0 || value[i]%2==0 && value%5!=0){
				break;
			}
		}
		if (i==n){
			System.out.println(APPROVED);
		} else {
			System.out.println(DENIED);
		}
		
    	}
  
}

Compiler output:
Main.java:12: error: bad operand types for binary operator '%'
			if (value[i]%2==0 && value%3!=0 || value[i]%2==0 && value%5!=0){
			                          ^
  first type:  int[]
  second type: int
Main.java:12: error: bad operand types for binary operator '%'
			if (value[i]%2==0 && value%3!=0 || value[i]%2==0 && value%5!=0){
			                                                         ^
  first type:  int[]
  second type: int
Main.java:17: error: cannot find symbol
			System.out.println(APPROVED);
			                   ^
  symbol:   variable APPROVED
  location: class Main
Main.java:19: error: cannot find symbol
			System.out.println(DENIED);
			                   ^
  symbol:   variable DENIED
  location: class Main
4 errors
Language: C++

#include <iostream>
using namespace std;

int main (){
    int n;

    cin >> n;

    for(int i = 0; i < n; i++){
        cin >> i;
        if(i % 2 == 0 && i % 3 != 0 && i % 5 != 0) {
            cout << "DENIED" << endl;
            return 0;
    }

    cout << "APPROVED" << endl;

    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main (){
      |            ^
Language: C++

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

int main(){
  int N;
  cin>>N;
  bool ans=true;
  int A[N];
  
  for(int i=0;i<N;i++) cin >> A[i];
  
  for(int i=0;i<N;i++){
    if(!(A[i]%6==0)){
      ans=false;
    }
    else if(!(A[i]%10==0)){
      ans=false;   
      }
    }
  }
  
  cout<<(ans?"APPROVED":"DENIED")<<endl;
  
return 0;
}


Compiler output:
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout<<(ans?"APPROVED":"DENIED")<<endl;
      |   ^~~~
a.cc:24:1: error: expected unqualified-id before 'return'
   24 | return 0;
      | ^~~~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
    int N, i, cnt = 1;
    int a[1000];
    
    scanf("%d", &N);
    
    for(i = 0; i < N; i++){
        scanf("%d\n", &a[i]);
    }
    
    for(i = 0; i < N; i++){
        if(a[i]%2 == 0){
            if(!(a[i]%3 == 0 || a[i]%5 == 0))
        }
    }
    if(cnt + N == 0){
        printf("DENIED\n");
    }else if(cnt + N >= 1){
        printf("APPROVED\n");
    }
}


Compiler output:
main.c: In function 'main':
main.c:15:9: error: expected expression before '}' token
   15 |         }
      |         ^
Language: C++

#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#define rep(i,n) for (int i = 0; i < n; ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  rep(i,N) cin >> A[i];
  rep(i,N) {
    if (A[i] % 2 == 0 && A[i] % 3 != 0 && A[i] % 5 != 0) {
      cout << "DINIED" << endl;
      return 0;
    }
  cout << "APPROVED" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
a.cc:13:12: note: to match this '{'
   13 | int main() {
      |            ^
Language: C++

    #include <bits/stdc++.h>
    #include <cmath>
    #include <iostream>
    #include<string>
    using namespace std; 
     
     
    int main()
    {
      int n,count=0,sum=0;
      int arr[n];
      cin>>n;
      for(int i=0;i<n;i++)
      {
        cin>>arr[i];
        if(arr[i]%2==0)
        {
          count++;
          if(arr[i]%3==0 || arr[i]%5==0)
            sum++;
        }
      }
      else
        i=i+1;
      if(sum==count)
        cout<<"APPROVED";
      else
        cout<<"DENIED";
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:23:7: error: 'else' without a previous 'if'
   23 |       else
      |       ^~~~
a.cc:24:9: error: 'i' was not declared in this scope
   24 |         i=i+1;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
typedef long long ll;

int main(){
  int n;
  string ans;
  cin >> n;
  vector<int> a(n)="DENIED";
  rep(i, n){
    cin >> a[i];
    if(a[i]%2==0){
      if(a[i]%3==0||a[i]%5==0){
        ans="APPROVED";
      }
      else{
        ans="DENIED";
        break;
      }
    }
  }

  cout << ans << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected ',' or ';' before '=' token
   10 |   vector<int> a(n)="DENIED";
      |                   ^
Language: C++

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

int main(){
  int n;
  cin >> n;
  vector<int>a(n);
  for(int i = 0; i<n; i++)
    cin >> a.at(n);
  bool ans = false;
  for(int i = 0; i<n; i++){
    if(n%2 == 1)
      continue;
    else if(n%3 == 0 || n%5 == 0)
      ans = true;
    else
      ans = true;
  }
  if(ans)
    cout << "APPROVED" << endl;
  else
    cout << "DENIED" << endl;
}

Compiler output:
a.cc:1:9: fatal error: bits/stec++.h: No such file or directory
    1 | #include<bits/stec++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int main(void) {
  int arr[100];
  int a;
void solve()   {              
scanf("%d",&a);
for (int=1;i<=a;i=i+1){
 scanf("%d",&arr[i]);
if(arr[i]%2==0){
    if(arr[i]%3!=0&& arr[i]%5!=0{
    printf("DENIED\n");
    return;

    }

  }

 }
printf("APPROVED\n");
return;
}
int main(){
solve();
return 0;
}


Compiler output:
main.c: In function 'solve':
main.c:8:9: error: expected identifier or '(' before '=' token
    8 | for (int=1;i<=a;i=i+1){
      |         ^
main.c:8:12: error: 'i' undeclared (first use in this function)
    8 | for (int=1;i<=a;i=i+1){
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:33: error: expected ')' before '{' token
   11 |     if(arr[i]%3!=0&& arr[i]%5!=0{
      |       ~                         ^
      |                                 )
main.c:17:3: error: expected expression before '}' token
   17 |   }
      |   ^
main.c: In function 'main':
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include <stdio.h>

int main(void) {
  int arr[100]
  int a;
void solve(){                
scanf("%d",&a);
for (int=1;i<=a;i=i+1){
 scanf("%d",&arr[i]);
if(arr[i]%2==0){
    if(arr[i]%3!=0&& arr[i]%5!=0{
    printf("DENIED\n");
    return;

    }

  }

 }
printf("APPROVED\n");
return;
}
int main({
solve();
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:15: error: expected ';' before 'int'
    4 |   int arr[100]
      |               ^
      |               ;
    5 |   int a;
      |   ~~~          
main.c: In function 'solve':
main.c:8:9: error: expected identifier or '(' before '=' token
    8 | for (int=1;i<=a;i=i+1){
      |         ^
main.c:8:12: error: 'i' undeclared (first use in this function)
    8 | for (int=1;i<=a;i=i+1){
      |            ^
main.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:14: error: 'arr' undeclared (first use in this function)
    9 |  scanf("%d",&arr[i]);
      |              ^~~
main.c:11:33: error: expected ')' before '{' token
   11 |     if(arr[i]%3!=0&& arr[i]%5!=0{
      |       ~                         ^
      |                                 )
main.c:17:3: error: expected expression before '}' token
   17 |   }
      |   ^
main.c: In function 'main':
main.c:23:10: error: expected declaration specifiers or '...' before '{' token
   23 | int main({
      |          ^
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^