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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:13:38: error: 'a' undeclared (first use in this function)
   13 |                 if (x[i] % 2 == 0 && a[i] % 3 != 0 && x[i] % 5 != 0)
      |                                      ^
main.c:13:38: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

object Main extends App {
  val n = io.StdIn.readLine()
  val line = io.StdIn.readLine().split(" ").map(_.toInt)
  val odd = line.filter(_%2 == 0 ).toSeq
  val ans = line.filter(a => a%2 == 0 && (a%5 == 0 || a%3==0) && a%15!=0).toSeq
  
  if(odd.nonEmpty && odd == ans) println("APPROVED")
  else println("DENIED")
 
//  println(s"n ${n} odd ${odd}")
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
object Main extends App {
^
1 error
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(int) cin >> a[i];
    bool ok = true;
    rep(i, n)
    {
        if (a[i] % 2 == 1)
            continue;
        if (a[i] % 3 = 0 && a[i] % 5 != 0)
            ok = false;
    }
    if (ok)
        cout << "APPROVED" << endl;
    else
        cout << "DENIED" << endl;
    return 0;
}

Compiler output:
a.cc:11:12: error: macro "rep" requires 2 arguments, but only 1 given
   11 |     rep(int) cin >> a[i];
      |            ^
a.cc:2:9: note: macro "rep" defined here
    2 | #define rep(i, n) for (int i = 0; i < (n); ++i)
      |         ^~~
a.cc: In function 'int main()':
a.cc:11:5: error: 'rep' was not declared in this scope
   11 |     rep(int) cin >> a[i];
      |     ^~~
a.cc:17:18: error: lvalue required as left operand of assignment
   17 |         if (a[i] % 3 = 0 && a[i] % 5 != 0)
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int N,i,A[1000];
  cin>>N;
  string str="APPROVED"
  for(i=0;i<N;i++)
    cin>>A[i];
  for(i=0;i<N;i++){
    if(A[i]%2==0 && A[i]%3!=0 && A[i]%5!=0)
      str="DENIED";
  }
  cout<<str<<endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	int n,sum;
	cin>>n; 
	int a[n+5];
	for(int i=0;i<n;i++){
		cin>>a[i];
	if(a[i]%6==0){
		sum=1; 
	}else if(a[i]%5==0){
		sum=1;
	}else{
		sum=0; 
	}
	}
	}
	if(sum==0){
		cout<<"DENIED";
	}else{
		cout<<"APPROVED";
	}
	return 0;
}
	

