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

#include <stdio.h>

int main(void)
{
  
    int n,a=0,b=0,i;
    char a[100];
      
    scanf("%d",&n);
  
    for(i=0;i<n;i++){
        scanf("%d",a[i]);
    }
  
    for(i=0;i<n;i++){
        if(a[i]%2==0){
          if((a[i]%3==0)||(a[i]%5==))  a++;
        b++;
        }
    }
  
    if(a==b)  printf("APPROVED\n");
    else      printf("DENIED\n");
  
    return 0;
}  

Compiler output:
main.c: In function 'main':
main.c:7:10: error: conflicting types for 'a'; have 'char[100]'
    7 |     char a[100];
      |          ^
main.c:6:11: note: previous definition of 'a' with type 'int'
    6 |     int n,a=0,b=0,i;
      |           ^
main.c:17:36: error: expected expression before ')' token
   17 |           if((a[i]%3==0)||(a[i]%5==))  a++;
      |                                    ^
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);
  }
  
  bool ans = true;
  
  for(int i = 0; i < n; i++){
    if(a.at(i)%2==0 && a.at(i)%3!=0 && a.at(i)%5!=0){
      ans = false;
      break;
    }
    else{
      contiue;
    }
  }
  
  if(ans){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:7: error: 'contiue' was not declared in this scope; did you mean 'ctime'?
   21 |       contiue;
      |       ^~~~~~~
      |       ctime
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in)
		int sum = sc.nextInt();  //書かれている整数の数
		int shorui[] = new int[sum];  //書類に書かれてる整数が入ってる配列
 
		for(int i=0 ; i<sum ; i++) {
			shorui[i] = sc.nextInt();
            //偶数で、3でも5でも割り切れなかったらその時点で終了
			if(shorui[i]%2==0 && shorui[i]%3!=0 && shorui[i]%5!=0) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	}
}

Compiler output:
Main.java:4: error: ';' expected
		Scanner sc = new Scanner(System.in)
		                                   ^
1 error
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in
		int sum = sc.nextInt();  //書かれている整数の数
		int shorui[] = new int[sum];  //書類に書かれてる整数が入ってる配列

		for(int i=0 ; i<sum ; i++) {
			shorui[i] = sc.nextInt();
            //偶数で、3でも5でも割り切れなかったらその時点で終了
			if(shorui[i]%2==0 && shorui[i]%3!=0 && shorui[i]%5!=0) {
				System.out.println("DENIED");
				return;
			}
		}
		System.out.println("APPROVED");
	}
}

