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

import java.util.*;

/**
 * Main
 */
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Boolean result = true;
		int n = sc.nextInt();
		int array[] = new int[n];

		for (int i = 0; i < n  ; i++) {
			if (array[i] % 2) {
				if (array[i] % 3 != 0 || array[i] % 5 != 0) {
					result = false;
				}
			}
		}
		// 結果出力
		System.out.println(result ? "APPROVED" : "DENIED");
	}
}

Compiler output:
Main.java:14: error: incompatible types: int cannot be converted to boolean
			if (array[i] % 2) {
			             ^
1 error
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <algorithm>
#include <stdint.h>
#include <queue>
#include <bitset>
#include <iomanip>
#define PI (3.14159265358979323846)
#define INF (1e+9)
#define DIV_NUM (1000000007)

using namespace std;

int main()
{

	/*--------------------------------*/
		/* 数字宣言と入力*/
	int N,a,i;
	cin >> N;
	vector<int> vecX(N);

	for (i=0;i<N;i++){
      cin >> vecX[i];
      if(vecX[i]%2){
        if(vecX[i]/3==0 ||vecX[i]/5==0){
         	a=1; 
        }
        else{
          	a=0;
          	exit for;
        }
      }
    }	

	if(a==1){
 		cout <<"APPROVED"  << endl;
    }
  	else{
 		cout <<"DENIED"  << endl;
    }
		
	//cout << vecX[0] << " " << vecX[1] << " " << vecX[2] << endl;


	/*----------------------------------*/
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:21: error: expected ';' before 'for'
   33 |                 exit for;
      |                     ^~~~
      |                     ;
Language: C++

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

int main() {
int N;
cin >> N;
vector<int> A(N);
 
  for( int j = 0; j < N; j++){
        cin >> A.at(j);
  }
  
  int i = 0;
  while(i < N){
    int r;
    r = A.at(i) %2;
    if(r == 0){
      int p, q;
      p =  A.at(i) %3;
      q =  A.at(i) %5;
      	if(!(p == 0 || q == 0)){
      		 cout << "DENIED"<<endl;
    		   break;
   		    }
    	}
           i++;
   	       if( i == N){
    	   cout << "APPROVED"<<endl;
 		 }
  	}

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

#include <iostream>

using namespace std;

int main() {
    int a,n,ok=1;
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>a;
        if(a%2==0){
            if(!(a%3==0|| a%==0)){
                ok=0;
            }
        }
    }
    if(ok==1){
        cout<<"APPROVED";
    }
    else{
        cout<<"DENIED";
    }
    
    return 0;
}

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

#include <iostream>

using namespace std;
int main(){
  int a,n,ok=1;
  cin>>n;
  for(int i=1;i<=n;i++){
      cin>>a;
      if(a%2==0){
          if!((a%3==0||a%5==0)){
              ok=0;
          }
      }
  }
  if(ok==1){
     cout<<"APPROVED";
    }
    else
        cout<<"DENIED";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected '(' before '!' token
   10 |           if!((a%3==0||a%5==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:20: error: 'n' undeclared (first use in this function)
    6 |         for(i=0; i<n; i++){
      |                    ^
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
	int i;
  	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 && 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:21: error: 'n' undeclared (first use in this function)
    6 |         scanf("%d",&n);
      |                     ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:18: error: lvalue required as left operand of assignment
   11 |         if(a[i]%2=0 && a[i]%3!=0 && a[i]%5!=0){
      |                  ^
Language: C

#include<stdio.h>
int main(void)
{
	int i;
  	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 && 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:21: error: 'n' undeclared (first use in this function)
    6 |         scanf("%d",&n);
      |                     ^
main.c:6:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:18: error: lvalue required as left operand of assignment
   11 |         if(a[i]%2=0 && a[i]%3!=0 && a[i]%5!=0)
      |                  ^
Language: C++

#include<iostream>
#include<math.h>
using namespace std;

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




Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'vector' was not declared in this scope
    8 |         vector<long> a(n);
      |         ^~~~~~
a.cc:3:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    2 | #include<math.h>
  +++ |+#include <vector>
    3 | using namespace std;
a.cc:8:16: error: expected primary-expression before 'long'
    8 |         vector<long> a(n);
      |                ^~~~
a.cc:10:14: error: 'a' was not declared in this scope
   10 |       cin >> a[i];
      |              ^
a.cc:13:10: error: 'a' was not declared in this scope
   13 |       if(a[i] % 2 == 0){
      |          ^
Language: C++

#include<stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
  int n;
  cin>>n;
  vector<int>a(n);
  int ad=1;
  rep(i,n){
    cin>>a[i];
      if(a[i]%2==0){
       if(a[i]%3==0 || a[i]%5==0)
         ad--;
      }
   }
  if(ad)
    cout<<"APPROVED"<<endl;
  else
    cout<<"DENIED"<<endl;
}

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


#include<iostream>
using namespace std;
int main()
{
  int N;
  cin >> N;
  
  int A[N];
  cin >> A[N];
  string ANS = "APROVED";
  
  for(int i=0; i<N; i++){
    
  if(A[i]%2==0 and A[i]%3!=0 and A[i]%5!=0){
    ANS = "DENIED";
  }
   

    
    
    return 0;
}

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


#include<iostream>
using namespace std;
int main()
{
  int N;
  cin >> N;
  
  int A[N];
  cin >> A[N];
  
  for(int i=0; i<N; i++){
    
  if(A[i]%2=0 && A[i]%3==0){
    cout << "x";
  }else if(A[i]%2==0 && A[i]%5==0){
    cout << "x";
  }else if(A[i]%2==1){
    cout << "x";
  }else{
    break;
  }
    
  string S;
  cin >> S;
    if(S.length()==N){
      cout << "APPROVED";
    }else{
      cout << "DENIED";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: lvalue required as left operand of assignment
   14 |   if(A[i]%2=0 && A[i]%3==0){
      |      ~~~~^~
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++


#include<iostream>
using namespace std;
int main()
{
  int N;
  cin >> N;
  
  int A[N];
  cin >> A[N];
  
  for(int i=0; i<N; i++){
    
  if(A[i]%2=0 && A[i]%3=0){
    cout << "x";
  }else if(A[i]%2=0 && A[i]%5=0){
    cout << "x";
  }else if(A[i]%2=1){
    cout << "x";
  }else{
    break;
  }
    
  string S;
  cin >> S;
    if(S.length()=N){
      cout << "APPROVED";
    }else{
      cout << "DENIED";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: lvalue required as left operand of assignment
   14 |   if(A[i]%2=0 && A[i]%3=0){
      |             ~~^~~~~~~~~
a.cc:16:21: error: lvalue required as left operand of assignment
   16 |   }else if(A[i]%2=0 && A[i]%5=0){
      |                   ~~^~~~~~~~~
a.cc:18:16: error: lvalue required as left operand of assignment
   18 |   }else if(A[i]%2=1){
      |            ~~~~^~
a.cc:26:16: error: lvalue required as left operand of assignment
   26 |     if(S.length()=N){
      |        ~~~~~~~~^~
a.cc:32:2: error: expected '}' at end of input
   32 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int , int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvec;
typedef vector<vector<bool>> vveb;
typedef vector<vector<string>> vves;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define fs first
#define sc second
#define pb push_back
#define pp pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
typedef long long int64;
//const int64 INF = 1LL << 58;
#define dame { puts("-1"); return 0;}
#define YES { cout << "YES" << endl; return 0; }
#define NO { cout << "NO" << endl; return 0; }
#define Yes { cout << "Yes" << endl; return 0; }
#define No { cout << "No" << endl; return 0; }
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
int dx[] = {0, 0, -1, 1};
int dy[] = {1, -1, 0, 0};

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
 
  	int n;
  	cin >> n;
  	vi a(n);
  	rep(i,n){cin >> a.at(i);
            if(a.at(i)%2 == 0){
            	if(a.at(i)%3 != 0 && a.at(i)%5 != 0 ){cout << DENIED << endl;return 0;}	
            }
            
    }
  cout << APRROVED << endl;
  return 0;
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:55:63: error: 'DENIED' was not declared in this scope
   55 |                 if(a.at(i)%3 != 0 && a.at(i)%5 != 0 ){cout << DENIED << endl;return 0;}
      |                                                               ^~~~~~
a.cc:59:11: error: 'APRROVED' was not declared in this scope
   59 |   cout << APRROVED << endl;
      |           ^~~~~~~~
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("DEFINED");
            return 0;

        }
    }
    puts("APPROVED");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: 'n' undeclared (first use in this function)
    7 |     for (i=0; i<n; i++){
      |                 ^
main.c:7:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:26: error: expected ';' before '}' token
    8 |         scanf("%d",&a[i])
      |                          ^
      |                          ;
    9 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
#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];
  string ans = "APPROVED";
  rep(i,n){
    if ( a[i]%2 != 0 )continue;
    if ( a[i]%3 != 0 && a[i]%5 != 0 ) {
      ans = "DENIED";
      break;
    }
  
  cout << ans << endl;
}

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

#include <stdio.h>

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

    printf("APPROVED\n");

    return 0;


}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{

bool ans=true;
   int n;
  cin>>n;
  int x;
  vector<int> arr;
  for(int i=0;i<n;i++)
  {
    cin>>x;
    arr.push_back(x);
  }
 for(int i=0;i<arr.size();i++)
 {
 if(arr[i]%2==0&&arr[i]%3!=0&&arr[i]%5!=0)
 {cout<<"DENIED"<<endl;
  return 0;
 }
cout<<"APPROVED"<<endl;
    
 } 

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

#include<bits/stdc++.h>
using namespace std;
void main()
{

bool ans=true;
   int n;
  cin>>n;
  int x;
  vector<int> arr;
  for(int i=0;i<n;i++)
  {
    cin>>x;
    arr.push_back(x);
  }
 for(int i=0;i<arr.size();i++)
 {
 if(arr[i]%2==0&&arr[i]%3!=0&&arr[i]%5!=0)
 {cout<<"DENIED"<<endl;
  return;
 }
cout<<"APPROVED"<<endl;
     
 } 

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:20:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   20 |   return;
      |   ^~~~~~
a.cc:24:3: error: expected '}' at end of input
   24 |  }
      |   ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

int main()
{

bool ans=true;
  
  int n;
  cin>>n;
  int x;
  vector<int> arr;
  for(int i=0;i<n;i++)
  {
    cin>>x;
    arr.push_back(x);
  }
 for(int i=0;i<arr.size();i++)
 {
 if(arr[i]%2==0&&arr[i]%3!=0&&arr[i]%5!=0)
 {cout<<"DENIED"<<endl;
  return 0;
 }
  cout<<"APPROVED"<<endl;
   
   
   return 0
   
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: expected ';' before '}' token
   27 |    return 0
      |            ^
      |            ;
   28 | 
   29 |  }
      |  ~          
a.cc:29:3: error: expected '}' at end of input
   29 |  }
      |   ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main()
{

bool ans=true;
  
  int n;
  cin>>n;
  int x;
  vector<int> arr;
  for(int i=0;i<n;i++)
  {
    cin>>x;
    arr.push_back(x);
  }
 for(int i=0;i<arr.size();i++)
 {
 if(arr[i]%2==0&&arr[i]%3!=0&&arr[i]%5!=0)
 {cout<<"DENIED"<<endl;
  return;
 }
  cout<<"APPROVED"<<endl;
   
   
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:22:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   22 |   return;
      |   ^~~~~~
a.cc:27:3: error: expected '}' at end of input
   27 |  }
      |   ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main()
{

bool ans=true;
  
  int n;
  cin>>n;
  int x;
  vector<int> arr;
  for(int i=0;i<n;i++)
  {
    cin>>x;
    arr.push_back(x);
  }
 for(int i=0;i<arr.size();i++)
 {
 if(arr[i]%2==0)
 {
 if((arr[i]%3||arr[i]%5==0||(arr[i]%3==0&&arr[i]%5==0))==0)
 {
   ans=false;
   break;
 }
 }
 }
   
if(ans)
  cout<<"APPROVED";
   else
     cout<<"DENID";
 
 }
  ==0

Compiler output:
a.cc:36:3: error: expected unqualified-id before '==' token
   36 |   ==0
      |   ^~
Language: C++

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

int main()
{

bool ans=true;
  
  int n;
  cin>>n;
  int x;
  vector<int> arr;
  for(int i=0;i<n;i++)
  {
    cin>>x;
    arr.push_back(x);
  }
 for(int i=0;i<arr.size();i++)
 {
 if(arr[i]%2==0)
 {
 if(!(arr[i]%3||arr[i]%5==0||(arr[i]%3==0&&arr[i]%5==0)))
 {
   ans=false;
   break;
 }
 }
   
if(ans)
  cout<<"APPROVED";
   else
     cout<<"DENIED";
 
 }
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: expected '}' at end of input
   34 |  }
      |   ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

int main()
{

bool ans=true;
  
  int n;
  cin>>n;
  int x;
  vector<int> arr;
  for(int i=0;i<n;i++)
  {
    cin>>x;
    arr.push_back(x);
  }
 for(int i=0;i<arr.size();i++)
 {
 if(arr[i]%2==0)
 {
 if(!(arr[i]%3||arr[i]%5==0))
 {
   ans=false;
   break;
 }
 }
   
if(ans)
  cout<<"APPROVED";
   else
     cout<<"DENIED";
 
 }
  
  






Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: expected '}' at end of input
   34 |  }
      |   ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
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.at(i) % 2==0 && vec.at(i) % 3!= 0 && vec.at(i) % 5 != 0){
      s = "DENIED";
    }
  }
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ')' before ';' token
    9 |   for(int i=0;i<N;i++;){
      |      ~               ^
      |                      )
a.cc:9:23: error: expected primary-expression before ')' token
    9 |   for(int i=0;i<N;i++;){
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int N;
  cin >> N;
  
  int t=0;
  
  vector<double> A(N);
  for (int i = 0; i < N; i++) {
  cin >> A.at(i);
  }
  
  
  for(int i=0; i<N; i++){
    
    double S,T,U;
    S=A.at(i)/6;
    T=A.at(i)/10;
    U=A.at(i)/2;
    
    int V,W,X;
    V=A.at(i)/6;
    W=A.at(i)/10;
    X=A.at(i)/2;
    
    
    if(V==S || W==T || X!=U ){
      t++;
    }
    
    else{
      t+=0;
    }
  }
  
  if(t==N){
    cout << "APPROVED" << endl;
  }
    
  else{
    cout << "DENIED" << endl;  
  }


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

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

int main() {
  
  int N,A;
  cin >> N;
  int count=0;
  
  for(int i=0; i<N; i++){
    cin >> A;
  

  }

  for(int i=0; i<N; i++){
    if(A%2==1){
      count++;
    }
    
    else if(A%6==0){
      count++;
    }
    
    else if(A%10==0){
      count++;
    }
    
    else {
      cout << "DENIED" << endl;
      break;
    }
  }
  }
    
    if(count==N){
      cout << "APPROVED" << endl;
    }
}
      
    
    
  
  
  
  

Compiler output:
a.cc:36:5: error: expected unqualified-id before 'if'
   36 |     if(count==N){
      |     ^~
a.cc:39:1: error: expected declaration before '}' token
   39 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: no post-increment operator for type
   14 |       count++;
      |            ^~
a.cc:16:9: error: 'nEven' was not declared in this scope
   16 |         nEven++;
      |         ^~~~~
a.cc:20:13: error: 'nEven' was not declared in this scope
   20 |   if(count==nEven)
      |             ^~~~~
Language: C++

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

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


Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:14:7: error: 'count' was not declared in this scope; did you mean 'std::count'?
   14 |       count++;
      |       ^~~~~
      |       std::count
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: 'std::count' declared here
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
a.cc:16:9: error: 'nEven' was not declared in this scope
   16 |         nEven++;
      |         ^~~~~
a.cc:20:6: error: 'count' was not declared in this scope; did you mean 'std::count'?
   20 |   if(count==nEven)
      |      ^~~~~
      |      std::count
/usr/include/c++/14/pstl/glue_algorithm_defs.h:101:1: note: 'std::count' declared here
  101 | count(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, const _Tp& __value);
      | ^~~~~
a.cc:20:13: error: 'nEven' was not declared in this scope
   20 |   if(count==nEven)
      |             ^~~~~
a.cc:21:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |     cout<<"APPROVED\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |     cout<<"DENIED\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

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

#include<iostream>
using namespace std;
int main () {
  int N;
  cin >> N;
  bool ok = true;
  for (int i = 0; i < N; i ++) {
    int a;
    cin >> a;
    if (!(a % 2)) {
      if ((a % 5) && (a % 3)) ol = false;
    }
  }
  cout << (ok ? "APPROVED" : "DENIED") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: 'ol' was not declared in this scope; did you mean 'ok'?
   11 |       if ((a % 5) && (a % 3)) ol = false;
      |                               ^~
      |                               ok
Language: C++

#include<iostream>
using namespace std;
int main () {
  int N;
  cin >> N;
  bool ok = true;
  for (int i = 0; i < N; i ++) {
    int a;
    cin >> a;
    if (!(a % 2)) {
      if ((a % 5) && (a % 3)) ol = false;
    }
  }
  cout << (ok: "APPROVED", "DENIED") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: 'ol' was not declared in this scope; did you mean 'ok'?
   11 |       if ((a % 5) && (a % 3)) ol = false;
      |                               ^~
      |                               ok
a.cc:14:14: error: expected ')' before ':' token
   14 |   cout << (ok: "APPROVED", "DENIED") << endl;
      |           ~  ^
      |              )
Language: C++

n = int(input())
a = list(map(int,input().split()))

for i in range(n):
    if not (a[i] % 2 != 0  or (a[i] % 3 == 0 or a[i] % 5 == 0)):
        print('DENIED')
        exit()
print('APPROVED')

Compiler output:
a.cc:6:15: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
    6 |         print('DENIED')
      |               ^~~~~~~~
a.cc:8:7: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
    8 | print('APPROVED')
      |       ^~~~~~~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
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:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |  for (i = 0; i < n; i++) {
      |                  ^
a.cc:11:18: error: 'n' was not declared in this scope
   11 |  for (i = 0; i < n; i++) {
      |                  ^
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:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |  for (i = 0; i < n; i++) {
      |                  ^
a.cc:11:18: error: 'n' was not declared in this scope
   11 |  for (i = 0; i < n; i++) {
      |                  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    ll n,ans=1;
    cin>>n;
    for(int i=0;i<n;i++){
        int x;
        cin>>x;
        if(x%3!=0 && x%5!=0){
            ans=0;
            break;
        }
        
    }
    if(ans)
        cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll n,ans=1;
      |     ^~
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |     cin>>n;
      |          ^
      |          yn
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |             ans=0;
      |             ^~~
      |             abs
a.cc:16:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |     if(ans)
      |        ^~~
      |        abs
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<iostream>
//using namespace std;
 
int main() {
  int a,b;
  int flag = 0;
  cin>>a;
  for(int i=0;i<a;i++){
    cin>>b;
    if(b%2==0){
        if(b%3!=0 && b%5!=0){
            cout<<"DENIED"<<endl;
            flag = 1;
            break;
        }
    }    
  }
  if(flag == 0){
      cout<<"APPROVED"<<endl;
  }

//  cout<<(a==b&&b==c||a!=b&&b!=c&&c!=a?"No":"Yes")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |             cout<<"DENIED"<<endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |             cout<<"DENIED"<<endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:19:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |       cout<<"APPROVED"<<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |       cout<<"APPROVED"<<endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

int main (void)
{
  int n,j=0;
  int a[100];
  
  scanf("%d\n", &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");
	  j++;
	  break;
	}
  }
  
  if (j==0)
    printf("APPROVED");
  
  return 0;
}


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

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

Compiler output:
a.cc:17:5: error: expected unqualified-id before 'if'
   17 |     if(j==0)printf("APPROVED");
      |     ^~
a.cc:19:5: error: expected unqualified-id before 'return'
   19 |     return 0;
      |     ^~~~~~
a.cc:20:5: error: expected declaration before '}' token
   20 |     }
      |     ^
Language: C++

include <iostream>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;

int main(){
  int N, A[100];
  cin >> N;
  rep(i,N) cin >> A[i];
  string str = "APPROVED";
  rep(i,N){
    if(A[i]%2 == 0){
      if((A[i]%3)*(A[i]%5) != 0){
        str = "DENIED";
        break;
      }
    }
  }
  cout << str << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string str = "APPROVED";
      |   ^~~~~~
a.cc:13:9: error: 'str' was not declared in this scope; did you mean 'std'?
   13 |         str = "DENIED";
      |         ^~~
      |         std
a.cc:18:3: error: 'cout' was not declared in this scope
   18 |   cout << str << endl;
      |   ^~~~
a.cc:18:11: error: 'str' was not declared in this scope; did you mean 'std'?
   18 |   cout << str << endl;
      |           ^~~
      |           std
a.cc:18:18: error: 'endl' was not declared in this scope
   18 |   cout << str << endl;
      |                  ^~~~
Language: C++

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

int main() {
  int N, a, check=0;
  cin >> N;
  for (int i=0; i<N; i++) {
     cin >> a;
     if(a%2==0) {
       if(a%3==0 || a%5==0){
         check = 1;
       } else {
         check = 0;
       }
     }
  }
  if(check == 1){
    cout << "APPROVED" << endl;
  } else {
    cout << "DENIED" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
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> vec(n);
  for(int i=0; i<n; i++){
    int a;
    cin >> a;
    vec.at(i)=a;
  }
  void judge=true;
  for(int i=0; i<n; i++){
    int x=vec.at(i);
    if(x%2==1) continue;
    if(x%3==0||x%5==0) continue;
    judge=false;
  }
  if(judge==true) cout << "APPROVED" << endl;
  else cout << "DENIED" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: variable or field 'judge' declared void
   13 |   void judge=true;
      |        ^~~~~
a.cc:18:5: error: 'judge' was not declared in this scope
   18 |     judge=false;
      |     ^~~~~
a.cc:20:6: error: 'judge' was not declared in this scope
   20 |   if(judge==true) cout << "APPROVED" << endl;
      |      ^~~~~
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];
    boolean flag = ture;
    for(int i = 0;i < n;i++){
      a[i] = sc.nextInt();
    }
    for(int j = 0;j < n;j++){
      if(a[j] % 2 == 0){
        if(a[j] % 3 != 0 && a[j] % 5 != 0){
          flag = false;
          break;
        }
      }
    }
    if(flag){
      System.out.println("APPROVED");
    }else{
      System.out.println("DENIED");
    }
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    boolean flag = ture;
                   ^
  symbol:   variable ture
  location: class Main
1 error
Language: C++

#include <iostream>
using namespace std;

int main() {
    string line;
    cin >> line;
    istringstream input_fields(line);
  
    int field;
    while (input_fields >> field) {
        if(field % 3 == 0 || field % 5 == 0) cout << "DENIED" << endl;
    }
  
    cout << "APPROVED" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: variable 'std::istringstream input_fields' has initializer but incomplete type
    7 |     istringstream input_fields(line);
      |                                    ^
Language: C++

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

    int main() {
        int i;

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

        


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else {
      |         ^~~~
Language: C++

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

    int main() {
        int i;

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

        


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'else' without a previous 'if'
   19 |         else {
      |         ^~~~
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:
a.cc: In function 'int main()':
a.cc:7:25: error: 'n' was not declared in this scope
    7 |         for (i = 0; i < n; i++) {
      |                         ^
a.cc:11:25: error: 'n' was not declared in this scope
   11 |         for (i = 0; i < n; i++) {
      |                         ^
Language: C++

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

    int main() {
        int i;

        int N;
        vector<int> A;
        cin >> N;
        for (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;
        }

        

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

#include<stdio.h>

int main(void){
  int n,i;
  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]%3!=0 && a[i]%5!=0 && a[i]%2==0){
      puts("DENIED");
      return 0;
    }
  }
  puts("APPROVED")
 return 0;
}

  

Compiler output:
main.c: In function 'main':
main.c:17:19: error: expected ';' before 'return'
   17 |   puts("APPROVED")
      |                   ^
      |                   ;
   18 |  return 0;
      |  ~~~~~~
Language: C++

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

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main(void){
      | ~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin>>n;
      |   ^~~
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s="APPROVED";
      |   ^~~~~~
a.cc:8:43: error: 's' was not declared in this scope
    8 |         if((a%2==0))if((a%3!=0)&&(a%5!=0))s="DENIED";
      |                                           ^
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout<<s;
      |   ^~~~
a.cc:11:9: error: 's' was not declared in this scope
   11 |   cout<<s;
      |         ^
Language: C++

#include <bits/stdc++.h>//solved by *ALIKHAN*
#define ll long long
#define ld long double
#define pb push_back
#define sz(x) (int)x.size()
#define F first
#define S second
#define ppb pop_back
#define mp make_pair
#define all(n) n.begin(), n.end()
#define timefaster ios_base::sync_with_stdio(0);cin.tie(0)

using namespace std;

const int N = (int)2e5 + 123;
const int mod = (int)1e9 + 7;
const ll INF = (ll)1e18;

int main(){
	timefaster;
	int n;
	sum = 0;
	for(int i = 0;i < n;i++){
		int a;
		cin >> a;
		sum += a;
   }
   if(sum % 3 == 0 || sum % 5 == 0) cout << "DENIED";
   else cout << "APPROVED"; 
}// Aksay sila

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'sum' was not declared in this scope
   22 |         sum = 0;
      |         ^~~
Language: C++

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

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

Compiler output:
a.cc:6:5: error: extended character 　 is not valid in an identifier
    6 |     string　s("APPROVED");
      |     ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'string\U00003000s' was not declared in this scope
    6 |     string　s("APPROVED");
      |     ^~~~~~~~~
a.cc:14:13: error: 's' was not declared in this scope
   14 |             s = "DENIED";
      |             ^
a.cc:17:13: error: 's' was not declared in this scope
   17 |     cout << s << endl;
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  int t = 0;
  int a[100];
  int s[100];
  cin >> n;
  for(int i= 0;i<n;i++){
    cin >> a[i];
    if(a[i]%2==0){
      s[t] = i;
      t++;
    }
  }
  for(int j : s){
    if(a[j]%3 == 0) jud = 1;
    if(a[j]%5 == 0) jud = 1;
  }
  if(jud){
    cout << "APPROVED" << endl;
  }else{
    cout << "DENIED" << endl;
  }
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: 'jud' was not declared in this scope
   17 |     if(a[j]%3 == 0) jud = 1;
      |                     ^~~
a.cc:18:21: error: 'jud' was not declared in this scope
   18 |     if(a[j]%5 == 0) jud = 1;
      |                     ^~~
a.cc:20:6: error: 'jud' was not declared in this scope
   20 |   if(jud){
      |      ^~~
Language: C

#include <stdio.h>
#include <stdlib.h>

int
check(int num)
{
  if ((num % 2) == 1)
    return (1);
  if (((num % 3) == 0) || ((num % 5) == 0))
    retrurn (1);
  return (0);
}

int
main(int argc, char *argv[])
{
  int *a;
  int n;
  int i;
  int approved = 1;
  
  scanf("%d", &n);
  a = (int *) malloc(n * sizeof (int));
  
  for (i = 0; i < n; i++)
    scanf("%d", a+i);
  
  for (i = 0; i < n; i++) {
    approved = check(a[i]);
    if (!approved) {
      printf("DENIED");
      return (0);
    }
  }
  printf("APPROVED");
}
    

Compiler output:
main.c: In function 'check':
main.c:10:5: error: implicit declaration of function 'retrurn' [-Wimplicit-function-declaration]
   10 |     retrurn (1);
      |     ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  	int n;
  cin>>n;
  int arr[n];
  for(int i=0;i<n;i++)
    cin>>arr[i];
  for(int i=0;i<n;i++)
    if(arr[i]%3==0 ||arr[i]%5==0)
      count++;
  if(count==n)
    cout<<"APPROVED";
  else
    cout<<"DENIED";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'count' was not declared in this scope
   12 |       count++;
      |       ^~~~~
a.cc:13:6: error: 'count' was not declared in this scope
   13 |   if(count==n)
      |      ^~~~~
Language: C++

#include <stdio.h>

int main(void)
{
    int n;
    int A[1000];

    scanf("%d", &n);
    for (int i=0; i<n; i++)
        scanf("%d", &A[i]);

    bool ans = true;

    for (int i=0; i<n; i++) {
        if (A[i]%2==0) {
            if (!(A[i]%3==0 || A[i]%5==0)) {
                ans = false;
                break;
            }
        }
    }

    printf("%s\n", ans ? "APPROVE":"DENIED");

    return 0;
}
~

Compiler output:
a.cc:27:2: error: expected class-name at end of input
   27 | ~
      |  ^
Language: C++

# include<iostream>
using namespace std;
 
int main () {
  int N, A[100];
  cin >> N;
  for (int i = 0; i < N; i++) cin >> A[i];
  for (int i = 0; i < N; i++) {
    if (A[i] % 2 == 0 && A[i] % 3 != 0 && A[i] % 5 != 0) {
      cout << "DENIED" << endl;
      return 0;
  }
  cout << "APPROVED" << endl;
  
  return 0;
}

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

# include<iostream>
using namespace std;
 
int main () {
  int N, A[100];
  cin >> N;
  for (int i = 0; i < N; i++) cin >> A[i];
  for (int i = 0; i < N; i++) {
    if (A[i] % 2 == 0 && A[i] % 3 != 0 || A[i] % 5 != 0) {
      cout << "DENIED" << endl;
      return 0;
  }
  cout << "APPROVED" << endl;
  
  return 0;
}

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

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;

#define MAX_N 100

int nums[MAX_N];
int n;

void solve(){
  bool res=true;
  REP(i,n){
    if(nums[i]%2==0){
      if(!(nums[i]%3==0||mus[i]%5==0)){
        res=false;
      }
    }
  }
  if(res) printf("APPROVED\n");
  else printf("DENIED\n");
}

int main()
{
  cin >> n;
  REP(i,n){
    cin >> nums[i];
  }
  solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:19:26: error: 'mus' was not declared in this scope
   19 |       if(!(nums[i]%3==0||mus[i]%5==0)){
      |                          ^~~
Language: C++

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

int main(){
	int n;cin >> n;
	bool t=true;
	for(int i=0;i<n;i++){
		int a;cin >> a;
		if(!(a&1)){
			if(a%3!=0 && a%5!=0)
				t=false
		}
	}
	if(t)cout << "DENIED\n";
	else cout << "APPROVED\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: expected ';' before '}' token
   11 |                                 t=false
      |                                        ^
      |                                        ;
   12 |                 }
      |                 ~
Language: C++

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

int main() {

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

Compiler output:
a.cc: In function 'int main()':
a.cc:21:21: error: expected ';' before 'cout'
   21 |   else(test == true)
      |                     ^
      |                     ;
   22 |     cout << "APPROVED" << endl;
      |     ~~~~
Language: C

int main(){
    
    int N, A[N_MAX];
    
    //標準入力から読み込み
    printf("N:");
         scanf("%d", &N);
         for ( int i=0; i<N; i++ ){
             scanf("%d",&A[i]);
         }
    
         for ( int i=0; i<N; i++ ){
             if ( A[i] % 2 == 0 ){
                 if ( 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:3:14: error: 'N_MAX' undeclared (first use in this function)
    3 |     int N, A[N_MAX];
      |              ^~~~~
main.c:3:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 |     printf("N:");
      |     ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:6:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    6 |     printf("N:");
      |     ^~~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:10: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |          scanf("%d", &N);
      |          ^~~~~
main.c:7:10: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:10: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:7:10: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:15:22: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
   15 |                      puts("DENIED");
      |                      ^~~~
main.c:15:22: note: include '<stdio.h>' or provide a declaration of 'puts'