Compiler output:
a.cc:18:9: error: expected unqualified-id before 'if'
   18 |         if(sum==0){
      |         ^~
a.cc:20:10: error: expected unqualified-id before 'else'
   20 |         }else{
      |          ^~~~
a.cc:23:9: error: expected unqualified-id before 'return'
   23 |         return 0;
      |         ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

	

Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: expected ';' before '}' token
   17 |                 sum=1
      |                      ^
      |                      ;
   18 |         }else{
      |         ~
Language: C++

#include <iostream>
 
int main()
{
int n;
  std::cin>>n;
for(int i=0; i<n ;++i){
	int x;
    cin>>x;
    if(x%2==0){
    	if((x%3==0)||(x%5==0))
          continue;
      	
      	std::cout<<"DENIED"<<std::endl;
    }
}
  std::cout<<"APPROVED"<<std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin>>x;
      |     ^~~
      |     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
      |                  ^~~
Language: C++

#include <iostream>

int main()
{
int n;
  cin>>n;
for(int i=0; i<n ;++i){
	int x;
    cin>>x;
    if(x%2==0){
    	if((x%3==0)||(x%5==0))
          continue;
      	
      	std::cout<<"DENIED"<<std::endl;
    }
}
  std::cout<<"APPROVED"<<std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n;
      |   ^~~
      |   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
      |                  ^~~
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main() {
	int N;
	cin >> N;
	int A[1000000];
	for (int i = 0; i < N; i++) {
		cin >> A[i];
	}
	for (int z = 0; z < N; z++) {
		if (A[z] % 2 == 1) {
		}
		else
		{


			if (A[z]% 3 != 0 && A[z] % 5 != 0) {
				cout << "DENIED";
				return 0;
			}
			else
			{
			}
		}
		cout << "APPROVED";
		return 0;
	}

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

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


Compiler output:
main.c: In function 'main':
main.c:8:12: error: lvalue required as left operand of assignment
    8 |   if(a[i]%2=0){
      |            ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main() {
	int N;
	cin >> N;
	vector<int>A(1000000000);
	for (int i = 0; i < N; i++) {
		cin >> A[i];
	}
	for (int z = 0; z < N; z++) {
		if (A.at[z] % 2 == 1) {
		}
		else
		{


			if (A[z] % 3 != 0 && A[z] % 5 != 0) {
				cout << "DENIED";
				return 0;
			}
			else
			{
			}
		}
		cout << "APPROVED";
		return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   12 |                 if (A.at[z] % 2 == 1) {
      |                         ^
a.cc:28:10: error: expected '}' at end of input
   28 |         }
      |          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++


#include <iostream>

using namespace std;

int
main ()
{
  int n;
  cin >> n;
  int x = 0;
  for (int i = 0; i < n; i++)
    {
      int o;
      cin >> o;
      if (o % 2 == 0)
	{
	     if (o % 3 != 0 and o % 5 != 0)
	{
	  x= 1;
	}
    }
  if (x==0)
  {
      cout << "APPROVED";
  }
  else {
      cout << "DENIED";
      
  return 0;
}
}

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

#include<iostream>
using namespace std;
int main()
{
	int j,n;
	int a[n+1];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'i' was not declared in this scope
   10 |         if(j+a[i]/2==0);
      |                ^
a.cc:12:22: error: 'i' was not declared in this scope
   12 |                 if(a[i]%3||5==0)
      |                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b[a],c=0,d=0;
    cin>>a>>b[a];
    for(int i=0;i<a;i++)
    {
    if(b[i]%2==0 && b[i]%3==0 || b[i]%2==0 && b[i]%5==0)
    c++;
    else if(b[i]%2==1)
    d++;
    else
    d++;
    }
    if(d==0)
    cout<<"APPROVED";
    else
    cout<<"DENIED";
    return 0;


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

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

	return 0;
}

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

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

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'for'
    1 | for(int i=0;i<n;i++){
      | ^~~
a.cc:1:13: error: 'i' does not name a type
    1 | for(int i=0;i<n;i++){
      |             ^
a.cc:1:17: error: 'i' does not name a type
    1 | for(int i=0;i<n;i++){
      |                 ^
a.cc:12:9: error: 'cout' does not name a type
   12 |         cout<<"APPROVED";
      |         ^~~~
Language: C++

#include<stdio.h>
#include<vector>

int main()
{
	int n;
	std::vector<int> a;

	scanf("%d", &n);
	a.resize(n);
	for(int i=0; i<n; i++){
		scanf("%d", &a[i]);
	}
	
	bool flag=true;	
	for(int i=0; i<n; i++){
		if(a[i]%2 ==0){
			if(a[i]%3 != 0 && a[i]%5!=5){
				flag = false;
			}
		}
	}

	if(flag) printf("APPROVED"\n);
	else printf("DENIED\n");
	return 0;
}

Compiler output:
a.cc:24:35: error: stray '\' in program
   24 |         if(flag) printf("APPROVED"\n);
      |                                   ^
a.cc: In function 'int main()':
a.cc:24:35: error: expected ')' before 'n'
   24 |         if(flag) printf("APPROVED"\n);
      |                        ~          ^~
      |                                   )
Language: C++

#include <iostream>
#include <vector>
using namespace std;

int main() {
    int n;
    bool ok = false;
    cin >> n;
    vector<int> a(n),tmp(n);
    for (int i = 0; i < n; i++) {
        cin >> tmp[i];
        if (a[i] % 2 == 0) a[i] = tmp[i];
    }

    for (int i = 0; i < n; i++) {
        if (a[i] % 2 != 0) {
            cout << "DENIED";
            return;
        }
    }
    cout << "APPROVED";    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |             return;
      |             ^~~~~~
Language: C++

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:29: error: invalid operands of types 'int [1002]' and 'int' to binary 'operator%'
   13 |                         if(a%3==0||a%5==0);
      |                            ~^~
      |                            | |
      |                            | int
      |                            int [1002]
a.cc:13:37: error: invalid operands of types 'int [1002]' and 'int' to binary 'operator%'
   13 |                         if(a%3==0||a%5==0);
      |                                    ~^~
      |                                    | |
      |                                    | int
      |                                    int [1002]
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:10:9: note: to match this '{'
   10 |         {
      |         ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C

#include <stdio.h>
 
int main(int argc, const char * argv[])
{
 int N;
 int i;
 int A[i];
 
 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){
   }
   else{
    if(A%5 = 0){
    }
    else{
     printf("DENIED\n");
     
    }
   }
  else{
  }
 }
 
 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:20: error: expected ';' before '}' token
   12 |  scanf("%d", &A[i])
      |                    ^
      |                    ;
   13 |  }
      |  ~                  
main.c:17:13: error: lvalue required as left operand of assignment
   17 |   if(A[i]%2 = 0){
      |             ^
main.c:18:14: error: lvalue required as left operand of assignment
   18 |    if(A[i]%3 = 0){
      |              ^
main.c:21:9: error: invalid operands to binary % (have 'int *' and 'int')
   21 |     if(A%5 = 0){
      |        ~^
      |        |
      |        int *
main.c:28:3: error: expected '}' before 'else'
   28 |   else{
      |   ^~~~
Language: C++

#include <algorithm>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
using namespace std;

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

  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v.at(i);
  }
  int count = 0;
  for (int i = 0; i < n; i++) {
    if (v.at(i) % 2 == 0) {
      if (v.at(i) %= 3 == 0 || v.at(i) %= 5 == 0) {
        count = 1;
      } else {
        count = 0;
      }
    }
  }
  if (count = 0) {
    cout << "DENIED";
  } else {
    cout << "APPROVED"
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:40: warning: division by zero [-Wdiv-by-zero]
   19 |       if (v.at(i) %= 3 == 0 || v.at(i) %= 5 == 0) {
      |                      ~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:19:29: error: lvalue required as left operand of assignment
   19 |       if (v.at(i) %= 3 == 0 || v.at(i) %= 5 == 0) {
      |                      ~~~~~~~^~~~~~~~~~
a.cc:29:23: error: expected ';' before '}' token
   29 |     cout << "APPROVED"
      |                       ^
      |                       ;
   30 |   }
      |   ~
Language: C++

// #include<iostream>
// #include<cstdio>
// #include<algorithm>
// using namespace std;
// int main(int argc, char const *argv[])
// {
//     int n,arr[101];
//     cin>>n;
//     bool f=1;
//     for (int i = 0; i < n; i++)
//     {
//         cin>>arr[i];
//         if (arr[i] % 2)
//         {
//             if (arr[i] % 3 || arr[i] % 5){
//                 f=1;
//                 break;
//             }
//             else{
//                 cout << "DENIED";
//                 f=0;
//             }
//         }
//     }
//     if(f)cout<<"APPROVED";
//     return 0;
// }


#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(int argc, char const *argv[])
{
    int n,t;
    cin>>n;
    for (int i = 0; i < n; i++)
    {
        cin>>t;
        if(!t%2&&(!t%3||!t%5)){
            break;
            else cout<<"DENIED";return 0;
        }
        else
            cout << "DENIED";return 0;
    }
    cout<<"APPROVED";
    return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:43:13: error: expected '}' before 'else'
   43 |             else cout<<"DENIED";return 0;
      |             ^~~~
a.cc:41:31: note: to match this '{'
   41 |         if(!t%2&&(!t%3||!t%5)){
      |                               ^
a.cc:45:9: error: 'else' without a previous 'if'
   45 |         else
      |         ^~~~
a.cc: At global scope:
a.cc:48:5: error: 'cout' does not name a type
   48 |     cout<<"APPROVED";
      |     ^~~~
a.cc:49:5: error: expected unqualified-id before 'return'
   49 |     return 0;
      |     ^~~~~~
a.cc:50:1: error: expected declaration before '}' token
   50 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |     print("APPROVED");
      |     ^~~~~
      |     printf
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:12:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |     print("APPROVED");
      |     ^~~~~
      |     printf
Language: C++

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

int main(){
  int n, s;
  cin >> n;
  for(int i = 0; i < n; i++){
    cin >> s;
    if(s % 2 == 1){
      if(i == n - 1) cout << "APPROVED" << endl;
      else continue;
    }
      else if(s % 5 != 0 && s % 3 != 0){
        cout << "DENIED" << endl;
        break;
      }
    else{
      if(i == n - 1) cout << "APPROVED" << endl;
      else continue;
    }
    }
  }
}


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

   #include <bits/stdc++.h>
    using namespace std;
     
    int main() {
      int N,A;
      cin >> N;
     
      int x;       
      int i = 0;   
     
      while (i < N) {
        cin >> A;
        i++;
      }
       
      if (A % 2 != 0) {
        cout << "APPROVED" << endl;
      }
      
      else {
          cout << "DENIED" << endl;
      }
      
      else if (A % 3 == 0 || A % 5 == 0) {
        cout << "APPROVED" << endl;
      }
        
     
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:24:7: error: 'else' without a previous 'if'
   24 |       else if (A % 3 == 0 || A % 5 == 0) {
      |       ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n,i,cnt;
    cin >> n;
    int a[n];
    for(i=0;i<n;i++)
    {
        cin>>a[i];
        if((a[i]%2)==0)
        {
            cnt=0;
                if((a[i]%3)==0)||((a[i]%5)==0))
                    cnt++;

            }
    }

        if(cnt>0)
            cout << "APPROVED" << endl;
        else
            cout << "DENIED" << endl;


        






    return 0;


}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:32: error: expected primary-expression before '||' token
   14 |                 if((a[i]%3)==0)||((a[i]%5)==0))
      |                                ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'else' without a previous 'if'
   12 |     else cout<<"DENIED"<<endl;
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected primary-expression before ']' token
    5 |   cin >> n >>a[];
      |                ^
Language: C

#include<stdio.h>
#include<conio.h>
#define SIZE 100
int FindEvenNumbers(int list[],int even[]);
int main(void)
{
 extern int list[100];
 extern int even[100];
 extern int count;
 int i;
 int n;
 scanf("%d",&n);
 {
 for(i=0;i<n;i++)
  scanf("%d",&list[i]);
 count=FindEvenNumbers(list,even);
 for(i=0;i<count;i++){
 	if(even[i]%3==0||even[i]%5==0){
 		printf("APPROVED");
 		break;
	 }
	 else{
	 printf("DENIED");
	 break;}
 }

}
 return 0;
}
int FindEvenNumbers(int list[],int even[])
{
 int j,k;
 for(k=0,j=0;j<SIZE;j++)
 if(list[j]%2==0)    
  {
   even[k]=list[j];
  k++;
 }
 return k;
}
int count;
int list[SIZE];
int even[SIZE];

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

#include<stdio.h>

int main(void){
 
  int N;
  int A[1000];
  int i=0;
  int count3,count5=0
  
  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){
       count3++;
     }
     else if(A[i]%5==0){
      count5++; 
     }
   	
     j++;
     
   }
    
  }
  
  if(j==count3+count5){
   printf("APPROVED");
  }
  else{
   printf("DENIED"); 
  }
  
}

Compiler output:
main.c: In function 'main':
main.c:10:3: error: expected ',' or ';' before 'scanf'
   10 |   scanf("%d",N);
      |   ^~~~~
main.c:24:6: error: 'j' undeclared (first use in this function)
   24 |      j++;
      |      ^
main.c:24:6: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

public class Atcoder{

public static void main(String[] args) {
    System.out.println("入力する数");
    Scanner sca01 = new Scanner(System.in);
    int num = sca01.nextInt();
    System.out.println("いくつかの整数を入力");
    Scanner sca02 = new Scanner(System.in);
    int nums[] = new int[num];
    int aaa=0;
        for(int j=0; j<nums.length; j++){
            nums[j] = sca02.nextInt();
            if(nums[j]%2==0 && nums[j]%3==0){
                aaa=1;
            }else if(nums[j]%2==0 && nums[j]%5==0){
                aaa=aaa+1;
            }
        }
        if(aaa>1){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }

    }
}


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

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

    if(A % 2 == 0){
        
        if(!(A != 3)){
            if(!(A /= 5)){
                cout << "DENIED" << endl;
            }
            else{
                cout << "DENIED" << endl;
            }
        }
        else if(A % 3 == 0 || A % 5 == 0){
        cout << "APPROVED" << endl;
        }
        else{
            cout << "DENIED" << endl;
        }
        
    }
    else{
        cout << "DENIED" << endl;
    }

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

import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        String answer = "APPROVED";
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        for(int i = 0; i < n; i++) {
            int num = Integer.parseInt(sc.next());
            if(num % 2 != 0) {
                continue;
            } else {
                if (num % 3 != 0 && num % 5 != 0) {
                    System.out.println(answer);
                    break;
                } else {
                    continue;
                }
            }
        }
        System.out.println;
    }
}

Compiler output:
Main.java:21: error: not a statement
        System.out.println;
                  ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |     if(a[i]%2!=0) return;
      |                   ^~~~~~
Language: C

#include<stdio.h>
int main()
{
  int a,n=1001,i;
  printf("inter your immigration number");
  for(i=0;i<=n;i++)
  {
    scanf("%d",&a);   
      if((a%2==0&&a%3==0)||(a%2==0&&a%5==0))
        printf("APPROVED");
      else
        printf("DENIED");
 return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:4:18: error: redeclaration of 't' with no linkage
    4 |   int t,a[100],i,t=1;
      |                  ^
main.c:4:7: note: previous declaration of 't' with type 'int'
    4 |   int t,a[100],i,t=1;
      |       ^
Language: C++

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

int main(){
 int N;
 cin >> N;
 int S = 1;
  
 for (int i = 0; i < N; i++;){
  int A;
  cin >> A;
  
  if (A / 2 == 0){
   
   if (A / 3 != 0 && A / 5 != 0){
    cout << "DENIED" << endl;
    S = 1;
    break;
   }
   else{
    S = 0;
   }
  }
 }
  
 if(S == 0){
  cout << "APPROVED" << endl;
 }
}
  

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

#include<stdio.h>
int main()
{
  int N,i;
  int A[100] = {};
  int judge[100] = {};
  int judge = 0;
  
  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))) && (A[i]%2 != 0)){
      judge[i] = 1;
    }
    else{
      judge[i] = 0;
    }
  }

  for(i=0;i<N;i++){
    judge += judge[i];
  }

  if(judge == N){
    printf("APPROVED\n");
  }
  else{
    printf("DENIED\n");
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:7: error: conflicting types for 'judge'; have 'int'
    7 |   int judge = 0;
      |       ^~~~~
main.c:6:7: note: previous definition of 'judge' with type 'int[100]'
    6 |   int judge[100] = {};
      |       ^~~~~
Language: C

#include<stdio.h>
 
int main(){
  
  int n;
  int a[101];
  int i;
  int check;
  
  check=0;
  
  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){
      
      }else if(a[i]%5==0){
        
      }else if(a[i]==2){
        check++;
      }
      else{
        check++;
      }
    }else{
      
    }
  }
	if(check){
      printf("DENIED");
   		
    }else{
      printf("APPROVED");
    }
  return0;
}

Compiler output:
main.c: In function 'main':
main.c:40:3: error: 'return0' undeclared (first use in this function)
   40 |   return0;
      |   ^~~~~~~
main.c:40:3: 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(void)
{
	int n;
	cin>>n;
	int a[n],i;
	for(i = 0; i < n; i++) cin>>a[i];
	for(i = 0; i < n; i++){
		if(a[i] % 2 == 0){
			if(a[i]%3 != 0 && a%5 != 0){
				printf("DENIED\n");
				return 0;
			}
		}
	}
	printf("APPROVED\n");
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:44: error: invalid operands of types 'int [n]' and 'int' to binary 'operator%'
   13 |                         if(a[i]%3 != 0 && a%5 != 0){
      |                                           ~^~
      |                                           | |
      |                                           | int
      |                                           int [n]
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 a = false;
  
  for(int i = 0; i < N; i++){
    if(A.at(i) % 2 == 0 && A.at(i) % 3 != 0 && A.at(i) % 5 != 0){
      a = true
    }
    
  }

  if(a = true){
      cout << "DENIED" << endl;
  }

  if(a = false){
      cout << "APPROVED" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: expected ';' before '}' token
   16 |       a = true
      |               ^
      |               ;
   17 |     }
      |     ~
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 a = false
  
  for(int i = 0; i < N; i++){
    if(A.at(i) % 2 == 0 && A.at(i) % 3 != 0 && A.at(i) % 5 != 0){
      a = true
    }
    
  }

  if(a = true){
      cout << "DENIED" << endl;
  }

  if(a = false){
      cout << "APPROVED" << endl;
  }
  
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll const N=1e3+500;
ll INF=0x3f3f3f3f;
int main()
{
    ll a,b,c;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>a[i];
        if(a[i]%2==0)
        {
            if(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:9:10: error: 'n' was not declared in this scope
    9 |     cin>>n;
      |          ^
a.cc:12:15: error: invalid types 'll {aka long long int}[int]' for array subscript
   12 |         cin>>a[i];
      |               ^
a.cc:13:13: error: invalid types 'll {aka long long int}[int]' for array subscript
   13 |         if(a[i]%2==0)
      |             ^
a.cc:15:17: error: invalid types 'll {aka long long int}[int]' for array subscript
   15 |             if(a[i]%3!=0||a[i]%5!=0)
      |                 ^
a.cc:15:28: error: invalid types 'll {aka long long int}[int]' for array subscript
   15 |             if(a[i]%3!=0||a[i]%5!=0)
      |                            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll const N=1e3;
ll INF=0x3f3f3f3f;
int main()
{
    ll a,b,c;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>a[i];
        if(a[i]%2==0)
        {
            if(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:9:10: error: 'n' was not declared in this scope
    9 |     cin>>n;
      |          ^
a.cc:12:15: error: invalid types 'll {aka long long int}[int]' for array subscript
   12 |         cin>>a[i];
      |               ^
a.cc:13:13: error: invalid types 'll {aka long long int}[int]' for array subscript
   13 |         if(a[i]%2==0)
      |             ^
a.cc:15:17: error: invalid types 'll {aka long long int}[int]' for array subscript
   15 |             if(a[i]%3!=0||a[i]%5!=0)
      |                 ^
a.cc:15:28: error: invalid types 'll {aka long long int}[int]' for array subscript
   15 |             if(a[i]%3!=0||a[i]%5!=0)
      |                            ^
Language: C

#include<stdio.h>
int main()
{
  int a,n=1001,i;
  printf("inter your immigration number");
  for(i=0;i<=n;i++)
  {
    scanf("%d",&a);
    if(a%3==0||a%5==0)
      printf("APPROVED");
    else
      printf("DENIED");
   }
 return0;
 }
  

Compiler output:
main.c: In function 'main':
main.c:14:2: error: 'return0' undeclared (first use in this function)
   14 |  return0;
      |  ^~~~~~~
main.c:14:2: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main()
{
    int N;
    int a[150];
    int i;
    int flag=1;
    scanf("%d",&N);
    for (i=0;i<N;i++)
        scanf("%d",&a[i]);

    for (i=0;i<N;i++)
    {
        if(a[i]%2==0)
        {
            flag=0;

            if(a[i]%3==0)
                flag=1;
            else if(a[i]%5==0)
                flag=1;
            else
            {flag=0;
                break;
            }
          else 
            flag=1;
        }

    }
         if(flag==1)
            printf("APPROVE\n");
        else
            printf("DENIED\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:28:11: error: expected '}' before 'else'
   28 |           else
      |           ^~~~
main.c: At top level:
main.c:33:10: error: expected identifier or '(' before 'if'
   33 |          if(flag==1)
      |          ^~
main.c:35:9: error: expected identifier or '(' before 'else'
   35 |         else
      |         ^~~~
main.c:37:5: error: expected identifier or '(' before 'return'
   37 |     return 0;
      |     ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    7 |         if(a % 2==0){
      |            ~ ^ ~
      |            |   |
      |            |   int
      |            int [110]
a.cc:8:21: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    8 |                 if(a%3!=0 && a%5!=0){
      |                    ~^~
      |                    | |
      |                    | int
      |                    int [110]
a.cc:8:31: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    8 |                 if(a%3!=0 && a%5!=0){
      |                              ~^~
      |                              | |
      |                              | int
      |                              int [110]
Language: C

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

int main()
{
    int N;
    int a[150];
    int i;
    int flag=1;
    scanf("%d",&N);
    for (i=0;i<N;i++)
        scanf("%d",&a[i]);

    for (i=0;i<N;i++)
    {
      loop;
        if(a[i]%2==0)
        {
            flag=0;

            if(a[i]%3==0)
            { flag=1;
             goto loop;
            }
            else if(a[i]%5==0)
            {   flag=1;
             goto loop;
            }
            else
            {flag=0;
                break;
            }
        }

    }
         if(flag==1)
            printf("APPROVE\n");
        else
            printf("DENIED\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:7: error: 'loop' undeclared (first use in this function)
   16 |       loop;
      |       ^~~~
main.c:16:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:27:14: error: label 'loop' used but not defined
   27 |              goto loop;
      |              ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	int a[n+1];
	for(int i=1;i<=n;i++)  cin>>a[i];
	for(int i=1;i<=n;i++)
	{
		if(a[i]%2=0)
		{
			if(a[i]%3!=0||a[i]%5!=0)
			   cout<<"DENIED";
            break;
            else
               cout<<"APPROVED";
            break;
		}
		else
		    cout<<"DENIED";
	 } 
	 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:24: error: lvalue required as left operand of assignment
   11 |                 if(a[i]%2=0)
      |                    ~~~~^~
a.cc:16:13: error: expected '}' before 'else'
   16 |             else
      |             ^~~~
a.cc:12:17: note: to match this '{'
   12 |                 {
      |                 ^
a.cc:20:17: error: 'else' without a previous 'if'
   20 |                 else
      |                 ^~~~
a.cc: At global scope:
a.cc:23:10: error: expected unqualified-id before 'return'
   23 |          return 0;
      |          ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

int main(){
	int n;
	cin>>n;
	int a[n+1],t[n+1],tt=0,total=0;
	
	for(int i=1;i<=n;i++){
		if(a[i]%2==0)
			if(a[i]%3=!=0 || a[i]%5!=0){
				cout<<"DENIED";
				return 0;
			}		
	}	
	
	cout<<"APPROVED";
	return 0;	
}

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

#include<stdio.h>

int main(){
  
  int n;
  int a[101];
  int i;
  int check;
  
  check=0;
  
  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){
      
      }else if(a[i]%5==0){
        
      }else{
        check++;
      }
    }else{
      
    }
  }
	if(check){
   		printf("APPROVED"\n);
    }else{
      printf("DENIED");
    }
  return0;
}
        	
  
  

Compiler output:
main.c: In function 'main':
main.c:32:34: error: stray '\' in program
   32 |                 printf("APPROVED"\n);
      |                                  ^
main.c:32:34: error: expected ')' before 'n'
   32 |                 printf("APPROVED"\n);
      |                       ~          ^~
      |                                  )
main.c:36:3: error: 'return0' undeclared (first use in this function)
   36 |   return0;
      |   ^~~~~~~
main.c:36:3: 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;
	int a[n+1],t[n+1],tt=0,total=0;
	
	for(int i=1;i<=n;i++)
		if(a[i]%2==0)
			if(a[i]%3=!=0 || a[i]%5!=0)
				cout<<"DENIED";
				return 0;
	
	cout<<"APPROVED";
	return 0;	
}

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

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    7 |         if(a%2==0){
      |            ~^~
      |            | |
      |            | int
      |            int [110]
a.cc:8:21: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    8 |                 if(a%3!=0 && a%5!=0){
      |                    ~^~
      |                    | |
      |                    | int
      |                    int [110]
a.cc:8:31: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    8 |                 if(a%3!=0 && a%5!=0){
      |                              ~^~
      |                              | |
      |                              | int
      |                              int [110]
Language: C

#include <stdio.h>
int main()
{
	int a;
	int b;
	int c;
	scanf("%d", &a);
	while (a > 0){
		scanf("%d", &b);
		if (b%3 == 0 or b%5 == 0)
		c += 1;		
		a -= 1;	
	}
	
	if (c > 0)
		printf("APPROVED");
	else
		printf("DENIED");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:29: error: expected ')' before 'or'
   10 |                 if (b%3 == 0 or b%5 == 0)
      |                    ~        ^~~
      |                             )
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    int a[];
    int j=0;
    

    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]%2==0&& a[i]%5!=0)
        {
            j=1;
        }
    }

    if(j==1)
    {
        cout<<"APPROVED";
    }
    else
    {
        cout<<"DENIED";
    }

}   

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: storage size of 'a' isn't known
    6 |     int 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);
  }
  for (int i = 0; i < N; i++) {
    if (A.at(i) % 2 == 0 && A.at(i) % 3 !== 0 || A.at(i) % 2 == 0 && A.at(i) % 5 !== 0)      
      cout << "DENIED" << endl;
    else 
      cout << "APPROVED" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:43: error: expected primary-expression before '=' token
   14 |     if (A.at(i) % 2 == 0 && A.at(i) % 3 !== 0 || A.at(i) % 2 == 0 && A.at(i) % 5 !== 0)
      |                                           ^
a.cc:14:84: error: expected primary-expression before '=' token
   14 |     if (A.at(i) % 2 == 0 && A.at(i) % 3 !== 0 || A.at(i) % 2 == 0 && A.at(i) % 5 !== 0)
      |                                                                                    ^
Language: C++

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

int main(){
  int N;
  vector<int> A;
  cin >> N;
  int i = 0;
  for(i < A.size(); i++){
    cin >> A.at(i);
  }    
   int x;
   x = A.at(i);
  
  int y;
  if(x == 2*y && (x == 3*y || x == 5*y)){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ';' before ')' token
    9 |   for(i < A.size(); i++){
      |                        ^
      |                        ;
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);
  }
  for (int i = 0; i < N; i++) {
    if (A.at(i) % & 2 == 0 && A.at(i) % & 3 !== 0 || A.at(i) % & 2 == 0 && A.at(i) % & 5 !== 0)      
      cout << "DENIED" << endl;
    else 
      cout << "APPROVED" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: lvalue required as unary '&' operand
   14 |     if (A.at(i) % & 2 == 0 && A.at(i) % & 3 !== 0 || A.at(i) % & 2 == 0 && A.at(i) % & 5 !== 0)
      |                     ^
a.cc:14:43: error: lvalue required as unary '&' operand
   14 |     if (A.at(i) % & 2 == 0 && A.at(i) % & 3 !== 0 || A.at(i) % & 2 == 0 && A.at(i) % & 5 !== 0)
      |                                           ^
a.cc:14:47: error: expected primary-expression before '=' token
   14 |     if (A.at(i) % & 2 == 0 && A.at(i) % & 3 !== 0 || A.at(i) % & 2 == 0 && A.at(i) % & 5 !== 0)
      |                                               ^
a.cc:14:66: error: lvalue required as unary '&' operand
   14 |     if (A.at(i) % & 2 == 0 && A.at(i) % & 3 !== 0 || A.at(i) % & 2 == 0 && A.at(i) % & 5 !== 0)
      |                                                                  ^
a.cc:14:88: error: lvalue required as unary '&' operand
   14 |     if (A.at(i) % & 2 == 0 && A.at(i) % & 3 !== 0 || A.at(i) % & 2 == 0 && A.at(i) % & 5 !== 0)
      |                                                                                        ^
a.cc:14:92: error: expected primary-expression before '=' token
   14 |     if (A.at(i) % & 2 == 0 && A.at(i) % & 3 !== 0 || A.at(i) % & 2 == 0 && A.at(i) % & 5 !== 0)
      |                                                                                            ^
Language: C++

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

int main(){
  int N;
  vector<int> A;
  cin >> N;
  for(int i = 0; i < A.size(); i++){
    cin >> A.at(i);
    int x;
    x = A.at(i);
  }
  int y;
  if(x == 2*y && (x == 3*y || x == 5*y)){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:6: error: 'x' was not declared in this scope
   14 |   if(x == 2*y && (x == 3*y || x == 5*y)){
      |      ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main() {
	int N;
	cin >> N;
	std::vector<int> A(100000000);
	for(int i=0;i<N;i++){
		cin >> A.at(i);
}
	for (int z = 0; z < N; z++) {
		if (A.at(z) % 2 == 1) {
		}
		else
		{


			if (A.at(z) % 3 != 0 && A.at(z) % 5 != 0) {
				cout << "DENIED";
				return 0;
			}
			else
			{
			}
		}
		cout << "APPROVED";
		return 0;
	}


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

#include<iostream>
#include<vector>
using namespace std;
int main() {
	int N;
	cin >> N;
	std::vector<int> A(N);
	for(int i=0;i<N;i++){
		cin >> A.at(i);
}
	for (int z = 0; z < N; z++) {
		if (A.at(z) % 2 == 1) {
		}
		else
		{


			if (A.at(z) % 3 != 0 && A.at(z) % 5 != 0) {
				cout << "DENIED";
				return 0;
			}
			else
			{
			}
		}
		cout << "APPROVED";
		return 0;
	}


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

#include<stdio.h>
int main()
{
  int N,i;
  scanf("%d", &N);

  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))) && (A[i]%2 != 0)){
      printf("APPROVED\n");
    }
    else{
      printf("DENIED\n");
    }
  return 0;
}


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

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

int main(){
  int N;
  vector<int> A;
  cin >> N;
  for(int i = 0; i < A.size(); i++){
    cin >> A.at(i);
  }
  x = A.at(i);
  int y;
  if(x == 2*y && (x == 3*y || x == 5*y)){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'x' was not declared in this scope
   11 |   x = A.at(i);
      |   ^
a.cc:11:12: error: 'i' was not declared in this scope
   11 |   x = A.at(i);
      |            ^
Language: C

#include<stdio.h>
int main()
{
  int N;
  scanf("%d", &N);

  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))) && (A[i]%2 != 0)){
      printf("APPROVED\n");
    }
    else{
      printf("DENIED\n");
    }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'i' undeclared (first use in this function)
    9 |   for(i=0;i<N;i++){
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^