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

#include <stdio.h>
int arr[105];
int k;

void answer(){
   scanf("&d",&k); 
   for(int i = 1;i <= k;i = i + 1){
    scanf("%d",&arr[i]);
    if(arr[i] % 2 ==0){
      if(arr[i] % 5 !=0 && arr[i] % 3 !=0){
        printf("DENIED\n");
        return;
      }
    }
   }
 printf("APPROVED\n");
 return;
}

int main (){
  solve();
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:21:3: error: implicit declaration of function 'solve' [-Wimplicit-function-declaration]
   21 |   solve();
      |   ^~~~~
Language: Java

import java.util.Scanner;
//import java.util.Arrays;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		//int[] a = new int[n];
		boolean flg = true;
		for(int i=0; i<n; i++){
			//a[i] = sc.nextInt();
			int a = sc.nextInt();
			if(a%2 == 0){
				if(!(a%3==0 || a%5==0)){
					flg = flase;
					
				}
			}
		}
		System.out.println(flg ? "APPROVED" : "DENIED");
	}
}


Compiler output:
Main.java:14: error: cannot find symbol
					flg = flase;
					      ^
  symbol:   variable flase
  location: class Main
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    bool result=true;
    int a;

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

        if(a%2==0 &&(a%3!=0 or a%5!=0))
        {
            result=false;
        }
    }

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

    exit(0);
}


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

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:5:16: error: invalid initializer
    5 |   int A[100] = 0;
      |                ^
Language: C

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

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

