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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:4: error: expected ';' before 'n'
    4 | cin n,a[110];
      |    ^~
      |    ;
a.cc:5:10: error: 'n' was not declared in this scope
    5 |   cin >> n >>a;
      |          ^
a.cc:5:14: error: 'a' was not declared in this scope
    5 |   cin >> n >>a;
      |              ^
Language: Java

import java.util.Scanner;

public class paperPlease {
  public static void main(String[] args){
    Scanner scan = new Scanner();
    int N = scan.nextInt();
    System.out.println(N + "");
  }
}

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

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

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

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

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

int main {
  int N;
  cin >> N;
  vector <int> A(N);
  for(int i = 0; i < N; i++){
    cin << A.at(i);
  }
  
  for(int i = 0; i < N; i++){
    if(A.at(i) % 2 == 0 && A.at(i) % 3 != 0 && A.at(i) % 5 != 0){
      cout << "DENIED" << endl;
    }
  }
  
  else{
    cout << "APPROVED" << 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:10: note: to match this '{'
    4 | int main {
      |          ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> N;
      |   ^~~
a.cc:7:18: error: 'N' was not declared in this scope
    7 |   vector <int> A(N);
      |                  ^
a.cc:8:3: error: expected unqualified-id before 'for'
    8 |   for(int i = 0; i < N; i++){
      |   ^~~
a.cc:8:18: error: 'i' does not name a type
    8 |   for(int i = 0; i < N; i++){
      |                  ^
a.cc:8:25: error: 'i' does not name a type
    8 |   for(int i = 0; i < N; i++){
      |                         ^
a.cc:12:3: error: expected unqualified-id before 'for'
   12 |   for(int i = 0; i < N; i++){
      |   ^~~
a.cc:12:18: error: 'i' does not name a type
   12 |   for(int i = 0; i < N; i++){
      |                  ^
a.cc:12:25: error: 'i' does not name a type
   12 |   for(int i = 0; i < N; i++){
      |                         ^
a.cc:18:3: error: expected unqualified-id before 'else'
   18 |   else{
      |   ^~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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

int main(){
  int n;
  cin >> n;
  int A[n];
  rep(i,n) cin >> A[i];
  
  string ans = "APPROVED";
  
  rep(i,n){
  if (A[i]%2 == 0){
    if(A[i]%3 != 0 && A[i]%5 != 0){
      ans = "DENIED";
    }
  }
  }
  
  cout << ans << endl;


Compiler output:
a.cc: In function 'int main()':
a.cc:23:23: error: expected '}' at end of input
   23 |   cout << ans << endl;
      |                       ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

n = int(input())
a = list(map(int, input().split()))
new_list = []
count = 0

for i in a:
    if i % 2 == 0:
        new_list.append(i)
    else:
        continue
for i in new_list:
    if i % 3 == 0 or i % 5 == 0:
        count += 1
if count == len(new_list):
    print('APPROVED')
else:
    print('DENIED')

Compiler output:
a.cc:15:11: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   15 |     print('APPROVED')
      |           ^~~~~~~~~~
a.cc:17:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   17 |     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;

int main() {

  

  int n;
int k;
  cin >> n;

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

 



}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: lvalue required as left operand of assignment
   15 |     if (k %2=0){
      |         ~~^~
a.cc:16:19: error: lvalue required as left operand of assignment
   16 |       if (!(k%3=0 || k%5=0)){
      |                 ~~^~~~~~
Language: Java

import java.util.Scanner;

public void paperPlease(){
  public static void main(String[] args){
    Scanner scan = new Scanner();
    int N = scan.nextInt();
    System.out.println(N + "");
  }
}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public void paperPlease(){
       ^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: illegal start of expression
  public static void main(String[] args){
  ^
Main.java:9: error: class, interface, enum, or record expected
}
^
3 errors
Language: C

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


)

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

#include <iostream>
using namespace std;
 
int main() {
  int A[120]
    cin >> N;
    bool x = true;
    for(int i = 0;i<N;N++) cin >> A[i];
    for(int i = 0;i<N;N++){
      if(A[i] % 2==0){
        if(A[i] % 3 == 0||A[i] % 5 == 0 ){
        }else{
          x = false;
        }
      }
      if(x == true){
    cout << "APPROVED" << endl;
}else{
    cout << "DENIED" << endl;
  }
}
   

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> N;
      |     ^~~
a.cc:8:21: error: 'N' was not declared in this scope
    8 |     for(int i = 0;i<N;N++) cin >> A[i];
      |                     ^
a.cc:8:35: error: 'A' was not declared in this scope
    8 |     for(int i = 0;i<N;N++) cin >> A[i];
      |                                   ^
a.cc:9:21: error: 'N' was not declared in this scope
    9 |     for(int i = 0;i<N;N++){
      |                     ^
a.cc:10:10: error: 'A' was not declared in this scope
   10 |       if(A[i] % 2==0){
      |          ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		int flag = 0;
		Scanner sc = new Scanner(System.in);
		int i = sc.nextInt();
		for(j = 0 ;j<i ;j++){
			int a = sc.nextInt();
			if(a%2 == 0){
				if(a%3 == 0 || a%5 == 0){
				}else{
					flag = 1;
				}
			}
		}
		if(flag == 0){
				System.out.println("APPROVED");
			}else{
				System.out.println("DENIED");
			}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		for(j = 0 ;j<i ;j++){
		    ^
  symbol:   variable j
  location: class Main
Main.java:7: error: cannot find symbol
		for(j = 0 ;j<i ;j++){
		           ^
  symbol:   variable j
  location: class Main
Main.java:7: error: cannot find symbol
		for(j = 0 ;j<i ;j++){
		                ^
  symbol:   variable j
  location: class Main
3 errors
Language: C++

#include<stdio.h>

int main(void) {

	int n, a,frag = 1;

	scanf_s("%d",&n);
	for (int i = 0; i < n; i++) {
		scanf_s("%d", &a);
		if (a % 2 == 0 && a % 3 != 0 && a % 5 != 0)frag = 0;
	}

	if (frag == 1)printf("APPROVED");

	else printf("DENIED");

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d",&n);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
int main(void){
int N;
bool OK = true;
int A[N];
for(int i = 0; i < N;i++)scanf("%d ",&A[i]);
for(int i = 0; i < N;i++){
  if(A[i]%2 == 0){
    if(A[i]%3 != 0 && A[i]%5 != 0)OK == false;
  }
}
  if(OK == true)printf("APPROVED");
  else(printf("DENIED");
}

Compiler output:
main.c: In function 'main':
main.c:16:24: error: expected ')' before ';' token
   16 |   else(printf("DENIED");
      |       ~                ^
      |                        )
main.c:16:25: error: expected ';' before '}' token
   16 |   else(printf("DENIED");
      |                         ^
      |                         ;
   17 | }
      | ~
Language: Java

import java.util.*;
public class Main2{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int a[] = new int[n];
		int count = 0;
		int precount = 0;

		for (int i = 0;i<n ;i++ ) {
			a[i] = sc.nextInt();
		}

		for (int i = 0;i<n ;i++ ) {
			if (a[i]%2==0) {
				precount++;
				if (a[i]%3==0||a[i]%5==0) {
					count++;
				}
			}
		}

		if (count==precount) {
			System.out.println("APPROVED");
		}else{
			System.out.println("DENIED");
		}

	}
}


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

#include <iostream>
#include <vector>

using namespace std;

auto main() -> int{
    int N;
    vector<int> A;
    cin >> N;
    for(int i = 0; i < N; i++){
        int tmp;
        cin >> tmp;
        A.push_back(tmp);
    }

    for(auto a: A){
        if(a % 2 == 0){
            if(a%3==0 || a%5==0){
            }
            else{
                cout << "DENIED" << endl;
                return 0;
            }
        }
    }
    cout << "APPROVED" << endl;
}

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

#include<iostream>
#include<array>

using namespace std;

int main(){
    int n;
    int flag = 0;
    array<int,100>a;
    cin>>n;
    for(int i = 0; i < n; i++){
        cin>>a.at(i);
        if(a.at(i)%2 == 0 && a.at(i)%3 != 0 && a.at(i)%5 != 0){
            flag = 1;
        }
    }
    if(flag == 0){
        cout<<"APPROVED"<<endl;
    }else{
        cout<<"DENIED"<<endl;
        }
}
~    

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

import java.util.Scanner;

public class main {
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int A = input.nextInt();
        int B = input.nextInt();
        int C = input.nextInt();
        if(A==B)
        {
            if(B==C)
                System.out.println("No");
            else
                System.out.println("Yes");
        }
        else
            System.out.println("Yes");
    }
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   28 |   if(cnt==cnt2)
      |      ^~~
      |      int
a.cc:28:11: error: 'cnt2' was not declared in this scope
   28 |   if(cnt==cnt2)
      |           ^~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <cctype>
#include <cmath>
#include <iomanip>
#include <climits>
#include <cfloat>
#include <algorithm>
#define ll long long
#define ull unsigned long long
#define uint unsigned
#define MOD 1000000007;
using namespace std;

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    size_t n {};
    cin >> n;
    // bool three {false};
    // bool five {false};

    while (n--) {
    	int num {};
    	cin >> num;

    	if (!(num%2)) {
    		if (!(num%3) || !(num%5)) three = true;
    		else {
    			cout<<"DENIED"<<endl;
    			return 0;
    		}
    	}
    }
    cout<<"APPROVED"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:43: error: 'three' was not declared in this scope
   30 |                 if (!(num%3) || !(num%5)) three = true;
      |                                           ^~~~~
Language: C++

// copied by Nurstan Duisengaliev
// skatal
#include <bits/stdc++.h>
 
#define ll long long
#define all(x) x.begin(), x.end()
#define in insert
#define mp make_pair
#define F first
#define S second
#define ppf pop_front
#define pb push_back
#define ppb pop_back
#define pf push_front
#define pii pair <int, int>
#define boost() ios_base::sync_with_stdio(0), cin.tie(0)
#define sz(x) (int)x.size()
 
using namespace std;
 
const int N = (int)2e5 + 123;
const int mod = (int)1e9 + 7;
const ll INF = (ll)1e18 + 7;

void solve () {
	int n;
	cin >> n;
	bool check = 1;
	for (int i = 1; i <= n; i ++) {
		int x;
		cin >> x;
		if (x % 2 == 0 && x % 3 != 0 && x % 5 != 0) check = 0;	
	}
	if (check == 1) {
		cout << "APPROVED";
	}
	else cout << "DENIED"
}
 
main () {
//	freopen (".in", "r", stdin);
//	freopen (".out", "w", stdout);
	boost ();
	int TT = 1;
//    cin >> TT;
	while (TT --) {
		solve ();
	}
	return 0;	
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:37:30: error: expected ';' before '}' token
   37 |         else cout << "DENIED"
      |                              ^
      |                              ;
   38 | }
      | ~                             
a.cc: At global scope:
a.cc:40:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   40 | main () {
      | ^~~~
Language: C

#include<stdio.h>

int main() {
  int n, t = 0;
  int a[1000];
  scanf("%d",&n);
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    if (a[i] % 2 == 0) {//a[i]が偶数
      if (a[i] % 3 != 0 || a[i] % 5 != 0) {
        t++;
        break;
      }
    }
  }
  if (t == 0)
    printf("APPROVED\n");
  else
    printf("DENIED\n");
  return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int n;
int main(){
	int n;
	int a[n+1];
	bool flag=true;
	for(int i=1;i<=n;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]%3!=0||a[i]%5!=0)
		{
		flag=false;
		break;	
		}	
	}
	if(flag==true)
	{
		printf("APPROVED")l
	}
	else
	printf("DENIED");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:35: error: expected ';' before 'l'
   19 |                 printf("APPROVED")l
      |                                   ^
      |                                   ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: 'a' was not declared in this scope
    9 |                 scanf("%d",&a[i]);
      |                             ^
Language: Java

import java.util.Scanner;

public class Main { //クラス名はMain
    public static void main(String[] args) {
        //コード
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        boolean j = true;

        for(i=0; i<n ; i++){
            int a = Integer.parseInt(sc.next());
            if(a%2 == 0){
                if(a%3 != 0 && a%5 != 0){
                    j = false;
                }
            }
        }
        if(j){
            System.out.println("APPROVED");
        }else{
            System.out.println("DENIED");
        }
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        for(i=0; i<n ; i++){
            ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
        for(i=0; i<n ; i++){
                 ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
        for(i=0; i<n ; i++){
                       ^
  symbol:   variable i
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<int>num(n);
  int c=0,ne=0;
  for(auto i=0;i<n;i++)
  {
    cin>>v[i];
    if(!(v[i]&1))
    {
      ne++;
      if(v[i]%3==0||v[i]%5==0&&c!=0)
      {
        c++;
      }
    }
  }
  if(ne!=c)
  {
    cout<<"DENIED";
  }
  else
    cout<<"APPROVED";
  return 0;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'v' was not declared in this scope
   11 |     cin>>v[i];
      |          ^
a.cc: At global scope:
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include <algorithm>
#include <iostream>
#include <vector>
#include <string>
#include <iomanip>
using namespace std;
 
int main()
{
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> input.at(i);
  }
  
  for (int i = 0; i < n; i++) {
    if(input[i] %2 == 0){
      if(!(input[i] % 3 == 0 || input[i] % 5 == 0)){
        cout << "DENIED" << endl;
        return 0;
      }
    }
  }
  
  cout << "APPROVED" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'input' was not declared in this scope; did you mean 'int'?
   13 |     cin >> input.at(i);
      |            ^~~~~
      |            int
a.cc:17:8: error: 'input' was not declared in this scope; did you mean 'int'?
   17 |     if(input[i] %2 == 0){
      |        ^~~~~
      |        int
Language: C++

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

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

#define first f
#define second s
#define ll long long
#define mp make_pair
#define pb push_back
#define pf push_front
#define lb lower_bound
#define ub upper_bound
#include <bits/stdc++.h>
#define pii pair<int,int>
#define mem(a,b) memset(a,b,sizeof(a))
using namespace std;
const int maxn=2e5+5;
const double PI=acos(-1);
const double e=2.718281828459;


int main()
{
    int n,num=0,T==0;
    scanf("%d",&n);
    for(int i=1,j;i<=n;i++){
        scanf("%d",&j);
        if(j%2==0){
            T++;
            if(j%3==0||j%5==0){
                num++;
            }
        }
    }
    if(num==T){
        printf("APPROVED\n");
    }
    else{
        printf("DENIED\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:18: error: expected initializer before '==' token
   20 |     int n,num=0,T==0;
      |                  ^~
a.cc:25:13: error: 'T' was not declared in this scope
   25 |             T++;
      |             ^
a.cc:31:13: error: 'T' was not declared in this scope
   31 |     if(num==T){
      |             ^
Language: Java

import java.util.*;

public 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();
    }
    boolean flg=false;
    for(int i=0;i<n;i++){
      if(a[i]%2==0){
        if(a[i]%3==0){
          flg=true;
        }else{
          if(a[i]%5==0){
            flg=true;
          }
        }
      }
    }
    if(flg){
      System.out.println("APPROVED");
    }else{
      System.out.println("DENIED");
  }
}


Compiler output:
Main.java:28: error: reached end of file while parsing
}
 ^
1 error
Language: C++

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

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

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

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

int main(){
int n;
  cin >> n;
  
  int a[n];
  bool ok=1;
  for(int i=0;i<n;i++){
    cin >> a[i];
    if(a[i]%3 && a[i]%5)ok=0;
  }
  if(ok)cout << "APPROVED";
  else cout << "DENIED";
}

Compiler output:
a.cc:1:24: error: missing terminating > character
    1 | #include <bits/stdc++.h
      |                        ^
Language: C++

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


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

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:10:9: error: 'cin' was not declared in this scope
   10 |         cin>>x;
      |         ^~~
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout<<"APPROVED"<<endl;
      |         ^~~~
a.cc:18:27: error: 'endl' was not declared in this scope
   18 |         cout<<"APPROVED"<<endl;
      |                           ^~~~
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout<<"DENIED"<<endl;
      |         ^~~~
a.cc:20:25: error: 'endl' was not declared in this scope
   20 |         cout<<"DENIED"<<endl;
      |                         ^~~~
Language: C++

#include <bits/stdc++.h>
#include <climits>
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
#define srep(i, begin, end) for (__typeof(end) i = begin; i != end; i++)
#define si(x) int x = scanInt();
#define sll(x) LL x = scanLong();
#define sci(x) int x; scanf("%d", &x);
#define scll(x) LL x; scanf("%lld", &x);
#define pi(x) printf("%d ", x)
#define pll(x) printf("%lld ", x)
#define nl printf("\n")
#define clr(a) memset(a, 0, sizeof(a))
#define PB push_back
#define MP make_pair
using namespace std;
typedef unsigned int UI; // 32 bit integer
typedef long int LI; // 32 bit integer
typedef unsigned long int ULI; // 32 bit unsigned integer
typedef long long int LL; // 64 bit integer
typedef unsigned long long int ULL; // 64 bit unsigned integer
typedef long double LD;
typedef vector<int> VI;
typedef vector<LL> VLL;
typedef deque<int> DI;
typedef deque<LL> DLL;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
const LL MOD = 1e9+7;

/* Fast I/O */
inline int scanInt() {
	int n = 0;
	char ch = getchar();
	int sign = 1;
	while(ch < '0' || ch > '9') {
		if(ch == '-')	sign = -1;
		ch = getchar();
	}
	while(ch >= '0' && ch <= '9') {
		n = (n<<1)+(n<<3)+(int)(ch-'0');
		ch = getchar();
	}
	return n*sign;
}

inline LL scanLong() {
	LL n = 0;
	char ch = getchar();
	LL sign = 1;
	while(ch < '0' || ch > '9') {
		if(ch == '-')	sign = -1;
		ch = getchar();
	}
	while(ch >= '0' && ch <= '9') {
		n = (n<<1)+(n<<3)+(LL)(ch-'0');
		ch = getchar();
	}
	return n*sign;
}

int main() {
	sll(n);
	rep(i, 0, n) {
		sll(num);
		if(num % 3 != 0 && num % 5 != 0) {
			puts("DENIED");
			return;
		}
	}
	puts("APPROVED");
}


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

#include<stdio.h>
#include<string.h>
#include<math.h>


int main(){
   int n;
   scanf("%d ", &n);
   int a,f=1,ff=0;
   for(int i=0;i<n;i++){
   	scanf("%d ", &a);
    if(a%2==0){
      ff++ ;
      if(a%3==0 || a%5==0){
       	f++; 
      }
   }
	if(f==ff){
     	printf("APPROVED"); 
    } else{
       printf("DENIED");
    }
   return 0;
 
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define eb emplace_back
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef vector<vi> vvi;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}
int const INF = 1001001001;
ll const MOD = 1000000007;


int main()
{
cin.tie(0);
ios::sync_with_stdio(false);

int n;
cin >> n;

vi A(n);
rep(i,n) cin >> A[i];

rep(i,n){
    if(A[i]%2 == 0){
        if(A[i]%3 != 0 && A[i]%5 != 0){
            cout << "DENIED" << endl;
            return 0;
    }
}

cout << "APPROVED" << endl;


return 0;
}

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

//#include<bits/stdc++.h>
#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<map>
#include<queue>
#include<stack>
using namespace std;
#define int long long
#define ll long long
#define ac() cout<<"Yes"<<endl;
#define wa() cout<<"No"<<endl;
#define dd cout<<"---debug---"<<endl;
#define ff(a,b)  for(int (a)=1;(a)<=(b);(a)++)
#define fff(a,b) for(int (a)=0;(a)<(b);(a)++)
#define re read()
#define pr(a) print(a)
int gcd(int a,int b){return b==0?a:gcd(b,a%b);}//
int ppow(int a,int b,int mod){a%=mod;//
int ans=1;while(b){if(b&1)ans=ans*a%mod;
a=a*a%mod;b>>=1;}return ans;}
int read(){int x=0,f=1;char c=getchar();//
while(!isdigit(c)&&c!='-')c=getchar();
if(c=='-')f=-1,c=getchar();
while(isdigit(c))x=x*10+c-'0',c=getchar();
return f*x;}
void print(int x){if(x>=10){print(x/10);}//
putchar(x%10+'0');}
//
const int maxm=1e5+5;
const int mod=1e9+7;
int a[maxm],b[maxm];


signed main(){
    int n=re;
    int ok=1;
    ff(1,i){
        int x=re;
        if(x%3==0||x%5==0)continue;
        ok=0;
    }
    if(ok){
        cout<<"APPROVED"<<endl;
    }else{
        cout<<"DENIED"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before 'long'
   11 | #define int long long
      |             ^~~~
a.cc:16:22: note: in expansion of macro 'int'
   16 | #define ff(a,b)  for(int (a)=1;(a)<=(b);(a)++)
      |                      ^~~
a.cc:40:5: note: in expansion of macro 'ff'
   40 |     ff(1,i){
      |     ^~
a.cc:40:10: error: 'i' was not declared in this scope
   40 |     ff(1,i){
      |          ^
a.cc:16:38: note: in definition of macro 'ff'
   16 | #define ff(a,b)  for(int (a)=1;(a)<=(b);(a)++)
      |                                      ^
a.cc:40:8: error: lvalue required as increment operand
   40 |     ff(1,i){
      |        ^
a.cc:16:42: note: in definition of macro 'ff'
   16 | #define ff(a,b)  for(int (a)=1;(a)<=(b);(a)++)
      |                                          ^
Language: C++

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

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

Compiler output:
a.cc: In function 'void ABC155B()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> N;
      |         ^~~
a.cc:11:25: error: 'cout' was not declared in this scope
   11 |                         cout << "DENIED" << endl;
      |                         ^~~~
a.cc:11:45: error: 'endl' was not declared in this scope
   11 |                         cout << "DENIED" << endl;
      |                                             ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "APPROVED" << endl;
      |         ^~~~
a.cc:15:31: error: 'endl' was not declared in this scope
   15 |         cout << "APPROVED" << endl;
      |                               ^~~~
Language: C++

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


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

#include<bits/stdc++.h>
#define ll long long
#define modu int(1e9+7)
#define mp make_pair
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int n;
    cin>>n;
    vector<int> v(n);
    for(int i=0;i<n;i++)
    {
        int x;
        cin>>x;
        if(x%2==0&&x%3!=0&&x%5!=0){ cout<<"DENIED";return 0;}
    }
    cout<<"APPROVED";
    return 0;
}
#include<bits/stdc++.h>
#define ll long long
#define modu int(1e9+7)
#define mp make_pair
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int n;
    cin>>n;
    vector<int> v(n);
    for(int i=0;i<n;i++)
    {
        int x;
        cin>>x;
        if(x%2==0&&x%3!=0&&x%5!=0){ cout<<"DENIED";return 0;}
    }
    cout<<"APPROVED";
    return 0;
}


Compiler output:
a.cc:30:5: error: redefinition of 'int main()'
   30 | int main()
      |     ^~~~
a.cc:7:5: note: 'int main()' previously defined here
    7 | int main()
      |     ^~~~
Language: C++


#include<iostream>
#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<vector>
#include<cstdlib>
#include<map>
#include<queue>
#include<stack>
#include<deque>
#include<fstream>
#include<string>
#include<sstream>
#include<iomanip>
#include<numeric>
#include<cctype>
#include<random>

using namespace std;

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

int keta(int a){
    int count=0;
    while(a!=0){
        a/=10;
        count++;
    }
    return count;
}

long long int kaijo(long long int n){
    if(n==0) return 1;
    else return n*kaijo(n-1);
}

long long int product(long long int n, long long int k){
    long long int tmp=1;
    for(int i=k;i<=n;i++){
        if(k==0) continue;
        tmp*=i;
    }
    return tmp;
}


int main(){
    long long int n;
    bool auth true;
    cin>>n;
    vector<int> a(n);
    for(int i=0;i<n;i++){
        cin>>a[i];
        if(a[i]%2==0){
            if(a[i]%3!=0&&a[i]%5!=0){
                auth = false;
            }
        }
    }
    if(auth){
        cout<<"APPROVED"<<endl;
    }
    else{
        cout<<"DENIED"<<endl;
    }


    return 0;
} //カモンAC


Compiler output:
a.cc: In function 'int main()':
a.cc:50:15: error: expected initializer before 'true'
   50 |     bool auth true;
      |               ^~~~
a.cc:57:17: error: 'auth' was not declared in this scope; did you mean 'auto'?
   57 |                 auth = false;
      |                 ^~~~
      |                 auto
a.cc:61:8: error: 'auth' was not declared in this scope; did you mean 'auto'?
   61 |     if(auth){
      |        ^~~~
      |        auto
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define fi first
#define se second
#define all(x) (x).begin(), (x).end()
#define endl '\n'
 
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<double, int> pdi;
 
const int MAXN = 2e5 + 5;

int N, A[105]]
 
int main() {
	ios::sync_with_stdio(0); cin.tie(0);
	cin >> N;
	int ans = 1;
	for(int i=1; i<=N; i++) {
		cin >> A[i];
		if(A[i] % 2 == 0) {
			if(A[i] % 5 && A[i] % 3) ans = 0;
		}
	}
	if(ans) cout << "APPROVED";
	else cout << "DENIED";
}


Compiler output:
a.cc:16:14: error: expected initializer before ']' token
   16 | int N, A[105]]
      |              ^
Language: C++

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

Compiler output:
a.cc:10:11: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
   10 |     print('APPROVED')
      |           ^~~~~~~~~~
a.cc:12:11: warning: multi-character literal with 6 characters exceeds 'int' size of 4 bytes
   12 |     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;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) {
        cin >> a[i];
        if (a[i] % 2 == 0)) {
            if (a[i] % 3 != 0 && a[i] % 5 != 0) {
                cout << "DENIED";
                return 0;
            }
        }
    }
    cout << "APPROVED";
    return 0;
} 

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

cmake_minimum_required(VERSION 3.15)
project(b155)

set(CMAKE_CXX_STANDARD 14)

add_executable(b155 b.cpp)

Compiler output:
a.cc:1:23: error: expected constructor, destructor, or type conversion before '(' token
    1 | cmake_minimum_required(VERSION 3.15)
      |                       ^
Language: C++

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

#define INF_LL (int64)1e18
#define INF (int32)1e9
#define REP(i, n) for(int64 i = 0;i < (n);i++)
#define FOR(i, a, b) for(int64 i = (a);i < (b);i++)
#define all(x) x.begin(),x.end()
#define fs first
#define sc second

using int32 = int_fast32_t;
using uint32 = uint_fast32_t;
using int64 = int_fast64_t;
using uint64 = uint_fast64_t;
using PII = pair<int32, int32>;
using PLL = pair<int64, int64>;

const double eps = 1e-10;

template<typename A, typename B>inline void chmin(A &a, B b){if(a > b) a = b;}
template<typename A, typename B>inline void chmax(A &a, B b){if(a < b) a = b;}

template<typename T>
vector<T> make_v(size_t a){return vector<T>(a);}

template<typename T,typename... Ts>
auto make_v(size_t a,Ts... ts){
	return vector<decltype(make_v<T>(ts...))>(a,make_v<T>(ts...));
}

template<typename T,typename U,typename... V>
typename enable_if<is_same<T, U>::value!=0>::type
fill_v(U &u,const V... v){u=U(v...);}

template<typename T,typename U,typename... V>
typename enable_if<is_same<T, U>::value==0>::type
fill_v(U &u,const V... v){
	for(auto &e:u) fill_v<T>(e,v...);
}

int main(void){
	cin.tie(0);
	ios::sync_with_stdio(false);
	cin >> N;
	vector<int64> A(N);
	REP(i, N) cin >> A[i];
	bool ok = 1;
	REP(i, N) {
	  if (A[i] % 2 == 0) {
	    if (A[i] % 3 != 0 && A[i] % 5 != 0) {
	      ok = 0;
	    }
	  }
	}
	if (ok) cout << "APPROVED" << endl;
	else cout << "DENIED" << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
#define FOR(i,n) for(int i=0;i<(n);i++)
#define MOD 1000000007
#define all(n) (n).begin(),(n).end()
typedef long long ll;
template <class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}else{return 0;}}
template <class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}else{return 0;}}
template <class T> inline T GCD(T a,T b){T c;while(b!=0){c=a%b;a=b;b=c;}return a;}
template <class T> inline T LCM(T a,T b){return a*b/GCD(a,b);}

int main(){
	int n;
	cin >> n;
	int a[1000];
	bool ans=1;
	FOR(i,n){
		cin >> a[i];
		if(a[i]%2==0){
			if(a[i]%3==0 ||| a[i]%5==0){

			}else{
				ans=0;
			}
		}
	}

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


}

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

#include<bits/stdc++.h>
using namespace std;
#ifdef LOCAL_DEBUG
  #include "LOCAL_DEBUG.hpp"
#endif
#define int long long

signed main(){

  int n; cin >> n;
  vector<int> a(n);
  bool judge = true;
  for(int i = 0; i < n; i++){
    cin >> a[i];
    if(a[i] % 2 == 0){
      if(!(a[i] % 3 == 0 || a[i] % 5 == 0)) judge = false:
    }
  }
  cout << (judge ? "APPROVED" : "DENIED") << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:58: error: expected ';' before ':' token
   16 |       if(!(a[i] % 3 == 0 || a[i] % 5 == 0)) judge = false:
      |                                                          ^
      |                                                          ;
Language: C++

/* Bismillahirrahmanirrahim */
/* Author : Jehian Norman Saviero (@Reiva5) */
#include <bits/stdc++.h>

// MACROS SAMPAH
#define Jehian using
#define Norman namespace
#define Saviero std

Jehian Norman Saviero;

// MACROS TYPE
typedef long l;
typedef long long ll;
typedef unsigned long ul;
typedef unsigned long long ull;
typedef double ld;
typedef pair<int,int> pi;
typedef pair<l,l> pl;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<l> vl;
typedef vector<ll> vll;

// MACROS FOR PRINT
#define nl printf("\n")
#define sp printf(" ")

// MACROS FOR ATTRIBUTE
#define fi first
#define se second

// MACROS FOR FUNCTION AND METHOD
#define eb emplace_back
#define mp make_pair
#define pb push_back
#define pf push_front
#define ppb pop_back
#define ppf pop_front
#define ALL(x) (x).begin(), (x).end()
#define ALLN(x,n) (x), (x)+(n)
#define CUBE(x) (SQR(x)*(x))
#define SET(x,y) for (int _qwe = sizeof(x)/sizeof(x[0]); _qwe; ) x[--_qwe] = (y)
#define SQR(x) ((x)*(x))
#define SSORT(x,sz) sort(ALLN(x,sz))
#define RESET(x) memset((x), 0, sizeof(x))
#define VSORT(x) sort(ALL(x))

// MACROS READ INPUT
#define sci(x) scanf("%d", &x)
#define scl(x) scanf("%ld", &x)
#define scll(x) scanf("%lld", &x)
#define scul(x) scl(x)
#define scull(x) scll(x)

int main() {
	int N;
	sci(N);
	vi dat(N);
	for (int i = 0; i < N; ++i) {
		sci(dat[i]);
	}
	bool valid = 1;
	for (int i = 0; i < N && valid; ++i) {
		if (dat[i] & 1) continue
		valid = dat[i] % 3 == 0 || dat[i] % 5 == 0;
	}
	puts(valid ? "APPROVED" : "DENIED");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:65:41: error: expected ';' before 'valid'
   65 |                 if (dat[i] & 1) continue
      |                                         ^
      |                                         ;
   66 |                 valid = dat[i] % 3 == 0 || dat[i] % 5 == 0;
      |                 ~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<string>a(n);
  for(int i=0;i<n;++i){
    cin >> a[i];
  }
  int num=-1;
  int siz=0;
  for(int i=0;i<n;++i){
    string s=a[i];
    if(s.size()>siz){
      num=i;
      siz=s.size;
    }
  }
  vector<char>b(siz);
  for(int i=0;i<siz;++i){
    b[i]=a[num].at(i);
  }
  sort(b.begin(), b.end());
  for(int i=0;i<siz;++i){
    if(i==siz-1) cout << b[i] << endl;
    else cout << b[i];
  }
  return 0;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: cannot convert 'std::__cxx11::basic_string<char>::size' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
   16 |       siz=s.size;
      |             ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin >> n;
  vector<string>a(n);
  for(int i=0;i<n;++i){
    cin >> a[i];
  }
  int num=-1;
  int siz=0;
  for(int i=0;i<n;++i){
    if(a[i].size()>siz){
      num=i;
      siz=a[i].size;
    }
  }
  vector<char>b(siz);
  for(int i=0;i<siz;++i){
    b[i]=a[num].at(i);
  }
  sort(b.begin(), b.end());
  for(int i=0;i<siz;++i){
    if(i==siz-1) cout << b[i] << endl;
    else cout << b[i];
  }
  return 0;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: cannot convert 'std::__cxx11::basic_string<char>::size' from type 'std::__cxx11::basic_string<char>::size_type (std::__cxx11::basic_string<char>::)() const noexcept' {aka 'long unsigned int (std::__cxx11::basic_string<char>::)() const noexcept'} to type 'int'
   15 |       siz=a[i].size;
      |                ^~~~
Language: C++

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

int main(){
  int n,count=0,judge=0,p=0;
   cin >> n;
  vector<int> con(n);
  vector<string> s(n);
  vector<string> t(n);
  rep(i,n) cin >> s.at(i);
  
  rep(i,n-1){
    count=0;
    for(int j=i+1; j<n; j++){
      if(s.at(i)==s.at(j)) count++;
    }
    con.at(i)=count;
    if(count>max) judge=count;
  }
  
  rep(i,n){
    if(con.at(i)==judge){
      t.at(p)=s.at(i);
      p++;
    }
  }
  
  sort(t.begin(),t.end());
  
  rep(i,t.size()) cout << t.at(i);
  
}
      
 


Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>'
   20 |     if(count>max) judge=count;
      |        ~~~~~^~~~
Language: C++

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

int main(){
  int n,count=0,judge=0,p=0;
   cin >> n;
  vector<int> con(n);
  vector<string> s(n);
  vector<string> t(n);
  rep(i,n) cin >> s.at(i);
  
  rep(i,n-1){
    count=0;
    for(int j=i+1; j<n; j++){
      if(s.at(i)==s.at(j)) count++;
    }
    con.at(i)=count;
    if(count>max) judge=count;
  }
  
  rep(i,n){
    if(con.at(i)=judge){
      t.at(p)=s.at(i);
      p++;
    }
  }
  
  sort(t.begin(),t.end());
  
  rep(i,t.size()) cout << t.at(i);
  
}
      
 

Compiler output:
a.cc: In function 'int main()':
a.cc:20:13: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>'
   20 |     if(count>max) judge=count;
      |        ~~~~~^~~~
Language: C++

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

int main(){
  int N;
  cin >> N;
  map<string,int> A;
  for(int i=0;i<N;i++){
    string S;
    cin >> S;
    A[S]++;
  }
  int maxcount=0;
  for(auto it=A.begin();it!=A.end();it++){
    maxcount=max(maxcount,(*it).second);
  }
  for(auto it=A.begin();it!=A.end();it++){
    if(maxcount==(*it).second){
      cout << (*it).first << endl;
    }
  }
}

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

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

using pistr=pair<int,string>;

int main(){
  int N;cin>>N;
  vector<string> S(N);
  for(int i=0;i<N;i++) cin>>S.at(i);
  sort(S.begin(),S.end());
  string X=S.at(0);
  vector<pistr> ans;
  pistr Y;
  int count=1;
  for(int i=1;i<N;i++){
    if(S.at(i)==X) count++;
    else{
      Y=make_pair(count,X);
      ans.push_back(Y);
      X=S.at(i);
      count=1;
    }
  }
  Y=make_pair(count,X);
  ans.push_back(Y);
  
  sort(ans.begin(),ans.end());
  reverse(ans.begin(),ans.end());
  int take=ans.at(0).first;
  int size=ans.size();
  
  for(int j=0;j<size;j++){
    if(ans.at(j).first==take) cout<<ans.at(j).second<<endl;
    if(ans.at(j).first<take) break;
  }

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

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
int main(){
  ll N;
  cin>>N;
  vector<string>vec(N);
  for(ll i=0;i<N;i++){
    cin>>vec.at(i);
  }
  sort(vec.begin(),vec.end());
  ll a=0;
  vector<ll>veco(1);
  vector<string>ve(1);
  ve.at(0)=vec.at(i);
  for(ll i=1;i<N;i++){
    if(vec.at(i-1)==vec.at(i)){
      veco.at(veco.size()-1)+=1;
      a=max(veco.at(veco.size()-1),a);
    }
    else{
      veco.push_back(0);
      ve.push_back(vec.at(i));
    }
  }
  vector<string>result(0);
  for(ll i=0;i<N;i++){
    if(veco.at(i)==a){
      result.push_back(ve.at(i));
    }
  }
  sort(result.begin(),result.end());
  for(ll i=0;i<result.size();i++){
    cout<<result.at(i)<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: 'i' was not declared in this scope
   15 |   ve.at(0)=vec.at(i);
      |                   ^