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

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int n;
	cin>> n;
	int a[n];
	for(int i=0;i<n;i++)
	{
	    cin >> a[i];
	}
	int flage =0;
	for(int i=0;i<n;i++)
	{
	    if(a[i]%2 == 0)
	    {
	        if((a[i]%3 == 0) ||(a[i]%5) == 0)
	        {
	            flag = 0;
	        }
	        else
	        {
	            flag = 1;
	            break;
	        }
	    }
	    
	}
	if(flag == 1)
	{
	    cout << "DENIED\n";
	}
	else
	{
	    cout << "APPROVED\n";
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: 'flag' was not declared in this scope; did you mean 'flage'?
   20 |                     flag = 0;
      |                     ^~~~
      |                     flage
a.cc:24:21: error: 'flag' was not declared in this scope; did you mean 'flage'?
   24 |                     flag = 1;
      |                     ^~~~
      |                     flage
a.cc:30:12: error: 'flag' was not declared in this scope; did you mean 'flage'?
   30 |         if(flag == 1)
      |            ^~~~
      |            flage
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:19:24: error: expected ';' before 'return'
   19 |     std::cout<<"DENIED"
      |                        ^
      |                        ;
   20 |   return 0;
      |   ~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: 'APPROVED' was not declared in this scope
   17 |     std::cout<<APPROVED;
      |                ^~~~~~~~
a.cc:19:24: error: expected ';' before 'return'
   19 |     std::cout<<"DENIED"
      |                        ^
      |                        ;
   20 |   return 0;
      |   ~~~~~~
Language: C++

cin>>N;

int i=0;
int n;
int A=1;

while(i<N){

cin>>n;

if(n%2==1){A=A*1;}
if else(n%2==0&&(n%3==0||n%5==0)){A=A*1;}
else {A=A*0;}

i++;

}

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


}