#include <stdio.h>
int main(void)
{
int N,A[1000],i=0;


scanf("%d",&N);
while(i<N){
scanf("%d",&A[i]);
i++;
}
for(i=0;i<N;i++){
if(A[i]%2==0)
if(A[i]%3!=0&&A[i]%5!=0){
pritf("DENIED");
break;
}
}
printf("APPROVED");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:1: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 | pritf("DENIED");
      | ^~~~~
      | printf
Language: C

#include <stdio.h>
int main(void)
{
int N,A[1000],i=0;


scanf("%d",&N);
while(i<N){
scanf("%d",&A[i]);
i++;
}
for(i=0;i<N;i++){
if(A[i]%2==0)
if(A[i]%3!=0&&a[i]%5!=0){
pritf("DENIED");
break;
}
}
printf("APPROVED");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:15: error: 'a' undeclared (first use in this function)
   14 | if(A[i]%3!=0&&a[i]%5!=0){
      |               ^
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:1: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 | pritf("DENIED");
      | ^~~~~
      | printf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |   scanf("%d",&n);
      |   ^~~~~
main.c:11:6: error: 'a' undeclared (first use in this function)
   11 |      a++;
      |      ^
main.c:11:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
int main(void)
{
int N,A[1000],i=0;


scanf("%d",&N);
while(i<N){
scanf("%d",&A[i]);
i++;
}
for(i=0;i<N;i++){
if(A[i]%2==0)
if(A[i]%3!=0||a[i]%5!=0){
pritf("DENIED");

}
break;
}
printf("APPROVED");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:15: error: 'a' undeclared (first use in this function)
   14 | if(A[i]%3!=0||a[i]%5!=0){
      |               ^
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:1: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 | pritf("DENIED");
      | ^~~~~
      | printf
Language: C

#include <stdio.h>
int main(void)
{
int N,A[1000],i=0;


scanf("%d",&N);
while(i<N){
scanf("%d",&A[i]);
i++;
}
for(i=0;i<N;i++){
if(A[i]%2==0)
if(A[i]%3!=0||a[i]%5!=0){
pritf("DENIED");
break;
}
}
printf("APPROVED");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:15: error: 'a' undeclared (first use in this function)
   14 | if(A[i]%3!=0||a[i]%5!=0){
      |               ^
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:1: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 | pritf("DENIED");
      | ^~~~~
      | printf
Language: C

#include <stdio.h>
int main(void)
{
int N,A[1000],i=0;


scanf("%d",&N);
while(i<N){
scanf("%d",&A[i]);
i++;
}
for(i=0;i<N;i++){
if(A[i]%2==0)
if(A[i]%3!=0||a[i]%5!=0){
pritf("DENIED");
break;
}
printf("APPROVED");
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:15: error: 'a' undeclared (first use in this function)
   14 | if(A[i]%3!=0||a[i]%5!=0){
      |               ^
main.c:14:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:1: error: implicit declaration of function 'pritf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 | pritf("DENIED");
      | ^~~~~
      | printf
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:20: error: expected ')' before '}' token
   10 |   }while(n<0&&n>100}
      |         ~          ^
      |                    )
main.c:10:20: error: expected ';' before '}' token
   10 |   }while(n<0&&n>100}
      |                    ^
      |                    ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:9: error: 'num' undeclared (first use in this function)
   14 |     if((num[i]%2==0) && (num[i]%3!=0) && (num[i]%5!=0)){
      |         ^~~
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:12: warning: comparison between pointer and integer
   13 |   for(i=0;i<n;i++){
      |            ^
main.c:14:9: error: 'num' undeclared (first use in this function)
   14 |     if((num[i]%2==0) && (num[i]%3!=0) && (num[i]%5!=0)){
      |         ^~~
main.c:14:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d", &k);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d", &k);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: At top level:
main.c:22:3: error: expected identifier or '(' before 'if'
   22 |   if(fla==0)
      |   ^~
main.c:24:3: error: expected identifier or '(' before 'else'
   24 |   else
      |   ^~~~
main.c:27:3: error: expected identifier or '(' before 'return'
   27 |   return 0;
      |   ^~~~~~
main.c:28:1: error: expected identifier or '(' before '}' token
   28 | }
      | ^
Language: C

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



Compiler output:
main.c: In function 'main':
main.c:20:11: error: 'C' undeclared (first use in this function)
   20 |   else if(C == 0)
      |           ^
main.c:20:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: conflicting types for 'n'; have 'int[100]'
    5 |   int n[100];
      |       ^
main.c:4:13: note: previous declaration of 'n' with type 'int'
    4 |   int i,fla,n;
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:19:15: error: expected ';' before 'printf'
   19 |   else(fla==0)
      |               ^
      |               ;
   20 |     printf("APPROVED\n");
      |     ~~~~~~
Language: C

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


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

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

Compiler output:
main.c: In function 'main':
main.c:16:36: error: expected ';' before '{' token
   16 |     }else(num[i]%3==0||num[i]%5==0){
      |                                    ^
      |                                    ;
Language: C

#include <stdio.h>
 
int main(void)
{
  int n=-1;
  int A[256];
  
  scanf("%d",&n);
  
  for(int 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("APPROVED");
    }else("DENIED");
  }
  
  return 0;
}

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:7: error: 'i' undeclared (first use in this function)
   10 |   for(i=0; i<n; i++){
      |       ^
main.c:10:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:8: error: 'a' undeclared (first use in this function)
   15 |     if(a[i]%2==0 && a[i]%3!=0 && a[i]%5!=0){
      |        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: array size missing in 'a'
    5 |   int a[];
      |       ^
Language: C

#include <stdio.h>
int main(void){
  int a,i,flag=0,flag2=0;
  scanf("%d",&a);
  int b[a];
  for(i=0;i<a;i++){
  	scanf("%d",&b[i]);
    if( b[i]%2==0){
        flag2++;
    if( b[i]%10==0 || b[i]%6==0)
        flag++;
  }
  if(flag==flag2){
    printf("APPROVED");
    return 0;
  }
  	printf("DENIED");
    return 0;
} 

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

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

Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected ';' before '}' token
    8 | u[i]}
      |     ^
      |     ;
main.c:15:3: error: expected declaration or statement at end of input
   15 |   }
      |   ^
Language: C

#include<stdio.h>
 
int main(void){
  int i;
  int n = 100;
  int u[100];
  for(i=0;i<n;i++){
u[i]}
  for(i=0;i<n;i++){
    if(u[i]%2==0;u[i]%5!=0){
      puts("DENIED");
    }}
  puts("APPROVED");
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:8:5: error: expected ';' before '}' token
    8 | u[i]}
      |     ^
      |     ;
main.c:10:17: error: expected ')' before ';' token
   10 |     if(u[i]%2==0;u[i]%5!=0){
      |       ~         ^
      |                 )
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:7: error: array size missing in 'a'
    5 |   int a[];
      |       ^
Language: C

#include<stdio.h>
 
int main(void){
  int i;
  int u[100];
  for(i=0;i<n;i++){
u[i]}
  for(i=0;i<n;i++){
    if(u[i]%2==0;u[i]%5!=0){
      puts("DENIED");
    }}
  puts("APPROVED");
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'n' undeclared (first use in this function)
    6 |   for(i=0;i<n;i++){
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:5: error: expected ';' before '}' token
    7 | u[i]}
      |     ^
      |     ;
main.c:9:17: error: expected ')' before ';' token
    9 |     if(u[i]%2==0;u[i]%5!=0){
      |       ~         ^
      |                 )
Language: C

#include<stdio.h>
 
int main(void){
  int i;
  int n[100];
  for(i=0;i<n;i++){
n[i]}
  for(i=0;i<n;i++){
    if(n[i]%2==0;n[i]%5!=0){
      puts('DENIED');
    }}
  puts('APPROVED');
    return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:6:12: warning: comparison between pointer and integer
    6 |   for(i=0;i<n;i++){
      |            ^
main.c:7:5: error: expected ';' before '}' token
    7 | n[i]}
      |     ^
      |     ;
main.c:8:12: warning: comparison between pointer and integer
    8 |   for(i=0;i<n;i++){
      |            ^
main.c:9:17: error: expected ')' before ';' token
    9 |     if(n[i]%2==0;n[i]%5!=0){
      |       ~         ^
      |                 )
main.c:10:12: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   10 |       puts('DENIED');
      |            ^~~~~~~~
main.c:10:12: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   10 |       puts('DENIED');
      |            ^~~~~~~~
      |            |
      |            int
In file included from main.c:1:
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
main.c:12:8: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   12 |   puts('APPROVED');
      |        ^~~~~~~~~~
main.c:12:8: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
   12 |   puts('APPROVED');
      |        ^~~~~~~~~~
      |        |
      |        int
/usr/include/stdio.h:714:30: note: expected 'const char *' but argument is of type 'int'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
Language: C

#include<stdio.h>

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


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

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

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


Compiler output:
main.c: In function 'main':
main.c:20:9: error: 'approve' undeclared (first use in this function); did you mean 'approved'?
   20 |         approve=0;
      |         ^~~~~~~
      |         approved
main.c:20:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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


Compiler output:
main.c: In function 'main':
main.c:20:9: error: 'approve' undeclared (first use in this function); did you mean 'approved'?
   20 |         approve=0;
      |         ^~~~~~~
      |         approved
main.c:20:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stadio.h>

int main(void){
  int i;
  int n[100];
  for(i=0;i<n;i++){
n[i]}
  for(i=0;i<n;i++){
    if(n[i]%2==0;n[i]%5!=0){
      puts('DENIED');
    }else {puts('APPROVED');}
    return 0;
  }

  

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

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

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


Compiler output:
main.c: In function 'main':
main.c:20:9: error: 'approve' undeclared (first use in this function); did you mean 'approved'?
   20 |         approve=0;
      |         ^~~~~~~
      |         approved
main.c:20:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

    

Compiler output:
main.c: In function 'main':
main.c:5:7: error: array size missing in 'a'
    5 |   int a[];
      |       ^
Language: C

#include <stdio.h>

int main(void)
{
  int n;
  int i;
  int num[n];
  
  
  printf("整数の数：");
  scanf("%d",&n);
  
  for(i=0;i<n;i++){
    printf("%d個目：");
    scanf("%d",&num[i]);
  }
  
  for(i=0;i<n;i++){
    if(num[i]%2==0)
      if(num[i]%3!=0||num[i]%5!=0){
        printf("DENIED");
        break;
      }
      else if(num[i-1]%3==0||num[i-1]%5==0){
        printf("APPROVED");
        break;
      }
    else if(num[i-1]%2!=0)
      printf("APPROVED");
  }
  
  

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

#include<stdio.h>

int main(void)
{
  int N;
  int i;
  int num[1000];
  int frag=0;
  
  printf("数字の数\n"); scanf("%d", &N);
  for(i=0;i<=N;i++){
    scanf("%d", num[i]);
    if(num[i]%2==0){
      if((num[i]%3==0) || (num[i]%5==0))
        frag=0;
      else {frag=1; break;}
    }
  }
    if(frag==0) printf("APPROVED\n");
    else printtf("DENIED\n");
    
    return 0;
}
    
  
  

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

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

Compiler output:
main.c: In function 'main':
main.c:12:8: error: expected expression before '%' token
   12 |     if(%2==0){
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: request for member 'at' in 'num', which is of non-class type 'int [n]'
   10 |         cin >> num.at(i);
      |                    ^~
a.cc:14:13: error: request for member 'at' in 'num', which is of non-class type 'int [n]'
   14 |     if((num.at(i) % 2 == 0 && num.at(i) % 3 == 0) || (num.at(i) % 2 == num.at(i) % 5 == 0)){
      |             ^~
a.cc:14:35: error: request for member 'at' in 'num', which is of non-class type 'int [n]'
   14 |     if((num.at(i) % 2 == 0 && num.at(i) % 3 == 0) || (num.at(i) % 2 == num.at(i) % 5 == 0)){
      |                                   ^~
a.cc:14:59: error: request for member 'at' in 'num', which is of non-class type 'int [n]'
   14 |     if((num.at(i) % 2 == 0 && num.at(i) % 3 == 0) || (num.at(i) % 2 == num.at(i) % 5 == 0)){
      |                                                           ^~
a.cc:14:76: error: request for member 'at' in 'num', which is of non-class type 'int [n]'
   14 |     if((num.at(i) % 2 == 0 && num.at(i) % 3 == 0) || (num.at(i) % 2 == num.at(i) % 5 == 0)){
      |                                                                            ^~
Language: C++

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int n;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> n;
      |   ^~~
a.cc:8:11: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |   int num[n];
      |           ^
      |           yn
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(i = 0; i < n; i++){
      |   ^~~
a.cc:9:14: error: 'i' does not name a type
    9 |   for(i = 0; i < n; i++){
      |              ^
a.cc:9:21: error: 'i' does not name a type
    9 |   for(i = 0; i < n; i++){
      |                     ^
a.cc:13:3: error: expected unqualified-id before 'for'
   13 |   for(i = 0; i < n; i++){
      |   ^~~
a.cc:13:14: error: 'i' does not name a type
   13 |   for(i = 0; i < n; i++){
      |              ^
a.cc:13:21: error: 'i' does not name a type
   13 |   for(i = 0; i < n; i++){
      |                     ^
a.cc:18:3: error: expected unqualified-id before 'if'
   18 |   if(f1 > 0){
      |   ^~
a.cc:21:3: error: expected unqualified-id before 'else'
   21 |   else if(f1 == 0){
      |   ^~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int n;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin >> n;
      |   ^~~
a.cc:8:11: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |   int num[n];
      |           ^
      |           yn
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(i = 0; i < n; i++){
      |   ^~~
a.cc:9:14: error: 'i' does not name a type
    9 |   for(i = 0; i < n; i++){
      |              ^
a.cc:9:21: error: 'i' does not name a type
    9 |   for(i = 0; i < n; i++){
      |                     ^
a.cc:13:3: error: expected unqualified-id before 'for'
   13 |   for(i = 0; i < n; i++){
      |   ^~~
a.cc:13:14: error: 'i' does not name a type
   13 |   for(i = 0; i < n; i++){
      |              ^
a.cc:13:21: error: 'i' does not name a type
   13 |   for(i = 0; i < n; i++){
      |                     ^
a.cc:20:3: error: expected unqualified-id before 'if'
   20 |   if(f1 > 0){
      |   ^~
a.cc:23:3: error: expected unqualified-id before 'else'
   23 |   else{
      |   ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:8: error: expected expression before '%' token
   12 |     if(%2==0){
      |        ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:16:3: error: expected 'while' before 'for'
   16 |   for(i=0;i<x;i++){
      |   ^~~
main.c:16:18: error: expected ';' before ')' token
   16 |   for(i=0;i<x;i++){
      |                  ^
      |                  ;
main.c:16:18: error: expected statement before ')' token
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'num' undeclared (first use in this function)
    8 |     num[i]=y;
      |     ^~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
  int N,i,m=0,k=0;
  int A[100];
  
  scanf("%d",&N);
  for(i=0;i<N;i++){
    scanf("%d",&A[i]);
    if(A[i]%2==0)
      m+=1;
    if(A[i]%2==0&&A[i]%3==0||A[i]%2==0&&A[i]%5==0)
      k+=1;
  }
  if(m=k)
    put("APPROVED" );
  else
    put("DENIED");
  
  return 0;
}

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

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

int main() {
  int N ;
cin >> N;
  
  
  
  for (int i = 0; i < N; i++) {
   int A[i];
    cin >> A[i];
  }
for (int i = 0; i < N; i++) {
   int A[i];
    cin >> A[i];
    if(A[i] % 2 == 0 ){if( A[i] % 3 == 0 ||A[i] % 5 == 0) {
cout << "APPROVED" << endl;
   
}

else {
  cout << "DENIED" << endl;
}
} 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
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 = 0; i < N; i++) {
   int A[i];
    cin >> A[i];
  }
for (int i = 0; i < N; i++) {
  cin >> A[i];
    if(A[i] % 2 == 0 && A[i] % 3 == 0 ||A[i] % 5 == 0) {
cout << "APPROVED" << endl;
   
}

else {
  cout << "DENIED" << endl;
}
} 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: 'A' was not declared in this scope
   15 |   cin >> A[i];
      |          ^
Language: C++

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

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

else {
  cout << "DENIED" << endl;
}
} 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'A' was not declared in this scope
   15 |     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 ;
cin >> N;
  int A[i];
  int i;
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
for (int i = 0; i < N; i++) {
  
    if(A[i] % 2 == 0 && A[i] % 3 == 0 ||A[i] % 5 == 0) {
cout << "APPROVED" << endl;
   
}

else {
  cout << "DENIED" << endl;
}
} 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'i' was not declared in this scope
    7 |   int A[i];
      |         ^
a.cc:10:12: error: 'A' was not declared in this scope
   10 |     cin >> A[i];
      |            ^
a.cc:14:8: error: 'A' was not declared in this scope
   14 |     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 ;
cin >> N;
  
  int i;
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
for (int i = 0; i < N; i++) {
  
    if(A[i] % 2 == 0 && A[i] % 3 == 0 ||A[i] % 5 == 0) {
cout << "APPROVED" << endl;
   
}

else {
  cout << "DENIED" << endl;
}
} 
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'A' was not declared in this scope
   10 |     cin >> A[i];
      |            ^
a.cc:14:8: error: 'A' was not declared in this scope
   14 |     if(A[i] % 2 == 0 && A[i] % 3 == 0 ||A[i] % 5 == 0) {
      |        ^
Language: C++

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

int main(void){
  
  int N;
  cin >> N;
  
  for (i = 0; i < n; i++) {
    cin >> A.at(i);
  }
  for (int i = 0; i < N; i++) {
  A.at(i) % 2 == 0 && A.at(i) % 3 == 0 ||A.at(i) % 5 == 0
  }
{
  cout << "APPROVED" << endl;
}
else {
  cout << "DENIED" << endl;
}
  
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i = 0; i < n; i++) {
      |        ^
a.cc:9:19: error: 'n' was not declared in this scope
    9 |   for (i = 0; i < n; i++) {
      |                   ^
a.cc:10:12: error: 'A' was not declared in this scope
   10 |     cin >> A.at(i);
      |            ^
a.cc:13:3: error: 'A' was not declared in this scope
   13 |   A.at(i) % 2 == 0 && A.at(i) % 3 == 0 ||A.at(i) % 5 == 0
      |   ^
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else {
      | ^~~~
Language: C++

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

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


Compiler output:
a.cc:20:1: error: expected unqualified-id before 'else'
   20 | else {
      | ^~~~
a.cc:24:1: error: expected unqualified-id before 'return'
   24 | return 0;
      | ^~~~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:19:1: error: expected unqualified-id before 'else'
   19 | else {
      | ^~~~
a.cc:23:1: error: expected unqualified-id before 'return'
   23 | return 0;
      | ^~~~~~
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: expected primary-expression before 'for'
   12 | if (for (int i = 0; i < N; i++) {
      |     ^~~
a.cc:12:5: error: expected ')' before 'for'
   12 | if (for (int i = 0; i < N; i++) {
      |    ~^~~
      |     )
a.cc:12:31: error: expected ';' before ')' token
   12 | if (for (int i = 0; i < N; i++) {
      |                               ^
      |                               ;
a.cc:15:1: error: expected primary-expression before ')' token
   15 | ) {
      | ^
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else {
      | ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before 'for'
   11 | if (for (int i = 0; i < N; i++) {
      |     ^~~
a.cc:11:5: error: expected ')' before 'for'
   11 | if (for (int i = 0; i < N; i++) {
      |    ~^~~
      |     )
a.cc:11:21: error: 'i' was not declared in this scope
   11 | if (for (int i = 0; i < N; i++) {
      |                     ^
a.cc:14:1: error: expected primary-expression before ')' token
   14 | ) {
      | ^
a.cc:17:1: error: 'else' without a previous 'if'
   17 | else {
      | ^~~~
Language: C++

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

int main() {
  int N ;
cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A.at(i);
  }
if (for (int i = 0; i < N; i++) {
  A.at(i) % 2 == 0 && A.at(i) % 3 == 0 ||A.at(i) % 5 == 0
}
) {
  処理
}
  
  
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before 'for'
   11 | if (for (int i = 0; i < N; i++) {
      |     ^~~
a.cc:11:5: error: expected ')' before 'for'
   11 | if (for (int i = 0; i < N; i++) {
      |    ~^~~
      |     )
a.cc:11:21: error: 'i' was not declared in this scope
   11 | if (for (int i = 0; i < N; i++) {
      |                     ^
a.cc:14:1: error: expected primary-expression before ')' token
   14 | ) {
      | ^
Language: C

#include <stdio.h>

int main (void) {
 int i;

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

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

 return 0; }

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

 #include <stdio.h>

 int main (void) {
 int i;

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

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

 return 0; }

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

 #include <stdio.h>

 int main (void) {
 int i;

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

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

 return 0; 
 }

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

 #include <stdio.h>

 int main (void) {
 int i;

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

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

 return 0;
 }

Compiler output:
main.c: In function 'main':
main.c:7:18: error: 'n' undeclared (first use in this function)
    7 |  for (i = 0; i < n; i++) {
      |                  ^
main.c:7: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 data[N];
  int count;
  count=0;
  for(int i=0;i<N;i++){
    cin>>data[i];
  }
  for(int i=0;i<N;i++){
    if(bata[i]%2==0){
      if(data[i]%3==0 || data[i]%5==0){
        count++
      }
    }
  }
  if(count==N){
    cout<<"APPROVED"<<endl;
  }
  else{
    cout<<"DENIED"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'bata' was not declared in this scope; did you mean 'data'?
   14 |     if(bata[i]%2==0){
      |        ^~~~
      |        data
a.cc:16:16: error: expected ';' before '}' token
   16 |         count++
      |                ^
      |                ;
   17 |       }
      |       ~
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:41: error: expected ';' before '{' token
    9 |        if (b%2==0 and (b%3!=0 or b%5!=0){
      |                                         ^
      |                                         ;
a.cc:13:24: error: expected ')' before ';' token
   13 |        cout<<"APPROVED";
      |                        ^
      |                        )
a.cc:9:11: note: to match this '('
    9 |        if (b%2==0 and (b%3!=0 or b%5!=0){
      |           ^
Language: C

include<stdio.h>

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

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

include<stdio.h>

int main(void) {
    int a[100], n, i, j = 0;
    scanf_s("%d", &n);
    for (i = 0; i < n; i++) {
        scanf_s("%d", &a[i]);
    }
    for (i = 0; i < n; i++) {
        if (a[i] % 3 != 0 && a[i] % 5 != 0) {
            j++;
        }
    }
    if (j >= 1) {
        printf("DENIED");
    }
    else {
        printf("APPROVED");
    }
    return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C

#include<stdio.h>

int main(void){
  int a[100],n,i,j=0;
  scanf("%d",&n);
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
  }
  for(i=0;i<n;i++){
    if(a[i]%3==0||a[i]%5==0){
      ;
    }
    else{
      j++;
    }
 }
  if(j>=1){
   printf("DENIED");
  }
  else{
    printf("APPROVED");
  }
  ret

Compiler output:
main.c: In function 'main':
main.c:23:3: error: 'ret' undeclared (first use in this function)
   23 |   ret
      |   ^~~
main.c:23:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:23:6: error: expected ';' at end of input
   23 |   ret
      |      ^
      |      ;
main.c:23:3: error: expected declaration or statement at end of input
   23 |   ret
      |   ^~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
	int n,aa;cin>>n;
	while(n--){
		cin>>a;
		if(a%2==0&&a%3!=0&&a%5!=0){cout<<"DENIED";return 0;}
	}
	cout<<"APPROVED";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'a' was not declared in this scope; did you mean 'aa'?
    8 |                 cin>>a;
      |                      ^
      |                      aa
Language: C

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

Compiler output:
main.c:29:5: error: redefinition of 'main'
   29 | int main(void)
      |     ^~~~
main.c:3:5: note: previous definition of 'main' with type 'int(void)'
    3 | int main(void)
      |     ^~~~
main.c:53:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   53 | 提出情報
      | ^~~~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:36: error: expected expression before ')' token
   17 |           if((a[i]%3==0)||(a[i]%5==))  x++;
      |                                    ^