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

#include<iostream>
#include<vector>
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 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>
#inculde <vector>

void b_Papers_Please(const std::vector<int>& A_list)
{
    for (const auto& a : A_list)
    {
        if (a % 2 != 0)
            continue;

        if (a % 3 == 0)
            continue;

        if (a % 5 == 0)
            continue;

        std::cout << "DENIED";
        return;
    }
    std::cout << "APPROVED";
}


int main(int, char* [])
{
    int N;
    std::cin >> N;

    std::vector<int> A_list(N);
    for (int i = 0; i < N; ++i)
        std::cin >> A_list[i];

    b_Papers_Please(A_list);
 
    return 0;
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inculde; did you mean #include?
    2 | #inculde <vector>
      |  ^~~~~~~
      |  include
a.cc:4:33: error: 'vector' in namespace 'std' does not name a template type
    4 | void b_Papers_Please(const std::vector<int>& A_list)
      |                                 ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | #inculde <vector>
a.cc:4:39: error: expected ',' or '...' before '<' token
    4 | void b_Papers_Please(const std::vector<int>& A_list)
      |                                       ^
a.cc: In function 'void b_Papers_Please(int)':
a.cc:6:26: error: 'A_list' was not declared in this scope; did you mean 'va_list'?
    6 |     for (const auto& a : A_list)
      |                          ^~~~~~
      |                          va_list
a.cc: In function 'int main(int, char**)':
a.cc:29:10: error: 'vector' is not a member of 'std'
   29 |     std::vector<int> A_list(N);
      |          ^~~~~~
a.cc:29:10: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
a.cc:29:17: error: expected primary-expression before 'int'
   29 |     std::vector<int> A_list(N);
      |                 ^~~
a.cc:31:21: error: 'A_list' was not declared in this scope; did you mean 'va_list'?
   31 |         std::cin >> A_list[i];
      |                     ^~~~~~
      |                     va_list
a.cc:33:21: error: 'A_list' was not declared in this scope; did you mean 'va_list'?
   33 |     b_Papers_Please(A_list);
      |                     ^~~~~~
      |                     va_list
Language: C++

#include <iostream>
#inculde <vector>

void b_Papers_Please(const std::vector<int>& A_list)
{
    for (const auto& a : A_list)
    {
        if (a % 2 != 0)
            continue;

        if (a % 3 == 0)
            continue;

        if (a % 5 == 0)
            continue;

        std::cout << "DENIED";
        return;
    }
    std::cout << "APPROVED";
}


int main(int, char* [])
{
    int N;
    std::cin >> N;

    std::vector<int> A_list(N);
    for (int i = 0; i < N; ++i)
        std::cin >> A_list[i];

    b_Papers_Please(A_list);
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inculde; did you mean #include?
    2 | #inculde <vector>
      |  ^~~~~~~
      |  include
a.cc:4:33: error: 'vector' in namespace 'std' does not name a template type
    4 | void b_Papers_Please(const std::vector<int>& A_list)
      |                                 ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | #inculde <vector>
a.cc:4:39: error: expected ',' or '...' before '<' token
    4 | void b_Papers_Please(const std::vector<int>& A_list)
      |                                       ^
a.cc: In function 'void b_Papers_Please(int)':
a.cc:6:26: error: 'A_list' was not declared in this scope; did you mean 'va_list'?
    6 |     for (const auto& a : A_list)
      |                          ^~~~~~
      |                          va_list
a.cc: In function 'int main(int, char**)':
a.cc:29:10: error: 'vector' is not a member of 'std'
   29 |     std::vector<int> A_list(N);
      |          ^~~~~~
a.cc:29:10: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
a.cc:29:17: error: expected primary-expression before 'int'
   29 |     std::vector<int> A_list(N);
      |                 ^~~
a.cc:31:21: error: 'A_list' was not declared in this scope; did you mean 'va_list'?
   31 |         std::cin >> A_list[i];
      |                     ^~~~~~
      |                     va_list
a.cc:33:21: error: 'A_list' was not declared in this scope; did you mean 'va_list'?
   33 |     b_Papers_Please(A_list);
      |                     ^~~~~~
      |                     va_list
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 | }
      | ^
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 | }
      | ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main() {
	int N;
	cin >> N;
	vector<int> vec(N);
	for(int i=0;i<N;i++){
		cin >> vec.at(i);
}
	for (int z = 0; z < N; z++) {
		if (vec.at(z) % 3 != 0 && vec.at(z) % 5 != 0) {
			cout << "DENIED";
			return 0;
		}
		else
		{}
		cout << "APPROVED";
		return 0;
	}


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

#include <iostream>
 
using namespace std;
 
int main(void) {
  int NUM;
  cin>>NUM;
  int flag=0;
  int fin_flag=0;
  
  for (int i=0; i<NUM; i++){
    int ia;
    cin>>ia;
    
    if (ia % 2 ==0){
      if( ia % 3 ==0 || ia % 5 ==0){
        flag =1;
        else{
          final_flag = 1;
          break;
        }
      }
  }
 
  if(flag==1){
    cout<<"APPROVED";
  }else{
    cout<<"DENIED";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: expected '}' before 'else'
   18 |         else{
      |         ^~~~
a.cc:16:36: note: to match this '{'
   16 |       if( ia % 3 ==0 || ia % 5 ==0){
      |                                    ^
a.cc:19:11: error: 'final_flag' was not declared in this scope; did you mean 'fin_flag'?
   19 |           final_flag = 1;
      |           ^~~~~~~~~~
      |           fin_flag
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:14:10: error: 'a' undeclared (first use in this function)
   14 |     if(((a[i]%2 == 0)||((a[i]%3 == 0) && (a[i]%5 == 0))) && (a[i]%2 == 0)){
      |          ^
Language: C++

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

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

  string answer = "APPROVED";
  
  for (int i = 1; i < N; i++)  {  
    int Ai;
    
    cin >> data.at(i);
    
    Ai = data.at(i)
    
    if(Ai % 2 == 0 && Ai % 3 != 0 && Ai % 5 != 0){
      
      answer = "DENIED";
      
    }
  }
    
  cout << answer << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: overloaded function with no contextual type information
   13 |     cin >> data.at(i);
      |                 ^~
a.cc:15:15: error: overloaded function with no contextual type information
   15 |     Ai = data.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:14:10: error: 'a' undeclared (first use in this function)
   14 |     if(((a[i]%2 == 0)||((a[i]%3 == 0) && (a[i]%5 == 0))) && (a[i]%2 == 0)){
      |          ^
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
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:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
    9 |   for(i=0;i<N;i++){
      |   ^~~
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:10:18: error: 'A' undeclared (first use in this function)
   10 |     scanf("%d", &A[i]);
      |                  ^
main.c:14:10: error: 'a' undeclared (first use in this function)
   14 |     if(((a[i]%2 == 0)||((a[i]%3 == 0) && (a[i]%5 == 0))) && (a[i]%2 == 0)){
      |          ^
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include <stdio.h>

int main(){
  int N;
  scanf("%d",&N);
  
  int a[N];
  for(int i=0;i<N;i++){
    scanf("%d",&a[i]);
  }
  
  int j=0;
  int evencnt=0;
  int cnt=0;
  while(j<N){
    if(a[j] % 2 == 0){
      evencnt++;
      if((a[j] % 3 == 0) || (a[j] % 5 == 0)){
        cnt++
      }
    }
    j++
  }

  if(evencnt++ == cnt) printf("APPROVED");
  else printf("DENIED");
}

    

Compiler output:
main.c: In function 'main':
main.c:19:14: error: expected ';' before '}' token
   19 |         cnt++
      |              ^
      |              ;
   20 |       }
      |       ~       
main.c:22:8: error: expected ';' before '}' token
   22 |     j++
      |        ^
      |        ;
   23 |   }
      |   ~
Language: C

#include <stdio.h>
#include <math.h>
int main(void)
{
  int N = 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){
    A[i] = 0;
    }  
  }
    
  int ans = 0;
  
  for(int i=0, i < N, i++){
    if(A[i] % 3 != 0 && A[i] % 5 != 0){
      ans ++;
    }
  }
    
  if(ans != 0){
    printf("DENIED");
  }else{
    printf("APPROVED");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
   11 |   for(int i=0, i < N, i++){
      |                  ^
main.c:15:3: error: expected expression before 'for'
   15 |   for(int i=0, i < N, i++){
      |   ^~~
main.c:23:3: error: expected expression before 'for'
   23 |   for(int i=0, i < N, i++){
      |   ^~~
main.c:35:1: error: expected expression before '}' token
   35 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: conflicting declaration 'int a [(n + 5)]'
    6 |         int a[n+5];
      |             ^
a.cc:4:15: note: previous declaration as 'int a'
    4 |         int n,a;
      |               ^
a.cc:8:23: error: invalid types 'int[int]' for array subscript
    8 |                 cin>>a[i];
      |                       ^
a.cc:11:21: error: invalid types 'int[int]' for array subscript
   11 |                 if(a[i]%15==0){
      |                     ^
a.cc:14:20: error: expected ';' before '}' token
   14 |                 a=0
      |                    ^
      |                    ;
   15 |         }
      |         ~           
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  string ans = "APPROVED";
  for (int i=0;i<N;++i){
    int A;
    cin >> A;
    if(A%2==0){
      if(A%3==0 || A%5==0)){
        ans ="APPROVED";
      }
      if(A%3 !=0 && A%5!=0){
        ans ="DENIED";
        break;
      }
    }
  }
  cout << ans;
}

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: lvalue required as left operand of assignment
   12 |       if(n%3=!0 && n%5!=0){
      |          ~^~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: lvalue required as left operand of assignment
   12 |       if(n%3=!0 && n%5=!0){
      |              ~~~^~~~~~
Language: C

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

  int* a = new int[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)){
      printf("APPROVED\n");
    }
    else{
      printf("DENIED\n");
    }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: 'new' undeclared (first use in this function)
    7 |   int* a = new int[N];
      |            ^~~
main.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:16: error: expected ',' or ';' before 'int'
    7 |   int* a = new int[N];
      |                ^~~
main.c:9:7: error: 'i' undeclared (first use in this function)
    9 |   for(i=0;i<N;i++){
      |       ^
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  int N;
  int A[100];
  int i;
  int flag=0;

  
  cin >> N;
  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){
      }else if(A[i]%5==0){
      }else{
        flag=1;
    }   
  if(flag==0){
    cout << "APPROVED";
  }else{
    cout << "DENIED";
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:16:19: note: to match this '{'
   16 |   for(i=0;i<N;i++){
      |                   ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: Java

import java.util.Scanner;
 
public class paperPlease.java {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int bar[] = new int[N];
    for(int i = 0;i < N;i++){
      bar[i] = scan.nextInt();
    }
    System.out.println(N + "");
  }
}


Compiler output:
Main.java:3: error: '{' expected
public class paperPlease.java {
                        ^
1 error
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  int N;
  int A[100];
  int i;
  int flag=0;

  
  cin >> N;
  for(i=0;i<N;i++){
    cin >> A[i];
  }
  for(i=0;i<N;i++){
    if(A[i]%2==0){
      if(A[i]%3=={
      }else if(A[i]%5==0{
      }else{
        flag=1;
    }   
  if(flag==0){
    cout << "APPROVED";
  }else{
    cout << "DENIED";
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected primary-expression before '{' token
   18 |       if(A[i]%3=={
      |                  ^
a.cc:18:18: error: expected ')' before '{' token
   18 |       if(A[i]%3=={
      |         ~        ^
      |                  )
a.cc:28:1: error: expected primary-expression before '}' token
   28 | }
      | ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:16:19: note: to match this '{'
   16 |   for(i=0;i<N;i++){
      |                   ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

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

#define rep(i,n) for(int i = 0; i < (int)n; ++i)

#define INF 100000000

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

  bool APPROVED = true;
  for(int i = 0; i < N; ++i){
    int A;
    cin >> A;
    if (A%2==0 && (A%3==0 || A%5==0){

    }
    else{
      APPROVED = false;
    }
  }
  if(APPROVED){
    cout << "APPROVED" << endl;
  }
  else{
    cout << "DENIED" << endl;
  }
  return 0;
}

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

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

int main() {
  int N;
  cin >> N;
  string A;
  for(int i=0;i<N;i++) {
    cin >> A.at(i);
  }
  int K=0;
  for(int i=0;i<N;i++) {
    if(A.at(i)%2==0||A.at(i)%3==0||A.at(i)%5==0) {
      int K++;
      continue;
    }
    else {
      break;
    }
  }
  if (K==A.size()) {
    cout << "APPROVED" << endl;
  }
  else {
    cout << "DENIED" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected initializer before '++' token
   14 |       int K++;
      |            ^~
Language: C++

#include<iostream>
using namespace std;
 
int main(void){
 int N;
 int a[100];
 int guusuu = 0;
 int guusuu2 = 0;
 cin >> N;
  
 for(int i=0; i<N; i++){
  cin >> a[i];
 }
  
  for(int j=0; j<N; j++){
   if(a[j]%2 == 0){
    guusuu++;
    if(a[j]%3 == 0 || a[j]%5 == 0) guusuu2++;
  }
    
  if(guusuu == guusuu2){
  cout << "APPROVED" << endl;
  }else{
    cout << "DENIED" << endl;
  }
  return 0;
}

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

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

int main() {
  int N;
  cin >> N;
  for (int i = 1; i < N; i++) {
    int Ai;
    cin >> Ai;
  }

  string answer = "APPROVED";
  
  for (int i = 1; i < N; i++)  {  
    if(Ai % 2 == 0 && Ai % 3 != 0 && Ai % 5 != 0){
      
      answer = "DENIED";
      
    }
  }
    
  cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'Ai' was not declared in this scope; did you mean 'i'?
   15 |     if(Ai % 2 == 0 && Ai % 3 != 0 && Ai % 5 != 0){
      |        ^~
      |        i
Language: Java

import java.util.Scanner;
 
public class paperPlease {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int bar[] = new int[N];
    for(int i = 0;i < N;i++){
      bar[i] = scan.nextInt();
    }
    System.out.println(N + "");
  }
}


Compiler output:
Main.java:3: error: class paperPlease is public, should be declared in a file named paperPlease.java
public class paperPlease {
       ^
1 error
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 && a%3==0) || (a%2==0 && a%5==0)){
    cout << "APPROVED" << endl;
  }else{
  cout << "DEINIED" << endl;
  }
  }
  return 0;
}

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

#include <iostream>
using namespace std;

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



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: array must be initialized with a brace-enclosed initializer
   12 |             int b[j] = a[i];
      |                        ~~~^
Language: C++

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

int main() {
  int N;
  cin >> N;
  string A;
  for(int i=0;i<N;i++) {
    cin >> A.at(i);
  }
  int K=0;
  for(int i=0;i<N;i++) {
    if(A.at(i)%2==0||A.at(i)%3==0||A.at(i)%5==0) {
      int K++;
      continue;
    }
    else {
      cout << "DENIED" << endl;
      break;
    }
  }
  if (K==A.size()) {
    cout << "APPROVED" << endl;
  }
  else {
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: expected initializer before '++' token
   14 |       int K++;
      |            ^~
Language: Java

import java.util.Scanner;
 
public class paperPlease {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int bar[] = new int[N];
    for(int i = 0;i < N;i++){
      list[i] = scan.nextInt();
    }
    System.out.println(N + "");
  }
}


Compiler output:
Main.java:3: error: class paperPlease is public, should be declared in a file named paperPlease.java
public class paperPlease {
       ^
Main.java:9: error: cannot find symbol
      list[i] = scan.nextInt();
      ^
  symbol:   variable list
  location: class paperPlease
2 errors
Language: C++

B:#include<bits/stdc++.h>
using namespace std;
int n,a;
int main()
{
	scanf("%d",&n);
	while(n--)
	{
		scanf("%d",&a);
		if((a&1)==0)if(a%3&&a%5)
		{
			puts("DENIED");
			return 0;
		}
	}
	puts("APPROVED");
	return 0;
}


Compiler output:
a.cc:1:3: error: stray '#' in program
    1 | B:#include<bits/stdc++.h>
      |   ^
a.cc:1:2: error: found ':' in nested-name-specifier, expected '::'
    1 | B:#include<bits/stdc++.h>
      |  ^
      |  ::
a.cc:1:1: error: 'B' does not name a type
    1 | B:#include<bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf' was not declared in this scope
    6 |         scanf("%d",&n);
      |         ^~~~~
a.cc:12:25: error: 'puts' was not declared in this scope
   12 |                         puts("DENIED");
      |                         ^~~~
a.cc:16:9: error: 'puts' was not declared in this scope
   16 |         puts("APPROVED");
      |         ^~~~
Language: C++

#include <iostream>
 
using namespace std;
 
int main(void) {
  int NUM;
  int flag=0;
  
  for (int i=0; i<NUM; i++){
    int ia;
    cin>>ia;
    if(ia % 2==0 && ((ia % 5==0) || (ia % 3==0)){
      flag=1;
    }
  }
 
  if(flag==1){
    cout<<"APPROVED";
  }else{
    cout<<"DENIED";
  }
  return 0;
}

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

#include <iostream>
using namespace std;

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



    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: array must be initialized with a brace-enclosed initializer
   12 |             int b[j] = a[i];
      |                        ~~~^
a.cc:13:16: error: expected ';' before 'if'
   13 |             j++
      |                ^
      |                ;
   14 |             if((a[i]%3)==0 || (a[i])%5==0){
      |             ~~  
a.cc:16:14: error: expected '}' before 'else'
   16 |             }else{}
      |              ^~~~
a.cc:11:22: note: to match this '{'
   11 |         if(a[i]%2==0){
      |                      ^
a.cc: At global scope:
a.cc:28:5: error: expected unqualified-id before 'return'
   28 |     return 0;
      |     ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,a[110];
  cin >> n >>a[n];
  if((a%2==0 && a%3==0) || (a%2==0 && a%5==0)){
    cout << "APPROVED" << endl;
  }else{
  cout << "DEINIED" << endl;
  }
  return 0;
}


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

#include <iostream>
using namespace std;

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

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

import java.util.Scanner;
 
public class paperPlease {
  public static void main(String[] args){
    Scanner scan = new Scanner();
    int N = scan.nextInt();
    int bar[] = new int[N];
    for(int i = 0;i < N;i++){
      list[i] = scan.nextInt();
    }
    System.out.println(N + "");
  }
}

Compiler output:
Main.java:3: error: class paperPlease is public, should be declared in a file named paperPlease.java
public class paperPlease {
       ^
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
    Scanner scan = new Scanner();
                   ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
Main.java:9: error: cannot find symbol
      list[i] = scan.nextInt();
      ^
  symbol:   variable list
  location: class paperPlease
3 errors
Language: C++

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

Compiler output:
a.cc:17:12: warning: missing terminating ' character
   17 |     {   t++'
      |            ^
a.cc:17:12: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:17:12: error: expected ';' before 'if'
   17 |     {   t++'
      |            ^
      |            ;
   18 |       if(arr[i]%3==0 || arr[i]%5==0)
      |       ~~
Language: C++


#include <stdio.h>
 
int main(void) {
  int NUM;
  int flag=0;
  
  for (int i=0; i<NUM; i++){
    cin>>ia;
    if(ia%2==0 && ((ia%5==0) || (ia%3==0)){
      flag=1;
    }
  }

  if(flag==1){
    cout<<"APPROVED";
  }else{
    cout<<"DENIED";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin>>ia;
      |     ^~~
a.cc:9:10: error: 'ia' was not declared in this scope; did you mean 'i'?
    9 |     cin>>ia;
      |          ^~
      |          i
a.cc:10:43: error: expected ')' before '{' token
   10 |     if(ia%2==0 && ((ia%5==0) || (ia%3==0)){
      |       ~                                   ^
      |                                           )
a.cc:13:3: error: expected primary-expression before '}' token
   13 |   }
      |   ^
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"APPROVED";
      |     ^~~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<"DENIED";
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
int n,a[110];
  cin >> n >>a[n];
  if(a%2==0 && a%3==0 || a%5==0){
    cout << "APPROVED" << endl;
  }else{
  cout << "DEINIED" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    6 |   if(a%2==0 && a%3==0 || a%5==0){
      |      ~^~
      |      | |
      |      | int
      |      int [110]
a.cc:6:17: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    6 |   if(a%2==0 && a%3==0 || a%5==0){
      |                ~^~
      |                | |
      |                | int
      |                int [110]
a.cc:6:27: error: invalid operands of types 'int [110]' and 'int' to binary 'operator%'
    6 |   if(a%2==0 && a%3==0 || a%5==0){
      |                          ~^~
      |                          | |
      |                          | int
      |                          int [110]
Language: Java

import java.util.Scanner;
 
public class paperPlease {
  public static void main(String[] args){
    Scanner scan = new Scanner();
    int N = scan.nextInt();
    int list[N];
    for(int i = 0;i < N i++){
      list[i] = scan.nextInt();
    }
    System.out.println(N + "");
  }
}

Compiler output:
Main.java:7: error: ']' expected
    int list[N];
             ^
Main.java:7: error: ';' expected
    int list[N];
              ^
Main.java:8: error: ';' expected
    for(int i = 0;i < N i++){
                       ^
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
	int n,a[102],b[102];
	bool pd = true;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> a[i];
	}
	for (int i = 0,j=0; i < n; i++)
	{
		if (a[i] % 2 == 0) { a[i] = b[j++]; }
	}
	for (int i = 0; i < j; i++)
	{
		if (b[i] % 3 != 0 && b[i] % 5 != 0) { cout << "DENIED" << '\n'; pd = false; }
	}
	if(pd) { cout << "APPROVED" << '\n'; }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:29: error: 'j' was not declared in this scope
   17 |         for (int i = 0; i < j; i++)
      |                             ^
Language: C++

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

int main(){
  
  int N;
  int A[1010];
  
  for(int i = 0;i < N;i ++) cin >> A[i];
  
  for(int i = 0;i < N;i ++){
    
    if(A[i]%2 == 0){

      if(A[i]%3 == 0 || A[i]%5 == 0){
        
        ans ++;
        
      }
    }
  }
    for(int i = 0;i < N;i ++){

      if(A[i]%2 == 0){
        a ++;
      }
    }
      
      if(ans == a){
        cout << "APPROVED" <<endl;
      }else{
        cout << "DENIED"<<endl;
      }
}





Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |         ans ++;
      |         ^~~
      |         abs
a.cc:25:9: error: 'a' was not declared in this scope
   25 |         a ++;
      |         ^
a.cc:29:10: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |       if(ans == a){
      |          ^~~
      |          abs
a.cc:29:17: error: 'a' was not declared in this scope
   29 |       if(ans == a){
      |                 ^
Language: C++

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

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


Compiler output:
a.cc:11:2: error: extended character 　 is not valid in an identifier
   11 |  　　if(!(a.at(i)%2!=0||a.at(i)%3==0||a.at(i)%5==0)){
      |  ^
a.cc:11:2: error: extended character 　 is not valid in an identifier
a.cc:12:6: error: extended character 　 is not valid in an identifier
   12 |      　b=false;
      |      ^
a.cc: In function 'int main()':
a.cc:11:2: error: '\U00003000\U00003000if' was not declared in this scope
   11 |  　　if(!(a.at(i)%2!=0||a.at(i)%3==0||a.at(i)%5==0)){
      |  ^~~~~~
Language: C++

#include<bit/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  vector<int>v(n);
  int flag=1;
  for(int i=0; i<n; i++){
    cin>>v[i];
    if(v[i]%2 == 0){
      if(v[i]%3 && v[i]%5){
        flag=0;
      }
    }
  }
  if(flag){
    cout<<"APPROVED";
  }
  else{
    cout<<"DENIED";}
}

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

#include <cmath>
#include <iostream>
#include <functional>
#include <string>
#include <sstream>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <iomanip>
#include <math.h>
#include <list>
#include <numeric>
using namespace std;

int main(){    
  long long N;
  cin >> N;
  int j=0,B;
  long long A[N];
  
  for(int i=0;i<N;i++){
    cin >> B;
    if(B%2==0){
      A[j]=B;
      j++;
    }
  }
  if(j==0){
    cout << "DENIED" << endl;
    return 0;
  }
  for(int i=0;i<A.length();i++){
    if(A[i]%3!=0 && A[i]%5 !=0){ 
      cout << "DENIED" << endl;
      return 0;
    }
  }
  cout << "APPROVED" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:19: error: request for member 'length' in 'A', which is of non-class type 'long long int [N]'
   32 |   for(int i=0;i<A.length();i++){
      |                   ^~~~~~
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++){
    cin >> vec.at(i);
    if(vec.at(i)%2==0 && vec.at(i)%3!=0 && vec.at(i)%5!=0){
      cout << "DENIED" << endl;
      break;
  }
    else{cout << "APPROVED" <<endl;}
  }
  
    
  


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

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int n; cin>>n;
  vector<int> A(n);
  for(int i=0; i<n; i++) cin>>A[i];
  bool ok = true;
  for(int i=0; i<n; i++) 
  {
    if(A[i]%2==0)
    {
      (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: In function 'int main()':
a.cc:14:31: error: expected ';' before '{' token
   14 |       (A[i]%3!=0 || A[i]%5!=0)
      |                               ^
      |                               ;
   15 |       {
      |       ~
Language: C++

#include <iostream>
#include <stdio.h>
int main()
{
  int N;
  bool tf=true;
  int a[100];
  scanf("%d",N);
  while(tf){
    for(int i=0;i<=N;i++)
    {
      scanf("%d",a[i]);
      if(a[i] %2==0&&(a[i]%3!=0||a[i]%5!=0))
      {
        printf("DENIED\n");
      	tf = false;
      }
    }
    printf("APPROVED\n");
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int n; cin>>n
  vector<int> A(n);
  for(int i=0; i<n; i++) cin>>A[i];
  bool ok = true;
  for(int i=0; i<n; i++) 
  {
    if(A[i]%2==0)
    {
      (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: In function 'int main()':
a.cc:6:16: error: expected ';' before 'vector'
    6 |   int n; cin>>n
      |                ^
      |                ;
    7 |   vector<int> A(n);
      |   ~~~~~~        
a.cc:8:31: error: 'A' was not declared in this scope
    8 |   for(int i=0; i<n; i++) cin>>A[i];
      |                               ^
a.cc:12:8: error: 'A' was not declared in this scope
   12 |     if(A[i]%2==0)
      |        ^
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++){
    cin >> vec.at(i);
    if(vec.at(i)%2==0 && vec.at(i)%3!=0 && vec.at(i)%5!=0){
      cout << "DENIED" << endl;
      break;
  }
    else{cout << "APPROVED" <<endl;}
  }
  
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected initializer before '.' token
    7 |   vector<int> vec.(N);
      |                  ^
a.cc:9:12: error: 'vec' was not declared in this scope
    9 |     cin >> vec.at(i);
      |            ^~~
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <stdio.h>
#include <conio.h>
#include <iostream>

using namespace std;

int main() {
	
	int *A,N,frag=0;
	cin >> N;
	A = new int[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)) {
				frag = 1;
				break;
			}
		}
	}

	if (frag == 0) {
		cout << "APPROVED";
	}
	else {
		cout << "DENITED";
	}
}

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

#include<bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    int flag=1;
    int a[110];
    cin>>n;
    for(int i=0;i<n;i++)
        cin>>a[i];
    for(int i=0;i<n;i++)
        if(!(a[i]%2))//偶数
            if(a[i]%3!=0 && a[i]%5!=0)
                {flag=0;break;}
    if(flag) cout<<"APPROVED"<<endl;
    else cout<<"DENIED"<<endl;
    return 0;
}


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
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++){
    cin >> vector.at(i);
    if(vector.at(i)%2==0 && vector.at(i)%3!=0 && vector.at(i)%5!=0){
      cout << "DENIED" << endl;
      break;
  }
    else{cout << "APPROVED" <<endl;}
  }
  
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected initializer before '.' token
    7 |   vector<int> vec.(N);
      |                  ^
a.cc:9:18: error: missing template arguments before '.' token
    9 |     cin >> vector.at(i);
      |                  ^
a.cc:10:14: error: expected unqualified-id before '.' token
   10 |     if(vector.at(i)%2==0 && vector.at(i)%3!=0 && vector.at(i)%5!=0){
      |              ^
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,s[101];
    bool f=true;
	cin>>a;
	for(int i=0;i<a;i++)
	{
		cin>>s[i];
		if(s[i]%3!=0&&s[i]%5!=0) flag=false; 
	}
	if(flag) cout<<"APPROVED";
	else cout<<"DENIED"; 
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:42: error: 'flag' was not declared in this scope
   11 |                 if(s[i]%3!=0&&s[i]%5!=0) flag=false;
      |                                          ^~~~
a.cc:13:12: error: 'flag' was not declared in this scope
   13 |         if(flag) cout<<"APPROVED";
      |            ^~~~
Language: C++

#include <iostream>
#include <stdio.h>
int main(){
  int N;
  bool tf=true;
  int a[100];
  scanf("%d",N);
  while(tf){
    for(i=0;i<=N;i++){
      scanf("%d",a[i]);
      if(a[i] %2==0&&(a[i]%3!=0||a[i]%5!=0))
        printf("DENIED\n");
      	tf = false;
    }
    printf("APPROVED\n");
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'i' was not declared in this scope
    9 |     for(i=0;i<=N;i++){
      |         ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
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 c = 0 , a = 0;
    for(int i = 0; i < N; i++){
        if(V.at(i) % 2 = 0){
            c = c + 1;
            if(V.at(i) % 3 = 0 && V.at(i) % 5 = 0){
                a = a + 1;
            }
        }
    }
    if(c == a){
        cout << "APPROVED" << endl;
    }
    else{
        cout << "DENIED" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: lvalue required as left operand of assignment
   14 |         if(V.at(i) % 2 = 0){
      |            ~~~~~~~~^~~
a.cc:16:32: error: lvalue required as left operand of assignment
   16 |             if(V.at(i) % 3 = 0 && V.at(i) % 5 = 0){
      |                              ~~^~~~~~~~~~~~~~
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:7: error: 'x' was not declared in this scope
   20 |   if (x == 1) cout << "DENIED"<< endl;
      |       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'A' was not declared in this scope
   10 |     cin >> A ;
      |            ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^