Compiler output:
a.cc:1:1: error: 'cin' does not name a type
    1 | cin>>N;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'while'
    7 | while(i<N){
      | ^~~~~
a.cc:19:1: error: expected unqualified-id before 'if'
   19 | if(A==1){cout<<"APPROVED"<<endl;}
      | ^~
a.cc:20:1: error: expected unqualified-id before 'else'
   20 | else{cout<<"DENIED"<<endl;}
      | ^~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

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

int main(){

int N;
cin>>N;

int i=0;
int n;
int A=1;

while(i<N){

cin>>n;

if((n%2==1)||(n%2==0&&(n%3==0)||(n%5==0))){A=A*1;}
else {A=A*0;}

i++;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
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;

int i=0;
int n;
int A=1;

while(i<N){

cin>>n;

if((n%2==1)||(n%2==0&&(n%3==0||n%5==0))){A=A*1;}
else {A=A*0;}

i++;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
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;

int i=0;
int n;
int A=0;

while(i<N){

cin>>n;

if(n%2==1){A=1;}
else if(n%2==0&&n%3==0&&n%5==0){A=1;}
else {A=0;}

i++;

}

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:15: error: unable to find string literal operator 'operator""endl' with 'const char [9]', 'long unsigned int' arguments
   25 | if(A=1){cout<<"APPROVED"endl;}
      |               ^~~~~~~~~~~~~~
Language: C++

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

int main(){

int N;
cin>>N;

int i=0;
int n;
int A=0;

while(i<N){

cin>>n;

if(n%2==1){A=1}
else if(n%2==0&&n%3==0&&n%5==0){A=1}
else {A=0}

i++;

}

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before '}' token
   17 | if(n%2==1){A=1}
      |               ^
      |               ;
a.cc:18:36: error: expected ';' before '}' token
   18 | else if(n%2==0&&n%3==0&&n%5==0){A=1}
      |                                    ^
      |                                    ;
a.cc:19:10: error: expected ';' before '}' token
   19 | else {A=0}
      |          ^
      |          ;
a.cc:25:15: error: unable to find string literal operator 'operator""endl' with 'const char [9]', 'long unsigned int' arguments
   25 | if(A=1){cout<<"APPROVED"endl;}
      |               ^~~~~~~~~~~~~~
Language: C++

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

int main(){

int N;
cin>>N;

int i=0;
int n;
int A=0;

while(i<N){

cin>>n;

if(n%2==1){A=1}
else if(n%2==0&&n%3==0&&n%5==0){A=1}
else {A=0}

i++

}

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before '}' token
   17 | if(n%2==1){A=1}
      |               ^
      |               ;
a.cc:18:36: error: expected ';' before '}' token
   18 | else if(n%2==0&&n%3==0&&n%5==0){A=1}
      |                                    ^
      |                                    ;
a.cc:19:10: error: expected ';' before '}' token
   19 | else {A=0}
      |          ^
      |          ;
a.cc:21:4: error: expected ';' before '}' token
   21 | i++
      |    ^
      |    ;
   22 | 
   23 | }
      | ~   
a.cc:25:15: error: unable to find string literal operator 'operator""endl' with 'const char [9]', 'long unsigned int' arguments
   25 | if(A=1){cout<<"APPROVED"endl;}
      |               ^~~~~~~~~~~~~~
Language: C

#include <stdio.h>
int main()
{
  int intger_numb;
  printf("the number that u have ");
  scanf("%d",&intger_numb);
  int arry[intger_numb];
  printf("enter the number\n");
  scanf("%d",&arry);
  
  for (int i=1;i<intger_num;i++)
  {
    if(arry[intger_numb]%2==0)
    {
      if((arry[intger_numb]%5!=0)||(arry[intger_numb]%3!=0))
         {
           	printf("denied");
        	break;
         }
      
    }
    printf("approved");
    
  }
  
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:18: error: 'intger_num' undeclared (first use in this function); did you mean 'intger_numb'?
   11 |   for (int i=1;i<intger_num;i++)
      |                  ^~~~~~~~~~
      |                  intger_numb
main.c:11:18: 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];
  int s=0,k=0;
  for (int i=0;i<n;i++)
  {
    cin>>a[i];
    if (a[i]%2==0)
    {
      if (a[i]%3==0 or a[i]%5==0)
        k++;
      s++;
    }
  }
  if (s==k)
    cout<<"APPROVED";
  else
    cout<<"DENIED";
  

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: request for member 'size' in 'a', which is of non-class type 'int [n]'
    9 |   for (int i = 0; i < a.size(); i++) {
      |                         ^~~~
a.cc:12:25: error: request for member 'size' in 'a', which is of non-class type 'int [n]'
   12 |   for (int i = 0; i < a.size(); i++) {
      |                         ^~~~
Language: C++

n = int(input())
v = list(map(int, input().split(' ')))

approved = True
for val in v:
	if (val % 2 == 0):
		if (val % 3 != 0 and val % 5 != 0):
			approved = False
			
if (approved):
	print('APPROVED')
else:
	print('DENIED')


Compiler output:
a.cc:11:15: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   11 |         print('APPROVED')
      |               ^~~~~~~~~~
a.cc:13:15: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   13 |         print('DENIED')
      |               ^~~~~~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n = int(input())
      | ^
Language: C++

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

typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> ii;
typedef tuple<ll, ll, ll> iii;
typedef vector<ll> vi;
typedef vector<ii> vii;
typedef vector<iii> viii;
typedef vector<vi> vvi;
typedef vector<vii> vvii;
#define REP(i,n) for (ll i = 0; i < n; ++i)
#define REPR(i,n) for (ll i = n-1; i >= 0; --i)
#define FOR(i,m,n) for (ll i = m; i < n; ++i)
#define FORR(i,m,n) for (ll i = n-1; i >= m; --i)
#define FORE(x,xs) for (const auto& x : xs)
#define ALL(v) v.begin(), v.end()

const int MAX = 111;

int N;
int A[MAX];

string solve() {
    REP (i, N) if (A&1 == 0) {
        if (A%3 != 0 && A%5 != 0) return "DENIED";
    }
    return "APPROVED";
}

int main() {
    cin >> N;
    REP (i, N) cin >> A[i];
    cout << solve() << endl;
}

Compiler output:
a.cc: In function 'std::string solve()':
a.cc:26:21: error: invalid operands of types 'int [111]' and 'bool' to binary 'operator&'
   26 |     REP (i, N) if (A&1 == 0) {
      |                    ~^~~~~~~
      |                    |   |
      |                    |   bool
      |                    int [111]
a.cc:27:14: error: invalid operands of types 'int [111]' and 'int' to binary 'operator%'
   27 |         if (A%3 != 0 && A%5 != 0) return "DENIED";
      |             ~^~
      |             | |
      |             | int
      |             int [111]
a.cc:27:26: error: invalid operands of types 'int [111]' and 'int' to binary 'operator%'
   27 |         if (A%3 != 0 && A%5 != 0) return "DENIED";
      |                         ~^~
      |                         | |
      |                         | int
      |                         int [111]
Language: C++

	std::string input;
	std::cin >> input; std::cin.ignore();

	const std::string input1 = input.substr(0, 1);
	const std::string input2 = input.substr(2, 1);
	const std::string input3 = input.substr(4, 1);

	return ((input1 == input2 && input2 == input3) ? "Yes" : "No");


Compiler output:
a.cc:1:14: error: 'string' in namespace 'std' does not name a type
    1 |         std::string input;
      |              ^~~~~~
a.cc:1:8: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 |         std::string input;
a.cc:2:14: error: 'cin' in namespace 'std' does not name a type
    2 |         std::cin >> input; std::cin.ignore();
      |              ^~~
a.cc:1:8: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 |         std::string input;
a.cc:2:33: error: 'cin' in namespace 'std' does not name a type
    2 |         std::cin >> input; std::cin.ignore();
      |                                 ^~~
a.cc:2:28: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 |         std::cin >> input; std::cin.ignore();
      |                            ^~~
a.cc:4:20: error: 'string' in namespace 'std' does not name a type
    4 |         const std::string input1 = input.substr(0, 1);
      |                    ^~~~~~
a.cc:4:15: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    4 |         const std::string input1 = input.substr(0, 1);
      |               ^~~
a.cc:5:20: error: 'string' in namespace 'std' does not name a type
    5 |         const std::string input2 = input.substr(2, 1);
      |                    ^~~~~~
a.cc:5:15: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    5 |         const std::string input2 = input.substr(2, 1);
      |               ^~~
a.cc:6:20: error: 'string' in namespace 'std' does not name a type
    6 |         const std::string input3 = input.substr(4, 1);
      |                    ^~~~~~
a.cc:6:15: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    6 |         const std::string input3 = input.substr(4, 1);
      |               ^~~
a.cc:8:9: error: expected unqualified-id before 'return'
    8 |         return ((input1 == input2 && input2 == input3) ? "Yes" : "No");
      |         ^~~~~~
Language: C++

#include<iostream>

int main(void)
{
  int n = 0;
  std::cin >> n;
  
  int buffer = 0;
  for(int count = 0; n > count; ++count)
  {
    std::cin >> buffer;
    if(0 != buffer % 2)
    {
      continue;
    }
    if(0 != buffer % 3 && 0 != buffer % 5)
    {
      std::cout << "DENIED" std::endl;
      return 0;
    }
    std::cout << "APPROVED" << std::endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: expected ';' before 'std'
   18 |       std::cout << "DENIED" std::endl;
      |                            ^~~~
      |                            ;
Language: Java

import java.util.Scanner;

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


Compiler output:
Main.java:15: error: ')' expected
        if( !(A[j]%3==0) || !(A[j]%5==0 ){
                                         ^
1 error
Language: C++

#include<isotream>
using namespace std;
int main()
{
int N,flag=0;
  cin>>N;
int A[N];
  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)
        continue;
      else
        flag=1;
    }
  }
 if(flag==1)
   printf("DENIED");
 else
   printf("APPROVED");
}

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

    n = int(input())
    l = list(map(int, input().split()))
    def test():
      for i in l:
        if i%2 == 0 and i%3!=0 and i%5!=0:
          return "DENIED"
      return "APPROVED"
    print(test())

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

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


Compiler output:
main.c: In function 'main':
main.c:13:19: error: expected ')' before '!' token
   13 |     if((A[i]%2==0)!((A[i]%3==0)||(A[i]%5==0))){
      |       ~           ^
      |                   )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:13:19: error: expected ')' before '!' token
   13 |     if((A[i]%2==0)!!((A[i]%3==0)||(A[i]%5==0))){
      |       ~           ^
      |                   )
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
  int n;
  cin >> n;
  
  vector<int>num(n);
  for(int i=0;i<n;i++){
    cin >> num[i];
  }
  
  bool ans = true;
  
  for(int i=0;i<n;i++){
    if(num[i] % 2 == 0){
      if(num[i] % 3 != 0 && num[i] % 5 != 0){
        ans = false;
      }
    }

    if(ans)
      cout << "APPROVED" << endl;
    else
      cout << "DENIED" << endl;
    
    return 0;
  }


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

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

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

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


Compiler output:
main.c: In function 'main':
main.c:14:35: error: expected statement before ')' token
   14 |       if((A[i]%3==0)||(A[i]%5==0))){
      |                                   ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:13:13: error: expected expression before '%' token
   13 |     if(A[i]%%2=0){
      |             ^
main.c:14:16: error: expected expression before '%' token
   14 |       if((A[i]%%3=0)||(A[i]%%5=0))){
      |                ^
main.c:14:29: error: expected expression before '%' token
   14 |       if((A[i]%%3=0)||(A[i]%%5=0))){
      |                             ^
main.c:14:35: error: expected statement before ')' token
   14 |       if((A[i]%%3=0)||(A[i]%%5=0))){
      |                                   ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:14:35: error: expected statement before ')' token
   14 |       if((A[i]%3==0)||(A[i]%5==0))){
      |                                   ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:13:49: error: expected ')' before '{' token
   13 |     if(((A[i]%2==0)&&((A[i]%3==0)||(A[i]%5==0))){
      |       ~                                         ^
      |                                                 )
main.c:17:3: error: expected expression before '}' token
   17 |   }
      |   ^
Language: C

#include<stdio.h>
int main()
{
  int N;
  scanf("%d",&N);
  int A[N];
  int i;
  for(i=0;i<N;i++){
    scanf("%d",&A[i]);
  }
  int flag=1;
  for(i=0;i<N;i++){
    if(((A[i]%2==0)&&((A[i]%3==0)||(A[i]%5==0))){
      flag=0;
      break;
    }
       }
       return 0;
       }
       


Compiler output:
main.c: In function 'main':
main.c:13:49: error: expected ')' before '{' token
   13 |     if(((A[i]%2==0)&&((A[i]%3==0)||(A[i]%5==0))){
      |       ~                                         ^
      |                                                 )
main.c:17:8: error: expected expression before '}' token
   17 |        }
      |        ^
Language: C

#include<stdio.h>
int main()
{
  int N;
  scanf("%d",&N);
  int A[N]:
  int i;
  for(i=0;i<N;i++){
    scanf("%d",&A[i]);
  }
  int flag=1;
  for(i=0;i<N;i++){
    if(((A[i]%2==0)&&((A[i]%3==0)||(A[i]%5==0))){
      flag=0;
      break;
    }
       }
       return 0;
       }
       

Compiler output:
main.c: In function 'main':
main.c:6:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    6 |   int A[N]:
      |           ^
main.c:6:11: error: expected expression before ':' token
main.c:8:7: error: 'i' undeclared (first use in this function)
    8 |   for(i=0;i<N;i++){
      |       ^
main.c:8:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:17: error: 'A' undeclared (first use in this function)
    9 |     scanf("%d",&A[i]);
      |                 ^
main.c:13:49: error: expected ')' before '{' token
   13 |     if(((A[i]%2==0)&&((A[i]%3==0)||(A[i]%5==0))){
      |       ~                                         ^
      |                                                 )
main.c:17:8: error: expected expression before '}' token
   17 |        }
      |        ^
Language: C++

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

typedef long long 			ll;
typedef unsigned long long 	ull;

int main() {
	ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
	ll n, a;
	for (int i = 0; i < n; i++) {
		cin >> a;
		if (!(a & 1))
			if (a % 3 || a % 5)
				return cout << "DENIED" << endl;
	}
	cout << "APPROVED" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:57: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
   14 |                                 return cout << "DENIED" << endl;
      |                                        ~~~~~~~~~~~~~~~~~^~~~~~~
      |                                                         |
      |                                                         std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
Language: C++

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

typedef long long 			ll;
typedef unsigned long long 	ull;

const int N = 100 + 20;

ll a[N];

int main() {
	ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
	cin >> n;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
		if (!(a[i] & 1)) {
			if (a[i] % 3 != 0 || a[i] % 5 != 0)
				return cout << "APPROVED" << endl, 0;
		}
	}	
	cout << "DENIED" << endl;
	return 0;
}


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

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

int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  rep(i,n) cin >> a[i]
  bool ok = ture
  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: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i,n) cin >> a[i]
      |       ^
a.cc:8:3: error: 'rep' was not declared in this scope
    8 |   rep(i,n) cin >> a[i]
      |   ^~~
a.cc:14:7: error: 'ok' was not declared in this scope
   14 |   if (ok) cout << "APPROVED" << endl;
      |       ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:7: error: 'b' undeclared (first use in this function)
   10 |       b[j]==a[i];
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:3: error: 'else' without a previous 'if'
   19 |   else{
      |   ^~~~
Language: C++

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

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

int main(){

    int N;
    cin >> N;
    vector<int> A(N);
    rep(i, N) cin >> a.at(i);
    bool APP = true;
    rep(i,N){
        if(a.at(i)%2==1)
            continue;
        if(a.at(i)%3!=0&&a.at(i)%5!=0)
            APP = false;
    }

    if(APP)
        cout << "APPROVED" << endl;
    else
        cout << "DENIED" << endl;

    return 0;
}

/*
全てが偶数かつ、3or5で割り切れる
→１つでも、偶数かつ3or5で割り切れない
*/

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'a' was not declared in this scope
   11 |     rep(i, N) cin >> a.at(i);
      |                      ^
a.cc:14:12: error: 'a' was not declared in this scope
   14 |         if(a.at(i)%2==1)
      |            ^
a.cc:16:12: error: 'a' was not declared in this scope
   16 |         if(a.at(i)%3!=0&&a.at(i)%5!=0)
      |            ^
Language: C++

n = int(input())
arr = list(map(int,input().split()))
flag = 0
for i in arr:
  if i%2 == 0:
    if i%3 != 0 and i%5 != 0:
      flag = 1
      break
if flag == 1:
  print("DENIED")
else:
  print("APPROVED")

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

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

using namespace std;

int main(){
    int n;
    cin >> n;
    vector<int> a(n);
    vector<int> a(0);
    string result = "DENIED";
    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){
                result = "APPROVED";
                return 0;
            }
        }
    }
    cout << result << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: redeclaration of 'std::vector<int> a'
   12 |     vector<int> a(0);
      |                 ^
a.cc:11:17: note: 'std::vector<int> a' previously declared here
   11 |     vector<int> a(n);
      |                 ^
Language: C++

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

int main(void){
  int n; cin >> n;
  int a[n];
  rep(i,n) cin >> a[i];
  bool ans = 1;
  rep(i,n){
    if(a[i]%2 == 1){
      ans = 1;
    }
    else if(a[i] % 3 == 1 || a[i] %5 == 1){
      cout << "DENIED" << endl;
      return 0;
    }
  }
  out << "APPROVED" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:3: error: 'out' was not declared in this scope
   21 |   out << "APPROVED" << endl;
      |   ^~~
Language: C++

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

int main(){
  
  int N;
  int a;
  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 && A[i]%3 != 0 && A[i]%5 != 0){
      
      a ++;
    }
  }
  
  if(a == 0){
    cout << "APPROVED" <<endl;
  }else if(a > 0){
    cout << "DENIED"<<endl;
  }
}





Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: conflicting declaration 'int a [1010]'
    8 |   int a[1010];
      |       ^
a.cc:7:7: note: previous declaration as 'int a'
    7 |   int a;
      |       ^
a.cc:12:13: error: invalid types 'int[int]' for array subscript
   12 |     cin >> a[i];
      |             ^
a.cc:18:8: error: 'A' was not declared in this scope
   18 |     if(A[i]%2 == 0 && A[i]%3 != 0 && A[i]%5 != 0){
      |        ^
Language: C++

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

int main() 
    int n; 
	scanf("%d", &n); bool ok = 1;
    while(n --) {
        int x; scanf("%d", &x);
        if(x % 2 == 0 && (x % 3 != 0 && x % 5 != 0)) {
            ok = 0;
        
    
    puts(ok ? "APPROVED" : "DENIED");
    return 0;


Compiler output:
a.cc:5:5: error: expected initializer before 'int'
    5 |     int n;
      |     ^~~
a.cc:6:14: error: expected constructor, destructor, or type conversion before '(' token
    6 |         scanf("%d", &n); bool ok = 1;
      |              ^
a.cc:7:5: error: expected unqualified-id before 'while'
    7 |     while(n --) {
      |     ^~~~~
Language: C++

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

int main() 
    int n; 
	scanf("%d", &n); bool ok = 1;
    while(n --) {
        int x; scanf("%d", &x);
        if(x % 2 == 0 && (x % 3 != 0 && x % 5 != 0)) {
            
        }
    }
    puts(ok ? "APPROVED" : "DENIED");
    return 0;


Compiler output:
a.cc:5:5: error: expected initializer before 'int'
    5 |     int n;
      |     ^~~
a.cc:6:14: error: expected constructor, destructor, or type conversion before '(' token
    6 |         scanf("%d", &n); bool ok = 1;
      |              ^
a.cc:7:5: error: expected unqualified-id before 'while'
    7 |     while(n --) {
      |     ^~~~~
a.cc:13:9: error: expected constructor, destructor, or type conversion before '(' token
   13 |     puts(ok ? "APPROVED" : "DENIED");
      |         ^
a.cc:14:5: error: expected unqualified-id before 'return'
   14 |     return 0;
      |     ^~~~~~
Language: C++

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

int main() 
    in
	scanf("%d", &n); bool ok = 1;
    while(n --) {
        int x; scanf("%d", &x);
        if(x % 2 == 0 && (x % 3 != 0 && x % 5 != 0)) {
            ok = 0;
        }
    }
    puts(ok ? "APPROVED" : "DENIED");
    return 0;


Compiler output:
a.cc:5:5: error: expected initializer before 'in'
    5 |     in
      |     ^~
a.cc:7:5: error: expected unqualified-id before 'while'
    7 |     while(n --) {
      |     ^~~~~
a.cc:13:9: error: expected constructor, destructor, or type conversion before '(' token
   13 |     puts(ok ? "APPROVED" : "DENIED");
      |         ^
a.cc:14:5: error: expected unqualified-id before 'return'
   14 |     return 0;
      |     ^~~~~~
Language: C++

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

int main() 
    int n; 
	scanf("%d", &n); bool ok = 1;
    while(n --) {
        int x; scanf("%d", &x);
        if(x % 2 == 0 && (x % 3 != 0 && x % 5 != 0)) {
            ok = 0
        }
    }
    puts(ok ? "APPROVED" : "DENIED")
    return 0;


Compiler output:
a.cc:5:5: error: expected initializer before 'int'
    5 |     int n;
      |     ^~~
a.cc:6:14: error: expected constructor, destructor, or type conversion before '(' token
    6 |         scanf("%d", &n); bool ok = 1;
      |              ^
a.cc:7:5: error: expected unqualified-id before 'while'
    7 |     while(n --) {
      |     ^~~~~
a.cc:13:9: error: expected constructor, destructor, or type conversion before '(' token
   13 |     puts(ok ? "APPROVED" : "DENIED")
      |         ^
Language: C++

#include <bits/stdc++.h>

	scanf("%d", &n); bool ok = 1;
    while(n --) {
        int x; scanf("%d", &x);
        if(x % 2 == 0 && (x % 3 != 0 && x % 5 != 0)) {
            ok = 0;
    puts(ok ? "APPROVED" : "DENIED");
    return 0;


Compiler output:
a.cc:3:14: error: expected constructor, destructor, or type conversion before '(' token
    3 |         scanf("%d", &n); bool ok = 1;
      |              ^
a.cc:4:5: error: expected unqualified-id before 'while'
    4 |     while(n --) {
      |     ^~~~~
Language: C++

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

int main() {
   
	scanf("%d", &n); bool ok = 1;
    while(n --) {
        int x; scanf("%d", &x);
        if(x % 2 == 0 && (x % 3 != 0 && x % 5 != 0)) {
            ok = 0;
        }
    }
    puts(ok ? "APPROVED" : "DENIED");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |         scanf("%d", &n); bool ok = 1;
      |                      ^
      |                      yn
Language: C++

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

int main() {
    
	scanf("%d", &n); bool ok = 1;
    while(n --) {
        int x; scanf("%d", &x);
        if(x % 2 == 0 && (x % 3 != 0 && x % 5 != 0)) {
            ok = 0;
        }
    }
    puts(ok ? "APPROVED" : "DENIED");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |         scanf("%d", &n); bool ok = 1;
      |                      ^
      |                      yn
Language: C++

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

int main() {
    int n; 
	cin>>n; 
	int ok = 1;
    while(n --) {
        int x; 
		cin>>x;
        if(x % 2 == 0 && (x % 3 != 0 && x % 5 != 0)) {
            ok = 0;
        }
    }
    if(ok==0)
    cout<<"APPROVED"<<endl;
else
    cout<<"DENIED"<<endl; 
    return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>n;
      |         ^~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"APPROVED"<<endl;
      |     ^~~~
a.cc:16:23: error: 'endl' was not declared in this scope
   16 |     cout<<"APPROVED"<<endl;
      |                       ^~~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<"DENIED"<<endl;
      |     ^~~~
a.cc:18:21: error: 'endl' was not declared in this scope
   18 |     cout<<"DENIED"<<endl;
      |                     ^~~~
Language: C++

#include <bits/stdc++.h>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;

    int main(){
        int n;
        std::cin >> n;
        std::vector<int> a(n);
        rep(i,n) std::cin >> a[i];
        bool ok =true;
        rep(i,n){
            if (a[i]%2 ==1) contine;
            if (a[i]%3 != 0 && a[i]%5 != 0) ok = false;
        }
        
        if (ok) std::cout << "APPROVED" << "\n";
        else std::cout << "DENIED" << "\n";
        return 0;
    }
    


Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: 'contine' was not declared in this scope
   14 |             if (a[i]%2 ==1) contine;
      |                             ^~~~~~~
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 OK = true;
  for(int i=0;i<N;i++) {
    if(A.at(i)%2==1) {
      continue;
    }
    else if(A.at(i)%3!=0&&A.at(i)%5!=0){
      ok=false;
    }
    else {
    }
  }
  if(ok==true) {
    cout << "APPROVED" << endl;
  }
  else {
    cout << "DENIED" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:7: error: 'ok' was not declared in this scope; did you mean 'OK'?
   17 |       ok=false;
      |       ^~
      |       OK
a.cc:22:6: error: 'ok' was not declared in this scope; did you mean 'OK'?
   22 |   if(ok==true) {
      |      ^~
      |      OK
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
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;
    int a[n];
    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 = "APPROVED";
            }
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |                 ans = "APPROVED";
      |                 ^~~
      |                 abs
a.cc:22:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include "bits/stdc++.h"

using namespace std;

int main()
{
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; ++i) cin >> a[i];

    for (int aa : a)
    {
        if (aa % 2 == 0)
        {
            if (aa % 3 == 0 || aa % 5 == 0)
            {
                ans = "APPROVED";
            }
        }
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |                 ans = "APPROVED";
      |                 ^~~
      |                 abs
a.cc:22:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   22 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

n = int(input())
A = []
for i in range(0, n) :
	temp = int(input())
	A.append(temp)
flag = True
for i in range(0, n) :
	if A[i] % 2 != 0 :
		continue
	elif A[i] % 2 == 0 and (A[i]%3 == 0 or A[i]%5 == 0) :
		continue
	else :
		flag = False
		break
if flag :
	print ("APPROVED")
else :
	print ("DENIED")

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

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

int main() {
    int n;
    cin >> n;
    bool fg = 1;
    for(int i=1; i<=n; i++){
        int x;
        cin >> x;
        if((x%2==0) && x%3!=0 && x%6!=0)
            fg = 0;


    }
    if(fg)
        cout << "APPROVED\n";
    else
        cout << "DENIED\n";
}


Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include#include <bits/stdc++.h>
      |         ^
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> n;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include#include <bits/stdc++.h>
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "APPROVED\n";
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << "DENIED\n";
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
    int n;
    cin >> n;
    vector<int> a;
    bool flag = false;
    for(int i = 0;i < n;i++){
        cin >> a[i];
        if(a[i] % 2 == 0 && !(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:11:62: error: expected ')' before '{' token
   11 |         if(a[i] % 2 == 0 && !(a[i] % 3 == 0 || a[i] % 5 == 0){
      |           ~                                                  ^
      |                                                              )
a.cc:15:5: error: expected primary-expression before '}' token
   15 |     }
      |     ^
Language: C++

#include<bits/stdc++.h>
int a,c;
int b=1;
int main(){
  cin>>a;
  for(int i=0;i<a;i++){
    cin>>c;
    if((c/2==0)&&(c/3!=0)&&(c/5!=0))b=0;
  }
  if(b)cout<<"APPROVED"<<endl;
  else cout<<"DENIED"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   if(b)cout<<"APPROVED"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   if(b)cout<<"APPROVED"<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   else cout<<"DENIED"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   else cout<<"DENIED"<<endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
int b=1,a,c;
int main(){
  cin>>a;
  for(int i=0;i<a;i++)cin>>c;if((c/2==0)&&(c/3!=0)&&(c/5!=0))b=0;
  if(b)cout<<"APPROVED"<<endl;
  else cout<<"DENIED"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(b)cout<<"APPROVED"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(b)cout<<"APPROVED"<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout<<"DENIED"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else cout<<"DENIED"<<endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
int a,c;
bool b=1;
int main(){
  cin>>a;
  for(int i=0;i<a;i++)cin>>c;if((c/2==0)&&(c/3!=0)&&(c/5!=0))b=0;
  if(b)cout<<"APPROVED"<<endl;
  else cout<<"DENIED"<<endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(b)cout<<"APPROVED"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if(b)cout<<"APPROVED"<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else cout<<"DENIED"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout<<"DENIED"<<endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:30: error: expected ';' before '[' token
   15 |       if(arr[i]%2!=0) &&  arr[i]%2!=5)
      |                              ^
      |                              ;
a.cc:21:10: error: expected unqualified-id before ')' token
   21 |   if(bool)
      |          ^
a.cc:15:27: error: label 'arr' used but not defined
   15 |       if(arr[i]%2!=0) &&  arr[i]%2!=5)
      |                           ^~~
Language: C++

#include <stdio.h>

int main (void) {
		int i;

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

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

		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: 'n' was not declared in this scope
    7 |                 for (i = 0; i < n; i++) {
      |                                 ^
a.cc:11:33: error: 'n' was not declared in this scope
   11 |                 for (i = 0; i < n; i++) {
      |                                 ^