Compiler output:
Main.java:4: error: ')' or ',' expected
		Scanner sc = new Scanner(System.in
		                                  ^
1 error
Language: C++

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

int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  rep(i,n) {
   cin >> a.at(i);
  }
  
  int count = 0;
  rep(i,n) {
   if(a.at(i) % 2 == 0) {
    count++;
   }
  }
  
  int check = 0;
  rep(i,n) {
   if(a.at(i) % 2 == 0 && (a.at(i) % 3 == 0 || a.at(i) % 5 == 0) {
     check++;
    }
   
  }
  
  if (count == check) {
  cout << "APPROVED";
  }
  else {
   cout << "DENIED";
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:65: error: expected ')' before '{' token
   23 |    if(a.at(i) % 2 == 0 && (a.at(i) % 3 == 0 || a.at(i) % 5 == 0) {
      |      ~                                                          ^~
      |                                                                 )
a.cc:27:3: error: expected primary-expression before '}' token
   27 |   }
      |   ^
Language: C++

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

int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  rep(i,n) {
   cin >> a.at(i);
  }
  
  int count = 0;
  rep(i,n) {
   if(a.at(i) % 2 == 0) {
    count++;
   }
  }
  
  int check = 0;
  rep(i,n) {
   if(a.at(i) % 2 == 0 && (a.at(i) % 3 == 0 || a.at(i) % 5 == 0) {
     check++;
    }
   
  }
  
  if (count == check) {
  cout << "APPROVED";
  }
  else {
   cout << "DENIED";
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:65: error: expected ')' before '{' token
   23 |    if(a.at(i) % 2 == 0 && (a.at(i) % 3 == 0 || a.at(i) % 5 == 0) {
      |      ~                                                          ^~
      |                                                                 )
a.cc:27:3: error: expected primary-expression before '}' token
   27 |   }
      |   ^
Language: C++

//----------BHAVIK DIWANI(PICT_COMP)---------------
#include<bits/stdc++.h>
#include<stdlib.h>
#include<stdio.h>
#define test ll t; cin>>t; while(t--)
#define FOR(p,n) for(ll i=p;i<(ll)n;i++)
#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define mod 1000000007
#define ll long long
#define int long long
#define ull unsigned long long
#define MAX 1000005
#define pb push_back
#define mkp make_pair
#define vi vector<int>
#define pii pair<int,int>
#define endl '\n'
#define vs vector<string>
#define mii map<int,int>
#define msi map<string,int>
#define vpii vector< pair<int, int > >
#define vpsi vector< pair< string ,int > >
#define forci(p,q) for(int i=p;i<q;i++)
ll gcd(ll a,ll b){ if(b==0) return a;    return gcd(b,a%b);}
ll lcm(ll a,ll b) { return (a/gcd(a,b)*b);}
ull power(ull a, ull b) {a %= mod;  ull res = 1;  while (b > 0) { if (b & 1) res = res * a % mod;  a = a * a % mod;  b >>= 1; }  return res%mod; }
ll modmul(ll x, ll y){return (x*y)%mod;}
ll modadd(ll x, ll y){return (x+y)%mod;}
ll modsub(ll x, ll y){return (x-y+mod)%mod;}
ll fact[1000007]={0};
void facto() {fact[0]=1;fact[1]=1;for(int i=2;i<100007;i++)fact[i]=(fact[i-1]*i)%mod;}
ll ncr(ll n,ll r) {ll res=1; res=fact[n]; res=(res*(power(fact[r],mod-2)))%mod; res=(res*(power(fact[n-r],mod-2)))%mod; return res;}
ll npr(ll n,ll r) {ll res=1; res=fact[n]; res=(res*(power(fact[n-r],mod-2)))%mod; return res;}
inline long long toint(const std::string &s) {std::stringstream ss; ss << s; long long x; ss >> x; return x;}
inline std::string tostring(long long number) {std::stringstream ss; ss << number; return ss.str();}
inline std::string tobin(long long x) {return std::bitset<63>(x).to_string();}
/*bool prime[MAX];
ull sieve(){memset(prime,true,sizeof(prime));for(ull p=2;p*p<MAX;p++){if(prime[p]==true){for(ull i=2*p;i<MAX;i+=p){prime[i]=false;}}}prime[0]=0;prime[1]=0;
}
int inv[1000001]={0};
void findinverse(){inv[1] = 1;for(int i = 2; i <=1e6 ; ++i)	inv[i] = (mod - (mod/i) * inv[mod%i] % mod) % mod;}
*/
using namespace std;
int solve()
{
	int n;
	cin>>n;
	int a[n];
	for(int i=0;i<n;i++)
	{
		cin>>x;
		if(x%2==0)
		{
			if(x%3!=0 && x%5!=0)
				ans=1;
		}
	}
	if(ans)
		cout<<"DENIED";
	else
		cout<<"APPROVED";


}
signed main()
{
	fastio;
//	test
		solve();
}




Compiler output:
a.cc: In function 'long long int solve()':
a.cc:51:22: error: 'x' was not declared in this scope
   51 |                 cin>>x;
      |                      ^
a.cc:55:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   55 |                                 ans=1;
      |                                 ^~~
      |                                 abs
a.cc:58:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   58 |         if(ans)
      |            ^~~
      |            abs
a.cc:64:1: warning: no return statement in function returning non-void [-Wreturn-type]
   64 | }
      | ^
Language: Java

import java.util.Scanner;
public class Papers_B {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);

		int n = scan.nextInt();
		int[] a = new int[n];

		boolean handan = true;
		for(int i= 0;i<n;i++) {

			a[i] = scan.nextInt();


		if(a[i]%2 == 0) {
			if(a[i]%3 != 0 && a[i]%5 != 0) {

				handan = false;
			}
		}
		}

		System.out.println(handan?"APPROVED":"DENIED");

		scan.close();

	}

}


Compiler output:
Main.java:2: error: class Papers_B is public, should be declared in a file named Papers_B.java
public class Papers_B {
       ^
1 error
Language: C++

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

int main(){
  int N,A;
  cin >> N;
  bool n =true;
  for (int i=0;i<N;i++){
    cin >> A[i];
    if (A[i]%2==1){
      continue;
    }
    else{
      if(A[i]%3==0||A[i]%5==0){
        continue;
      }
      else{
        n = false;
        break;
      }
    }
  }
  if(n){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     cin >> A[i];
      |             ^
a.cc:10:10: error: invalid types 'int[int]' for array subscript
   10 |     if (A[i]%2==1){
      |          ^
a.cc:14:11: error: invalid types 'int[int]' for array subscript
   14 |       if(A[i]%3==0||A[i]%5==0){
      |           ^
a.cc:14:22: error: invalid types 'int[int]' for array subscript
   14 |       if(A[i]%3==0||A[i]%5==0){
      |                      ^
Language: C++

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

int main(){
  int N;
  cin >> N;
  string A;
  bool n =true;
  for (int i=0;i<N;i++){
    cin >> A[i]);
    if (A[i]%2==1){
      continue;
    }
    else{
      if(A[i]%3==0||A[i]%5==0){
        continue;
      }
      else{
        n = false;
        break;
      }
    }
  }
  if(n){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before ')' token
   10 |     cin >> A[i]);
      |                ^
      |                ;
Language: C++

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

int main(){
  int N,A;
  cin >> N;
  bool n =true;
  for (int i=0;i<N;i++){
    cin >> A[i]);
    if (A[i]%2==1){
      continue;
    }
    else{
      if(A[i]%3==0||A[i]%5==0){
        continue;
      }
      else{
        n = false;
        break;
      }
    }
  }
  if(n){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     cin >> A[i]);
      |             ^
a.cc:10:10: error: invalid types 'int[int]' for array subscript
   10 |     if (A[i]%2==1){
      |          ^
a.cc:14:11: error: invalid types 'int[int]' for array subscript
   14 |       if(A[i]%3==0||A[i]%5==0){
      |           ^
a.cc:14:22: error: invalid types 'int[int]' for array subscript
   14 |       if(A[i]%3==0||A[i]%5==0){
      |                      ^
Language: C++

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

int main(){
  int N;
  string A;
  cin >> N;
  bool n =true;
  for (int i=0;i<N;i++){
    cin >> A(i);
    if (A(i)%2==1){
      continue;
    }
    else{
      if(A(i)%3==0||A(i)%5==0){
        continue;
      }
      else{
        n = false;
        break;
      }
    }
  }
  if(n){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   10 |     cin >> A(i);
      |            ~^~~
a.cc:11:10: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   11 |     if (A(i)%2==1){
      |         ~^~~
a.cc:15:11: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   15 |       if(A(i)%3==0||A(i)%5==0){
      |          ~^~~
a.cc:15:22: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int&)'
   15 |       if(A(i)%3==0||A(i)%5==0){
      |                     ~^~~
Language: C++

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

int main(){
  int N,A;
  cin >> N;
  bool n =true;
  for (int i=0;i<N;i++){
    cin >> A(i);
    if (A(i)%2==1){
      continue;
    }
    else{
      if(A(i)%3==0||A(i)%5==0){
        continue;
      }
      else{
        n = false;
        break;
      }
    }
  }
  if(n){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'A' cannot be used as a function
    9 |     cin >> A(i);
      |            ~^~~
a.cc:10:10: error: 'A' cannot be used as a function
   10 |     if (A(i)%2==1){
      |         ~^~~
a.cc:14:11: error: 'A' cannot be used as a function
   14 |       if(A(i)%3==0||A(i)%5==0){
      |          ~^~~
a.cc:14:22: error: 'A' cannot be used as a function
   14 |       if(A(i)%3==0||A(i)%5==0){
      |                     ~^~~
Language: Java

Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        int a;
        boolean b = true;
        for (int i=1;i<n;i++){
            a = scanner.nextInt();
            if (a%2==0&&!(a%3==0)&&!(a%5==0)){
                b = false;
            }
        }
        if (b){
            System.out.println("APPROVED");
        }else {
            System.out.println("DENIED");
        }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner scanner = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
        for (int i=1;i<n;i++){
        ^
Main.java:5: error: class, interface, enum, or record expected
        for (int i=1;i<n;i++){
                     ^
Main.java:5: error: class, interface, enum, or record expected
        for (int i=1;i<n;i++){
                         ^
Main.java:7: error: class, interface, enum, or record expected
            if (a%2==0&&!(a%3==0)&&!(a%5==0)){
            ^
Main.java:9: error: class, interface, enum, or record expected
            }
            ^
Main.java:13: error: class, interface, enum, or record expected
        }else {
        ^
Main.java:15: error: class, interface, enum, or record expected
        }
        ^
8 errors
Language: C

#include <stdio.h>

int main()
{
	int inputN, inputA;
	scanf("%d", &inputN);
	int intArray[100];

	// Create an array to store the input
	for (int i = 0; i < inputN; i++)
	{
		scanf("%d", &inputA);
		intArray[i] = inputA;
	}

	// Check for values inside the loop
	for (int i = 0; i < inputN; i++)
	{
		if (intArray[i] % 2 == 0)
		{
			if (intArray[i] % 3 == 0 || intArray[i] % 5 == 0)
			{
				continue;
			}
			else
			{
				printf_s("DENIED \n");
				return 0;
			}
		}
	}
	printf("APPROVED \n");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:27:33: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
   27 |                                 printf_s("DENIED \n");
      |                                 ^~~~~~~~
      |                                 printf
Language: C++

#include<iostream>
using namespace std;

int main()
{
	int n;
  int temp;
  bool can=true;
  cin >> n;
  for (int i-0;i<n;i++)
  {
    cin>>temp;
    if(temp%2==1)
      continue;
    else
    {
      if(temp%3==0||temp%5==0)
        continue;
      else
      {
		can=false;
        break;
      }
    }
  }
  if(can) cout<<"APPROVED";
  else cout<<"DENIED2;
}

Compiler output:
a.cc:27:14: warning: missing terminating " character
   27 |   else cout<<"DENIED2;
      |              ^
a.cc:27:14: error: missing terminating " character
   27 |   else cout<<"DENIED2;
      |              ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before '-' token
   10 |   for (int i-0;i<n;i++)
      |             ^
      |             ;
a.cc:10:19: error: expected ')' before ';' token
   10 |   for (int i-0;i<n;i++)
      |       ~           ^
      |                   )
a.cc:10:20: error: 'i' was not declared in this scope
   10 |   for (int i-0;i<n;i++)
      |                    ^
a.cc:28:1: error: expected primary-expression before '}' token
   28 | }
      | ^
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[i];
  	}
  
  	int ok=0;
  
  for(int j=0; j<n; j++){
  if(a[j]%2==0 && a[i]%3!=0){
    ok++;
  } 
  else if(a[j]%2==0 && a[i]%5!=0){
    ok++;
  }
  }
  
  if(ok!=0){
    cout << "DENIED" << endl;
  }
  else{
    cout << "APPROVED" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: 'i' was not declared in this scope
   16 |   if(a[j]%2==0 && a[i]%3!=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[i];
  	}
  
  	int ok=0;
  
  for(int j=0; j<n; j++){
  if(a[i]%2==0 && a[i]%3!=0){
    ok++;
  } 
  else if(a[i]%2==0 && a[i]%5!=0){
    ok++;
  }
  }
  
  if(ok!=0){
    cout << "DENIED" << endl;
  }
  else{
    cout << "APPROVED" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 'i' was not declared in this scope
   16 |   if(a[i]%2==0 && a[i]%3!=0){
      |        ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:9:8: error: 'i' undeclared (first use in this function)
    9 |   for (i=0;i<n;i++){
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int num = sc.nextInt();
		for(int i = 0; i < num; i ++) {
			int num2 = sc.nextInt();
			if(num2 % 2 == 0 ) {
				if(num2 % 3 == 0 || num2 % 5 == 0) {
					System.out.println("APPROVED");
				}
			}else {
				System.out.println("DENIED");
		}
	}

}

Compiler output:
Main.java:19: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int N;
    bool x =true;
    vector<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) {
            if(A.at(i) %3 !=0 && A.at(i) %5 != 0){
    		    x = false;
        	    break;
            }
    }
 
    if (x == true) {
        cout << "APPROVED" << endl;
    }
    else {
        cout << "DENIED" << endl;
   	}
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
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;
  vector<int> A(N);
  for(int i=0;i<N,i++){
    cin >> A.at(i);
  }
  int frag=1;
  for(int i=0;i<N;i++){
    if(A.at(i)%2==0){
      if(A.at(i)%3==0 || A.at(i)%5==0){
        frag = 0;
      }
    }
  }
  if(frag == 1)
    cout << "APPROVED";
  else
    cout << "DENIED";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before ')' token
    8 |   for(int i=0;i<N,i++){
      |                      ^
      |                      ;
Language: C++

#include <iostream>

using namespace std;

int main() {
    int x;
    cin >> x;
    if(x % 3) or (x % 5) cout << 'APPROVED';
    else cout << 'DENIED';
}

Compiler output:
a.cc:8:34: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    8 |     if(x % 3) or (x % 5) cout << 'APPROVED';
      |                                  ^~~~~~~~~~
a.cc:9:18: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    9 |     else cout << 'DENIED';
      |                  ^~~~~~~~
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before 'or' token
    8 |     if(x % 3) or (x % 5) cout << 'APPROVED';
      |               ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll              long long int
#define int             ll
#define ff              first
#define ss              second
#define pb              emplace_back
#define mpair           make_pair
#define pii             pair<int,int>
#define vi              vector<int>
#define mii             map<int,int>
#define pqb             priority_queue<int>
#define pqs             priority_queue<int,vi,greater<int> >
#define sbits(x)      __builtin_popcountll(x)
#define zbits(x)      __builtin_popcountlliltin_ctzll(x)
#define w(t)            int t;cin>>t;while(t--)
#define uset            unordered_set
#define dor(i, a, b)    for(int i =(a);i<=(b);i++)
#define mem(a,val)      memset((a),(val),sizeof((a))); 
#define TRACE
#ifdef TRACE
#define trace(...) __f(#__VA_ARGS__,__VA_ARGS__)
    template <typename Arg1>
     void __f(const char* name,Arg1&& arg1){
        cout<<name<<" : "<<arg1<<std::endl;
     }
     template <typename Arg1, typename... Args>
     void __f(const char* names,Arg1&& arg1,Args&&... args){
        const char* comma = strchr(names+1 ,',');
        cout.write(names, comma - names) << " : " << arg1<<" | ";__f(comma+1, args...);
     }
#else
#define trace(...)
#endif
/*     
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
*/
double pi = 2.0*acos(0);
void fast(){ios_base::sync_with_stdio(false);cin.tie(NULL);cout<<fixed<<setprecision(10);}
int max2(int a,int b){ if(a>b) return a;return b;}
int min2(int a,int b){ if(a<b)return a;return b;}
int max3(int a,int b,int c){ return max2(a,max2(b,c));}
int min3(int a,int b,int c){ return min2(a,min2(b,c));}

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////



void solve()
{
  int n;
  cin>>n;
  bool check = true;
  int x;
  for(int  i = 0;i<n;i++)
  {
    cin>>x;
    if(x%2==0 && x%3!=0 && x%5!=0)
      check = false;
  } 
  if(check)
  cout<<"APPROVED"<<endl;
  else
  cout<<"DENIED"<<<endl; 
}

signed main(void)
{
      fast();
     // w(t)
      solve();

}


Compiler output:
a.cc: In function 'void solve()':
a.cc:68:19: error: expected primary-expression before '<' token
   68 |   cout<<"DENIED"<<<endl;
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  	int n;
	cin >> n;
  	for(int i=0;i<n;i++){
		long long tp;
      	cin >> tp;
      	if(tp%2==0){
			if(tp%3==0 || tp%5===0)continue;
          	cout << "DENIED";
          	return 0;
        }
    }
  cout << "APPROVED";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:45: error: expected primary-expression before '=' token
   10 |                         if(tp%3==0 || tp%5===0)continue;
      |                                             ^
Language: C++

#include <bits/stdc++.h>
//#define fisier 1
using namespace std;
typedef long long ll;
const double dancila = 3.14159265359;

int main(){
	#ifdef fisier
        ifstream cin("input.in");
        ofstream cout("output.out");
    #endif	
		
	ios_base::sync_with_stdio();
	cin.tie(0);
		
	int N;
	cin >> N;
	REP(i, N)
	{
		int a;
		cin >> a;
		if (a % 2 == 0)
		{
			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:18:13: error: 'i' was not declared in this scope
   18 |         REP(i, N)
      |             ^
a.cc:18:9: error: 'REP' was not declared in this scope
   18 |         REP(i, N)
      |         ^~~
a.cc: At global scope:
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, n) for (ll i = 0, i##_len = (n); i < i##_len; ++i)
#define REPR(i, n) for (ll i = n; i >= 0; --i)
#define FOR(i, m, n) for (ll i = m, i##_len = (n); i < i##_len; ++i)
#define all(x) (x).begin(), (x).end()
template <class T>
inline bool chmax(T &a, T b)
{
  if (a < b)
  {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
  if (a > b)
  {
    a = b;
    return 1;
  }
  return 0;
}
ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }
const int INF = 1e9;
const ll LLINF = 1e16;

int main(void)
{
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++)
  {
    cin >> A[N];
  }

  for (int i = 0; i < N; i++)
  {
    int count = 0;
    int count2 = 0;
    if (A[i] % 2 == 0)
    {
      count2++;
      if (A[i] % 3 == 0 || A[i] % 5 == 0)
      {
        count++;
      }
    }
  }
  if (count == count2)
  {
    cout << "APPROVED" << endl;
  }
  else
    cout << "DENIED" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:55:16: error: 'count2' was not declared in this scope
   55 |   if (count == count2)
      |                ^~~~~~
Language: C

#include <iostream>
#include <string>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <stack>
#include <functional>
#include <bitset>
#include <assert.h>
using namespace std;

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


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

#include <iostream>
#include <string>
#include <cstdlib>
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <stack>
#include <functional>
#include <bitset>
#include <assert.h>
using namespace std;

int main() {
  int n;
  cin >> n;
  for(int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if(a % 3 == 0 || a % 5 == 0) {
      cout << "APPROVED" << endl;
      retrurn 0;
    }
  }
  cout << "DENIED" << endl;
  reruen 0;
}


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

int main() {
   int N;
   cin >> N;
  vector<int> vec(N);
  for(int i = 0;i < N; i++){
    cin >> vec.at(i);
  }
  
  bool have = true;
  for(int i = 0;i < N; i++){
    if(vec.at(i) % 2 == 0){
      if(vec.at(i) % 3 != 0 && vec.at(i) % 5 != 0){
      have = false;
    }
    }
  }
  
  if(have){
    cout << "APPROVED";
  }
  else{
    cout << "DENIED";
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:4: error: 'cin' was not declared in this scope
    3 |    cin >> N;
      |    ^~~
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<int> vec(N);
      |   ^~~~~~
a.cc:4:10: error: expected primary-expression before 'int'
    4 |   vector<int> vec(N);
      |          ^~~
a.cc:6:12: error: 'vec' was not declared in this scope
    6 |     cin >> vec.at(i);
      |            ^~~
a.cc:11:8: error: 'vec' was not declared in this scope
   11 |     if(vec.at(i) % 2 == 0){
      |        ^~~
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << "APPROVED";
      |     ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << "DENIED";
      |     ^~~~
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[] a = new int[n];
    String s= "APPROVED";
    int cnt == 0;
    for(int i= 0; i < n; i++){
      a[i] = sc.nextInt();
      if(a[i] % 2==0 ) {
        cnt++;
        if(a[i] % 3!= 0 || a[i] % 5 != 0) {
          s = "DENIED";
        }
      }
    }
    if(cnt ==0) s = "DENIED";
    System.out.println(s);
  }
}


Compiler output:
Main.java:8: error: ';' expected
    int cnt == 0;
           ^
1 error
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[] array = new int[n];
    for(int i= 0; i < n; i++){
      array[i] = sc.nextInt();
    }
    String s = "DENIEED";
    for(int i=0;i < n;i++){
      if(array[i] % 3 == 0) s = "APPROVE";
      if(arrau[i] % 5 == 0) s = "APPROVE";
    }
    System.out.println(s);
  }
}

Compiler output:
Main.java:13: error: cannot find symbol
      if(arrau[i] % 5 == 0) s = "APPROVE";
         ^
  symbol:   variable arrau
  location: class Main
1 error
Language: C

#include<stdio.h>

int main(void)
{
   int n,a[1000],i;
   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("DENIED\n");
         return 0;
      }
   }
   printf("APPROVD\n");
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:9: error: expected '(' before '{' token
    9 |       if{(a[i]%2==0) && (a[i]%3 != 0) && (a[i]%5!=0)}{
      |         ^
      |         (
main.c:9:53: error: expected ';' before '}' token
    9 |       if{(a[i]%2==0) && (a[i]%3 != 0) && (a[i]%5!=0)}{
      |                                                     ^
      |                                                     ;
Language: C

#include<stdio.h>

int main(void)
{
   int n,a[1000],i;
   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("DENIED\n");
         return 0;
      }
   }
   printf("APPROVD\n");
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected identifier before '(' token
    9 |       if(a[i]%2==0) && (a[i]%3 != 0) && (a[i]%5!=0){
      |                        ^
Language: C

#include<stdio.h>

int main(void)
{
   int n,a[1000],,b[1000]i;
   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("DENIED\n");
         return 0;
      }
   }
   printf("APPROVD\n");
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected identifier or '(' before ',' token
    5 |    int n,a[1000],,b[1000]i;
      |                  ^
main.c:7:8: error: 'i' undeclared (first use in this function)
    7 |    for(i=0; i<n; i++){
      |        ^
main.c:7:8: note: each undeclared identifier is reported only once for each function it appears in
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;
      return 0;
    }
  }
  cout "APPROVED" << endl;   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: expected ';' before string constant
   15 |   cout "APPROVED" << endl;
      |       ^~~~~~~~~~~
      |       ;
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   int[] A = new int[N];
   boolean flag=true;
   
   for(int i=0;i<N;i++){
     A[i] = sc.nextInt();
     if(A[i]%2==0&&(A[i]%3!=0||A[i]%5!=0)){
     	flag=fault;
     }
   }
      
      
   if(flag){
     System.out.println("APPROVED");
   }else{
     System.out.println("DENIED");
   }
 
 }
}


Compiler output:
Main.java:13: error: cannot find symbol
     	flag=fault;
     	     ^
  symbol:   variable fault
  location: class Main
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:11: error: ']' expected
     int A[i] = sc.nextInt();
           ^
Main.java:11: error: ';' expected
     int A[i] = sc.nextInt();
            ^
Main.java:12: error: illegal start of expression
     if(A[i]%2==0&&(A[i]%3!==0||A[i]%5!==0)){
                            ^
Main.java:12: error: illegal start of expression
     if(A[i]%2==0&&(A[i]%3!==0||A[i]%5!==0)){
                                        ^
4 errors
Language: C

#include <stdio.h>
2
3 int main (void) {
4 int i;
5
6 int a[100];
7 for (i = 0; i < n; i++) {
8 scanf("%d", &a[i]);
9 }
10
11 for (i = 0; i < n; i++) {
12 if (a[i] % 2 == 0 && a[i] % 3 != 0 && a[i] % 5 != 0) {
13 puts("DENIED");
14 return 0;
15 }
16 }
17 puts("APPROVED");
18
19 return 0;
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 2
      | ^
Language: C++

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

int main() {
  int n;
  int flg = 0;
  cin >> n;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:29: error: expected primary-expression before '%' token
   16 |     if (0 != val.at(i) % 3 %% 0 != val.at(i) % 5) {
      |                             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=0;i<n;i++)
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
#include<stdio.h>
int main(void){
  int N,A[100],i,CHECK = 0;
  std::cin >> N;
  for(i = 0;i<N;i++){
    std::cin >> A[i];
    if(A[i]%2 == 0){
      if((A[i]%3 != 0) && (A[i]%5 != 0)
        CHECK = 1;
    }
  }
  if(CHECK == 1)
    printf("DENIED");
  else
    printf("APPROVED");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:40: error: expected ';' before 'CHECK'
    9 |       if((A[i]%3 != 0) && (A[i]%5 != 0)
      |                                        ^
      |                                        ;
   10 |         CHECK = 1;
      |         ~~~~~                           
a.cc:11:5: error: expected primary-expression before '}' token
   11 |     }
      |     ^
a.cc:10:19: error: expected ')' before '}' token
   10 |         CHECK = 1;
      |                   ^
      |                   )
   11 |     }
      |     ~              
a.cc:9:9: note: to match this '('
    9 |       if((A[i]%3 != 0) && (A[i]%5 != 0)
      |         ^
a.cc:11:5: error: expected primary-expression before '}' token
   11 |     }
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:36: error: expected ';' before 'if'
   15 |     } while (a[i]<1 || a[i] > 1000)
      |                                    ^
      |                                    ;
   16 | 
   17 |     if((a[i] % 2 != 0) || (a[i] % 3 == 0) || (a[i] % 5 == 0))
      |     ~~
Language: C

#include<stdio.h>
int main(void)
{
  int x,flag=0;
  char box[100];
  scanf("%d",&n);
  for(x=0;x<n;x++)
    scanf("%d",&box[x]);
  for(x=0;x<n;x++){
    if(box[x]%2==0){
      if(box[x]%3==0||box[x]%5)
        flag=1;
    }
  }
  if(flag)
    printf("APPROVED");
  else
    printf("DENIED");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:15: error: 'n' undeclared (first use in this function)
    6 |   scanf("%d",&n);
      |               ^
main.c:6:15: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
 
int main(void){
    int x[100];
    int n;
    int i;
    int k=0;
    
    do{
    scanf("%d",&n);
    }while(n<1 || n>100);
    for(i=0;i<n;i++){
        do{
        scanf("%d",&x[i]);
        }while(x[i]<1 || x[i]>1000);
    }
 
    for(i=0;i<n;i++){
        if(x[i]%2==0){
          if(x[i]%3!=0 && x[i]%3!=0){
              k=1;
              }
          }
        }
    }
    if(k==0)
        printf("APPROVED");
    if(k==1)
        printf("DENIED");
}

Compiler output:
main.c:26:5: error: expected identifier or '(' before 'if'
   26 |     if(k==0)
      |     ^~
main.c:28:5: error: expected identifier or '(' before 'if'
   28 |     if(k==1)
      |     ^~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C

#include<stdio.h>
 
int main(void){
    int x[100];
    int n;
    int i;
    int k=0;
    
    do{
    scanf("%d",&n);
    }while(n<1 || n>100);
    for(i=0;i<n;i++){
        do{
        scanf("%d",&x[i]);
        }while(x[i]<1 || x[i]>1000);
    }
 
    for(i=0;i<n;i++){
        if(x[i]%2==0){
          if(x[i]%3!=0 && x[i]%3!=0)
              k=1;
              }
          }
        }
    }
    if(k==0)
        printf("APPROVED");
    if(k==1)
        printf("DENIED");
}

Compiler output:
main.c:25:5: error: expected identifier or '(' before '}' token
   25 |     }
      |     ^
main.c:26:5: error: expected identifier or '(' before 'if'
   26 |     if(k==0)
      |     ^~
main.c:28:5: error: expected identifier or '(' before 'if'
   28 |     if(k==1)
      |     ^~
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: C


#include <stdio.h>

int main(void) {
    int pointN, scanNumber;
    int result = 0;
    
    if(scanf("%d", &pointN)==1 && pointN<100 && pointN>=1){
        for(int i=0; i<pointN; i++){
            if(scanf("%d", &scanNumber)==1 && scanNumber<1000 && scanNumber>=1){
                if(scanNumber%2==0){
                    if(scanNumber%3!=0 && scanNumber%5!=0){
                        result = 1;                    }
                }
            }else{
                result = 1;
            }
        }
    }else{
        result = 1;
    }
    
    if(result==0){
        printf("APPROVED");
    }else{
        printf("DENIED");
    }


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

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

Compiler output:
main.c: In function 'main':
main.c:4:15: error: invalid initializer
    4 |     int x[99]=0;
      |               ^
Language: C

#include <stdio.h>

int main(void){

  int n;
  int An[100];
  int i,f = 0;
  
  do{
    scanf("%d", &n);
  }while(n<1 || n>100);
  
  for(i = 0; i < n; i++){
    scanf("%d", %An[i]);
  }
  
  for(i = 0; i < n; i++){
    if((An[i] % 2) == 0){
      if(((An[i] % 3) != 0)&&((An[i] % 5) != 0)){
        f = 1;
      }
    }
  }
  if(f = 0){
    printf("APPROVED");
  }else{
    printf("DENIED");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected expression before '%' token
   14 |     scanf("%d", %An[i]);
      |                 ^
Language: C

#include <stdio.h>

int main(void) {
    
    int i;
    int num;
    int su[100];
    int judge=0;
    
    do{
        scanf("%d", &num);
       
    }while(num<1 || num>100);
    
    for(i=0; i<num; i++){
        do{
            scanf("%d", &su[i]);
           
        }while(su[i]<1 || su[i]>1000)
        
        if(su[i]%2==0){
            if(su[i]%3!=0 && su[i]%5!=0)
                judge=1;
        }
    }
    
    if(judge=0)
        printf("APPROVED");
    else
        printf("DENIED");
    
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:19:38: error: expected ';' before 'if'
   19 |         }while(su[i]<1 || su[i]>1000)
      |                                      ^
      |                                      ;
   20 | 
   21 |         if(su[i]%2==0){
      |         ~~
Language: C

#include <stdio.h>
 int main (void) {
 int i;

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

 for (i = 0; i < n; i++) {
 if (a[i] % 2 == 0 && a[i] % 3 != 0 && a[i] % 5 != 0) {
   puts("DENIED");
 return 0;}
 }
 puts("APPROVED");

 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:18: error: 'n' undeclared (first use in this function)
    6 |  for (i = 0; i < n; i++) {
      |                  ^
main.c:6:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C


#include <stdio.h>
#define NUMBER 100

int main(void) {
    
    int i;
    int num;
    int su[NUMBER];
    int judge=0;
    
    do{
        scanf("%d", &num);
    }while(num<1 || num>NUMBER);
    
    for(i=0; i<num; i++){
        do{
            scanf("%d", &su[i]);
        }while(su[i]<1 || su[i]>1000)
        
        if(judge=1)
            judge=1;
        else{
            if(su[i]%2==0){
                if(su[i]%3==0)
                    judge=0;
                if(su[i]%5==0)
                    judge=0;
                else
                    judge=1;
            }
            else
                judge=0;
        }
    }
    
    if(judge=0)
        printf("APPROVED");
    else
        printf("DENIED");
    
	return 0;
}




Compiler output:
main.c: In function 'main':
main.c:19:38: error: expected ';' before 'if'
   19 |         }while(su[i]<1 || su[i]>1000)
      |                                      ^
      |                                      ;
   20 | 
   21 |         if(judge=1)
      |         ~~                            
main.c:23:9: error: 'else' without a previous 'if'
   23 |         else{
      |         ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:17: error: expected ';' before 'for'
    7 |   scanf("%d",&n)
      |                 ^
      |                 ;
    8 |   for(i=0;i<n;i++)
      |   ~~~
Language: C

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

int main(void){
    int x[99];
    int n;
    int i;
    int k=0;

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

    for(i=0;i<n;i++){
        if(x[i]%2==0)
        if(x[i]%3!=0){
            k=1;
        }
        else{
            if(x[i]%5!=0){
            k=1;
        }
        }
    }
    if(k==0){
        printf("APPROVED");
    }
    else{
        printf("DENIED");
    }
    

}

Compiler output:
main.c:40:5: error: redefinition of 'main'
   40 | int main(void){
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void){
      |     ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected identifier or '(' before ';' token
    4 |   int i,n,;
      |           ^
Language: C

#include <stdio.h>
int main(void)
{
  int n,;
  printf("N,A1,A2...Anを入力してください");
  scanf("%d",&n);
  int a[n],i,k=0;
  for(i=0,i<n,i++){
    scanf("%d",&a[i]);
    if((a[i] % 2 == 1) || (a[i] % 3 == 0) || (a[i] % 5 == 0))
      k++;
  }
  if(k==n)
    printf("APPROVED\n");
  else
    printf("DENIED\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: expected identifier or '(' before ';' token
    4 |   int n,;
      |         ^
main.c:8:18: error: expected ';' before ')' token
    8 |   for(i=0,i<n,i++){
      |                  ^
      |                  ;
main.c:8:18: error: expected expression before ')' token
Language: C

#include <studio.h>
int main(void)
{
  int n,;
  printf("N,A1,A2...Anを入力してください");
  scanf("%d",&n);
  int a[n],i,k=0;
  for(i=0,i<n,i++){
    scanf("%d",&a[i]);
    if((a[i] % 2 == 1) || (a[i] % 3 == 0) || (a[i] % 5 == 0))
      k++;
  }
  if(k==n)
    printf("APPROVED\n");
  else
    printf("DENIED\n");
  
  return 0;
}

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

#include <stdio.h>
#define NUMBER 100

int main(void) {
    
    int i;
    int num;
    int su[NUMBER];
    int judge=0;
    
    do{
        scanf("%d", &num);
        if(num<1 || num>NUMBER)
            printf("1～%dで入力してください：", NUMBER);
    }while(num<1 || num>NUMBER);
    
    for(i=0; i<num; i++);{
        do{
            scanf("%d", &su[i]);
            if(su[i]<1 || su[i]>1000)
                printf("1～1000で入力してください：");
        }while(su[i]<1 || su[i]>1000)
        
        if(judge=1)
            judge=1;
        else{
            if(su[i]%2==0){
                if(su[i]%3==0)
                    judge=0;
                if(su[i]%5==0)
                    judge=0;
                else
                    judge=1;
            }
            else
                judge=0;
        }
    }
    
    if(judge=0)
        printf("APPROVED");
    else
        printf("DENIED");
    
	return 0;
}



Compiler output:
main.c: In function 'main':
main.c:22:38: error: expected ';' before 'if'
   22 |         }while(su[i]<1 || su[i]>1000)
      |                                      ^
      |                                      ;
   23 | 
   24 |         if(judge=1)
      |         ~~                            
main.c:26:9: error: 'else' without a previous 'if'
   26 |         else{
      |         ^~~~
Language: C++

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

int main(){
  int s[2000],n;
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>s[i];
  }
  bool odd=false;
  for(int i=0;i<n;i++){
    if(s[i]%2==0&&s[i]%3!=0&&s[i]%5!=0){
      odd=true;
    
    }
  }
  if(odd) cout<<"DENIED";
  else{
    cout<<"APPROVED"<<endl;
  }
}
}


Compiler output:
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'n' undeclared (first use in this function)
    6 |   for(i=0;i<n;i++)
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:23: error: expected ';' before 'return'
   15 |     printf("APPROVED")
      |                       ^
      |                       ;
   16 |     return 0;
      |     ~~~~~~