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

import java.util.*;

public class Main{
  public static void main(String[] args){
    List<double> list = new ArrayList<double>;
    List<int> counter = new ArrayList<int>;
    double num = 0;
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      	num = Double.parseDouble(sc.nextLine());
        list.add(num);
    }
    for (int i = 0; i < list.size - 1; i++) {
        for (int j = i + 1; j < list.size; j++) {
           double x = list.get(i) * list.get(j);
           if(x == (int)x) {
             counter.add(x);
           } else {
             
           }
        }
    }
    print(counter.size());
  }
}

Compiler output:
Main.java:5: error: '(' or '[' expected
    List<double> list = new ArrayList<double>;
                                             ^
Main.java:6: error: '(' or '[' expected
    List<int> counter = new ArrayList<int>;
                                          ^
2 errors
Language: Java

import java.io.*;

public class Main{
  public static void main(String[] args){
    List<double> list = new ArrayList<double>;
    List<int> counter = new ArrayList<int>;
    double num = 0;
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      	num = Double.parseDouble(sc);
        list.add(num.nextLine());
    }
    for (int i = 0; i < list.size - 1; i++) {
        for (int j = i + 1; j < list.size; j++) {
           double x = list.get(i) * list.get(j);
           if(x == (int)x) {
             counter.add(x);
           } else {
             
           }
        }
    }
    print(counter.size());
  }
}

Compiler output:
Main.java:5: error: '(' or '[' expected
    List<double> list = new ArrayList<double>;
                                             ^
Main.java:6: error: '(' or '[' expected
    List<int> counter = new ArrayList<int>;
                                          ^
2 errors
Language: C

#include<stdio.h>

int main(void) {
  int N;
  scanf("%d", &N);
  double A[N-1];
  for(int i = 0; i < N; i++) {
    scanf("%lf", &A[i]);
  }
  int count = 0;
  for(int i = 0; i < N - 1; i ++) {
    for(int j = i + 1; j < N; j++) {
      if((A[i] * A[j]) % 1 == 0) {
        count++;
      }
    }
  }
  printf("%d", count);
}

Compiler output:
main.c: In function 'main':
main.c:13:24: error: invalid operands to binary % (have 'double' and 'int')
   13 |       if((A[i] * A[j]) % 1 == 0) {
      |          ~~~~~~~~~~~~~ ^
      |                |
      |                double
Language: Java

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Scanner;
public class A {
	static int n;
	static rep d[];
	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		n = sc.nextInt();
		double a[] =new double[n];
		d = new rep[n];
		for(int i=0;i<n;i++) {
			a[i] = sc.nextDouble();
			d[i] = convert(a[i]);
		}
		int numInt = 0;
		int maxX = -20;
		int minX = 1000;
		int maxY = -20;
		int minY = 1000;
		for(int i=0;i<n;i++) {
			if(d[i].x>=0 && d[i].y>=0) {
				numInt++;
				
			}
			maxX = Math.max(maxX, d[i].x);
			minX = Math.min(minX, d[i].x);
			maxY = Math.max(maxY, d[i].y);
			minY = Math.min(minY, d[i].y);
		}
		long lookUp[][] = new long[maxX-minX+1][maxY-minY+1];
		for(int i=minX;i<=maxX;i++) {
			for(int j=minY;j<=maxY;j++) {
				long temp = solve(i,j);
				lookUp[i-minX][j-minY] = temp;
			}
			
		}
		long res = 0;
		for(int i=0;i<n;i++) {
			res+=lookUp[d[i].x-minX][d[i].y-minY];
		}
		res-=numInt;
		res/=2;
		System.out.println(res);

	}
	static long solve(int a,int b) {
		long cnt = 0;
		for(int i=0;i<n;i++) {
			if(d[i].x>=-a && d[i].y>=-b) {
				cnt++;
			}
		}
		return cnt;
	}
	static rep convert(double k) {
		BigDecimal d = BigDecimal.valueOf(k);
		BigDecimal mult = BigDecimal.valueOf(1000000000);
		d = d.multiply(mult);
		BigInteger x = d.toBigInteger();
		int a =0;
		BigInteger two = BigInteger.valueOf(2);
		BigInteger five = BigInteger.valueOf(5);
		while(x.remainder(two).compareTo(BigInteger.ZERO)==0){
			a++;
			x = x.divide(two);
		}
		int b =0;
		while(x.remainder(five).compareTo(BigInteger.ZERO)==0) {
			b++;
			x = x.divide(five);
		}
		rep ret = new rep();
		a-=9;
		b-=9;
		ret.c = x;
		ret.x = a;
		ret.y = b;
		
		return ret;
	}
	public static class rep{
		
		BigInteger c;
		int x,y;
		
	}
}


Compiler output:
Main.java:4: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: Java

import java.util.*;

public class Main{
  public static void main(String[] args){
    List<double> list = new ArrayList<double>;
    List<int> counter = new ArrayList<int>;
    double num = 0;
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      	num = Double.parseDouble(sc);
        list.add(num.nextLine());
    }
    for (int i = 0; i < list.size - 1; i++) {
        for (int j = i + 1; j < list.size; j++) {
           double x = list.get(i) * list.get(j);
           if(x == (int)x) {
             counter.add(x);
           } else {
             
           }
        }
    }
    print(counter.size());
  }
}

Compiler output:
Main.java:5: error: '(' or '[' expected
    List<double> list = new ArrayList<double>;
                                             ^
Main.java:6: error: '(' or '[' expected
    List<int> counter = new ArrayList<int>;
                                          ^
2 errors
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
			int n = sc.nextInt();
			int j = 0;
			double[] s = new double[n];
			int count = 0;
			for(int i = 0;i < n;i++) {
				s[i] = sc.nextDouble();
			}
			for(int i = 0;i < n; i++){
					for(j = i + 1;j < n;j++) {
						double f = s[i] * s[j];
						int k = (int)f;
						if(f == k && i != j) {
							count++;
						}
					}
			}
			System.out.println(count);
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

// #include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <iomanip>
#include <iostream>

namespace mp = boost::multiprecision;

// scanf("%d", &x); => std::cin >> x;
// printf("%d\n", x); => std::cout << x << "\n";

int main() {
    int n;
    int ans = 0;
    scanf("%d", &n);
    mp::cpp_dec_float_100 ary[n];
    mp::cpp_dec_float_100 proary[n];
    for (int i = 0; i < n; i++) {
        // scanf("%Lf", &ary[i]);
        std::cin >> ary[i];
    }
    // std::cout << "\n";
    // std::cout << std::fixed;
    // std::cout << std::setprecision(9);

    std::cout << "\n";
    for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
            proary[i] = ary[i] * ary[j] * pow(10, 18);
            if (proary[i] % 1 == 0) {
                ans++;
                // std::cout << "i:" << i + 1 << " " << ary[i] << "  \tj:" << j + 1 << " " << aryy[j] << "  \tAi*Aj:  " << proary[i] << "\n";
            }
        }
    }

    printf("%d\n", ans);
    return 0;
}

Compiler output:
a.cc:7:10: fatal error: boost/multiprecision/cpp_dec_float.hpp: No such file or directory
    7 | #include <boost/multiprecision/cpp_dec_float.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

// #include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <iomanip>
#include <iostream>

namespace mp = boost::multiprecision;

// scanf("%d", &x); => std::cin >> x;
// printf("%d\n", x); => std::cout << x << "\n";

int main() {
    int n;
    int ans = 0;
    scanf("%d", &n);
    mp::cpp_dec_float_100 ary[n];
    mp::cpp_dec_float_100 proary[n];
    for (int i = 0; i < n; i++) {
        // scanf("%Lf", &ary[i]);
        std::cin >> ary[i];
    }
    // std::cout << "\n";
    // std::cout << std::fixed;
    // std::cout << std::setprecision(9);

    std::cout << "\n";
    for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
            proary[i] = aryy[i] * aryy[j] * pow(10, 18);
            if (proary[i] % 1 == 0) {
                ans++;
                // std::cout << "i:" << i + 1 << " " << ary[i] << "  \tj:" << j + 1 << " " << aryy[j] << "  \tAi*Aj:  " << proary[i] << "\n";
            }
        }
    }

    printf("%d\n", ans);
    return 0;
}

Compiler output:
a.cc:7:10: fatal error: boost/multiprecision/cpp_dec_float.hpp: No such file or directory
    7 | #include <boost/multiprecision/cpp_dec_float.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

// #include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/cpp_dec_float.hpp>
#include <iomanip>
#include <iostream>

namespace mp = boost::multiprecision;

// scanf("%d", &x); => std::cin >> x;
// printf("%d\n", x); => std::cout << x << "\n";

int main() {
    int n;
    int ans = 0;
    scanf("%d", &n);
    mp::cpp_dec_float_100 ary[n];
    mp::cpp_dec_float_100 proary[n];
    for (int i = 0; i < n; i++) {
        scanf("%Lf", &ary[i]);
    }
    // std::cout << "\n";
    // std::cout << std::fixed;
    // std::cout << std::setprecision(9);

    std::cout << "\n";
    for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
            proary[i] = aryy[i] * aryy[j] * pow(10, 18);
            if (proary[i] % 1 == 0) {
                ans++;
                // std::cout << "i:" << i + 1 << " " << ary[i] << "  \tj:" << j + 1 << " " << aryy[j] << "  \tAi*Aj:  " << proary[i] << "\n";
            }
        }
    }

    printf("%d\n", ans);
    return 0;
}

Compiler output:
a.cc:7:10: fatal error: boost/multiprecision/cpp_dec_float.hpp: No such file or directory
    7 | #include <boost/multiprecision/cpp_dec_float.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

#include <boost/multiprecision/cpp_int.hpp>
#include <iomanip>
#include <iostream>

namespace mp = boost::multiprecision;

// scanf("%d", &x); => std::cin >> x;
// printf("%d\n", x); => std::cout << x << "\n";

int main() {
    int n;
    int ans = 0;
    scanf("%d", &n);
    mp::cpp_dec_float_100 ary[n];
    mp::cpp_dec_float_100 proary[n];
    for (int i = 0; i < n; i++) {
        scanf("%Lf", &ary[i]);
    }
    // std::cout << "\n";
    // std::cout << std::fixed;
    // std::cout << std::setprecision(9);

    std::cout << "\n";
    for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
            proary[i] = aryy[i] * aryy[j] * pow(10, 18);
            if (proary[i] % 1 == 0) {
                ans++;
                // std::cout << "i:" << i + 1 << " " << ary[i] << "  \tj:" << j + 1 << " " << aryy[j] << "  \tAi*Aj:  " << proary[i] << "\n";
            }
        }
    }

    printf("%d\n", ans);
    return 0;
}

Compiler output:
a.cc:6:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    6 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

#include <boost/multiprecision/cpp_int.hpp>
#include <iomanip>
#include <iostream>

namespace mp = boost::multiprecision;

// scanf("%d", &x); => std::cin >> x;
// printf("%d\n", x); => std::cout << x << "\n";

int main() {
    int n;
    int ans = 0;
    scanf("%d", &n);
    cpp_dec_float_100 ary[n];
    cpp_dec_float_100 proary[n];
    for (int i = 0; i < n; i++) {
        scanf("%Lf", &ary[i]);
    }
    // std::cout << "\n";
    // std::cout << std::fixed;
    // std::cout << std::setprecision(9);

    std::cout << "\n";
    for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
            proary[i] = aryy[i] * aryy[j] * pow(10, 18);
            if (proary[i] % 1 == 0) {
                ans++;
                // std::cout << "i:" << i + 1 << " " << ary[i] << "  \tj:" << j + 1 << " " << aryy[j] << "  \tAi*Aj:  " << proary[i] << "\n";
            }
        }
    }

    printf("%d\n", ans);
    return 0;
}

Compiler output:
a.cc:6:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    6 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++


#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define pii pair<int, int>
#define all(x) x.begin(), x.end()
const int N = 2e3 + 10;

void solve() {
	int n;
	cin >> n;
	vector<double> a(n);
	unorderd_map<double, int> cnt;
	for (int i = 0; i < n; i++) {
		cin >> a[i];
		double f = a[i] - (int)a[i];
		int x = a[i];
		x %= 10;
		double y = x + f;
		cnt[y]++;
	}
	ll ans = 0;
	for (int i = 0; i < n; i++) {
		double f = a[i] - (int)a[i];
		int x = a[i];
		x %= 10;
		double y = x + f;
		for (int j = 0; j <= 81; j++) {
			if (y == double(j)) {
				ans--;
			}
			ans += cnt[double(j)/y];
		}
	}
	cout << ans/2 << '\n';
}

int main() {
	int tt = 1;
	// cin >> tt;
	for (int tc = 1; tc <= tt; tc++) {
		solve();
	}
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:14:9: error: 'unorderd_map' was not declared in this scope
   14 |         unorderd_map<double, int> cnt;
      |         ^~~~~~~~~~~~
a.cc:14:22: error: expected primary-expression before 'double'
   14 |         unorderd_map<double, int> cnt;
      |                      ^~~~~~
a.cc:21:17: error: 'cnt' was not declared in this scope; did you mean 'int'?
   21 |                 cnt[y]++;
      |                 ^~~
      |                 int
a.cc:33:32: error: 'cnt' was not declared in this scope; did you mean 'int'?
   33 |                         ans += cnt[double(j)/y];
      |                                ^~~
      |                                int
Language: C++

#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

#include <boost/multiprecision/cpp_int.hpp>
#include <iomanip>
#include <iostream>

namespace mp = boost::multiprecision;

// scanf("%d", &x); => std::cin >> x;
// printf("%d\n", x); => std::cout << x << "\n";

int main() {
    int n;
    int ans = 0;
    scanf("%d", &n);
    long double ary[n];
    mp::cpp_int aryy[n];
    mp::cpp_int proary[n];
    for (int i = 0; i < n; i++) {
        scanf("%Lf", &ary[i]);
    }
    // std::cout << "\n";
    // std::cout << std::fixed;
    // std::cout << std::setprecision(9);
    for (int i = 0; i < n; i++) {
        aryy[i] = ary[i] * pow(10, 9);
        // std::cout << "i:" << i << "\tAi:" << aryy[i] << "\n";
    }

    std::cout << "\n";
    for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
            proary[i] = aryy[i] * aryy[j];
            proary[i] /= pow(10, 18);
            if (proary[i] % 1 == 0) {
                ans++;
                // std::cout << "i:" << i + 1 << " " << ary[i] << "  \tj:" << j + 1 << " " << aryy[j] << "  \tAi*Aj:  " << proary[i] << "\n";
            }
        }
    }

    printf("%d\n", ans);
    return 0;
}

Compiler output:
a.cc:6:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    6 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*; 

public class Main {
  public static void main(String[] args) {
  	List<double> list = new ArrayList<double>();
    List<int> counter = new ArrayList<int>();
    double integerNumber = 0;
    int k = 0;

  	try(Scanner sc = new Scanner(System.in)) {
    	while(integerNumber.hasNext()) {
          	intgerNumber = Double.parseDouble(sc);
        	list.add(integerNumber.next());	
        }
        int count = list.length;
        for (int i = 0; i < count - 1; i++) {
            for (int j = i + 1; j < count; j++) {
                double num = list.get(i) * list.get(j)
                if (num = (int)num) {
                	counter.get(k) = num;
                  	k++
                } else {
                    
                }
              	print(counter.size());   
            }
        }
    }
  }
}      

Compiler output:
Main.java:18: error: ';' expected
                double num = list.get(i) * list.get(j)
                                                      ^
Main.java:21: error: ';' expected
                  	k++
                  	   ^
2 errors
Language: Java

import java.util.*;

public class MainClass {

  public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double[] numbers = new double[N];

        for (int i = 0; i < N; i++) {
            double x = sc.nextDouble();
            numbers[i] = x;
        }

        int count = 0;
        for (int i = 0; i < N; i++) {

            for (int j = i + 1; j < N; j++) {

                double a = numbers[i];
                double b = numbers[j];
                double x = a * b;
                if (!(a != 0 && x / a != b)) {
                    if (x == Math.round(x)) {
                        count++;
                    }
                }

            }
        }

    }
  
}



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

#include <math.h>
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>

#include <boost/multiprecision/cpp_int.hpp>
#include <iomanip>
#include <iostream>

// scanf("%d", &x); => std::cin >> x;
// printf("%d\n", x); => std::cout << x << "\n";

int main() {
    int n;
    int ans = 0;
    scanf("%d", &n);
    long double ary[n];
    cpp_int aryy[n];
    cpp_int proary[n];
    for (int i = 0; i < n; i++) {
        scanf("%Lf", &ary[i]);
    }
    // std::cout << "\n";
    // std::cout << std::fixed;
    // std::cout << std::setprecision(9);
    for (int i = 0; i < n; i++) {
        aryy[i] = ary[i] * pow(10, 9);
        // std::cout << "i:" << i << "\tAi:" << aryy[i] << "\n";
    }

    std::cout << "\n";
    for (int i = 0; i < n; i++) {
        for (int j = i + 1; j < n; j++) {
            proary[i] = aryy[i] * aryy[j];
            proary[i] /= pow(10, 18);
            if (proary[i] % 1 == 0) {
                ans++;
                // std::cout << "i:" << i + 1 << " " << ary[i] << "  \tj:" << j + 1 << " " << aryy[j] << "  \tAi*Aj:  " << proary[i] << "\n";
            }
        }
    }

    printf("%d\n", ans);
    return 0;
}

Compiler output:
a.cc:6:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    6 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;
int main(){
int n,a,b;
double c;
double m[n];
cin>>n;
for(int q=0;q<n;q++){
cin>>m[q];
}
for(int w=0;w<n;w++){
for(int v=w+1;v<n;v++){
b=m[w]*m[v];
c=m[w]*m[v];
if(b==c){
a+=1;
}
}
cout<<a;
return 0;
}

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

#include <iostream>
using namespace std;
int main(){
int n,a,b;
double c;
double m[n];
cin>>n;
for(int q=0;q<n;q++){
cin>>m[q];
}
for(int w=0;w<n;w++){
for(v=w+1;v<n;v++){
b=m[w]*m[v];
c=m[w]*m[v];
if(b==c){
a+=1;
}
}
cout<<a;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'v' was not declared in this scope
   12 | for(v=w+1;v<n;v++){
      |     ^
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, O = 0;
  vector<double> A(N);
  for (int i = 0; i < N; i++) {cin >> A.at(i);}
  for (int k = 0; k < N; k++) {
    for (int j = 0; j < N; j++) {
      double X = A.at(k) * A.at(j);
      if (k >= j) {continue;}
      else if (X % 1 == 0) {O++;}
    }
  }
  cout << O << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |       else if (X % 1 == 0) {O++;}
      |                ~ ^ ~
      |                |   |
      |                |   int
      |                double
Language: C++

#include <iostream>
int main(){
int n,a,b;
double c;
double m[n];
cin>>n;
for(int q=0;q<n;q++){
cin>>m[q];
}
for(int w=0;w<n;w++){
for(v=w+1;v<n;v++){
b=m[w]*m[v];
c=m[w]*m[v];
if(b==c){
a+=1;
}
}
cout<<a;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin>>n;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:5: error: 'v' was not declared in this scope
   11 | for(v=w+1;v<n;v++){
      |     ^
a.cc:18:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 | cout<<a;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
  	while(n--)
    {
      float a;
      cin>>a;
    
  	for(int i=0;i<=n;i++)
    {
      for(int j=i+1;j<=n;j++)
      {
        long double x, fraction;
        x=i*j;
        fraction = modf(x);
        if (fraction=0)
        {
          int z=0;
          z = z+1;
          cout<<z<<endl;
        }
      }
    }
    }
  return 0;    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: 'modf' was not declared in this scope
   18 |         fraction = modf(x);
      |                    ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
  	while(n--)
    {
      float a;
      cin>>a;
    
  	for(int i=0;i<=n;i++)
    {
      for(int j=i+1;j<=n;j++)
      {
        long double x, fraction;
        x=i*j;
        fraction = modf(x,&x);
        if (fraction==0)
        {
          int z=0;
          z = z+1;
          cout<<z<<endl;
        }
      }
    }
    }
  return 0;    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: 'modf' was not declared in this scope
   18 |         fraction = modf(x,&x);
      |                    ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  double a[n];
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  int count =0;
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      double re=a[i]*a[j];
      double aaa=fmod(re,1.0);
      if(aaa==0.0){
        count++;
      }
    }
  }
  cout << count <<endl;
}

    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: 'fmod' was not declared in this scope
   14 |       double aaa=fmod(re,1.0);
      |                  ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
  	while(n--)
    {
      float a;
      cin>>a;
    
  	for(int i=0;i<=n;i++)
    {
      for(int j=i+1;j<=n;j++)
      {
        long double x, fraction;
        x=i*j;
        fraction = modf(x,&x);
        if (fraction=0)
        {
          int z=0;
          z = z+1;
          cout<<z<<endl;
        }
      }
    }
    }
  return 0;    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: 'modf' was not declared in this scope
   18 |         fraction = modf(x,&x);
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
#define LL long long
#define MOD 1000000007
#define fastio                    \
    ios_base::sync_with_stdio(0); \
    cin.tie(0);                   \
    cout.tie(0)

using namespace std;

int main()
{
    fastio;
    // ifstream f("f.txt");
    // ofstream g("out.txt");

    LL n, count = 0;
    cin >> n;
    long long double a[n];

    for (LL i = 0; i < n; i++)
    {
        cin >> a[i];
    }
    for (LL i = 0; i < n - 1; i++)
    {
        for (LL j = i + 1; j < n ; j++)
        {
            if (ceil(a[i] * a[j]) == floor(a[i] * a[j])){
                count++;
            }
        }
    }

    cout << count << "\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: 'long long' specified with 'double'
   19 |     long long double a[n];
      |          ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
  	while(n--)
    {
      float a;
      cin>>a;
    
  	for(int i=0;i<=n;i++)
    {
      for(int j=i+1;j<=n;j++)
      {
        long double x, fraction;
        x=i*j;
        fraction = modf(x,&k);
        if fraction=0
        {
          int z=0;
          z = z+1;
          cout<<z<<endl;
        }
      }
    }
    }
  return 0;    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: 'k' was not declared in this scope
   18 |         fraction = modf(x,&k);
      |                            ^
a.cc:18:20: error: 'modf' was not declared in this scope
   18 |         fraction = modf(x,&k);
      |                    ^~~~
a.cc:19:12: error: expected '(' before 'fraction'
   19 |         if fraction=0
      |            ^~~~~~~~
      |            (
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
  int n;
  double a[99];
  int i;
  int j;
  int sum=0;
  double count;
  int w;
  scanf("%d", &n);
  for (i=1; i<=n; i++){
    scanf("%lf", &a[i]);
  }
  for (i=1; i<=n-1; i++){
    for (j=i+1; j<=n; j++){
      count=a[i]*a[j];
      w= int count;
      if(count-w==0) {
        sum++;
      }
    }
  }
  printf("%d", sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:10: error: expected expression before 'int'
   18 |       w= int count;
      |          ^~~
Language: Java


import java.util.*;
public class Solution {
public static int mod=1000000007;

int N;

	
	

	public static void main(String[] args) {
			
	Scanner sc=new Scanner(System.in);
		
		int n=sc.nextInt();
		
		
		double arr[]=new double[n];
		for(int i=0;i<n;i++)
			arr[i]=sc.nextDouble();
		
		int pairs=0;
		for(int i=0;i<n;i++) {
			for(int j=i+1;j<n;j++) {
				double prod=arr[i]*arr[j];
				if(prod%1==0)
					pairs++;

						}
		}
		System.out.println(pairs);
		
	
	
		
		
		
		
	
		
		
		
	}
	
	
	
		}
	
	
	
	
		
	
	

		
		

	
	
	
	

			
	
		
	
	
		
	
	
	
	
	




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

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  double a[n];
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  int count =0;
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      double re=fmod(a[i],a[j]);
      if(re==0.0){
        count++;
      }
    }
  }
  cout << count <<endl;
}

    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'fmod' was not declared in this scope
   13 |       double re=fmod(a[i],a[j]);
      |                 ^~~~
Language: C++

#include <bits/stdc++.h>
#define LL long long
#define MOD 1000000007
#define fastio                    \
    ios_base::sync_with_stdio(0); \
    cin.tie(0);                   \
    cout.tie(0)

using namespace std;

int main()
{
    fastio;
    // ifstream f("f.txt");
    // ofstream g("out.txt");

    LL n, count = 0;
    cin >> n;
    LL double a[n];

    for (LL i = 0; i < n; i++)
    {
        cin >> a[i];
    }
    for (LL i = 0; i < n - 1; i++)
    {
        for (LL j = i + 1; j < n ; j++)
        {
            if (ceil(a[i] * a[j]) == floor(a[i] * a[j])){
                count++;
            }
        }
    }

    cout << count << "\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:2:17: error: 'long long' specified with 'double'
    2 | #define LL long long
      |                 ^~~~
a.cc:19:5: note: in expansion of macro 'LL'
   19 |     LL double a[n];
      |     ^~
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
  int n;
  double a[99];
  int i;
  int j;
  int sum=0;
  double count;
  int w;
  scanf("%d", &n);
  for (i=1; i<=n; i++){
    scanf("%d", &a[i]);
  }
  for (i=1; i<=n-1; i++){
    for (j=i+1; j<=n; j++){
      count=a[i]*a[j];
      w= int count;
      if(count-w==0) {
        sum++;
      }
    }
  }
  printf("%d", sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:10: error: expected expression before 'int'
   18 |       w= int count;
      |          ^~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#define int long long
using namespace std;
int a[200000];
signed main(){
	int n;
	string s;
	cin>>n;
	for(int i=0;i<n;i++){
		cin>>s;
		int dot=100;
		for(int j=0;j<s.size();j++)
			if(s[j]=='.')
				dot=j;
		if(dot!=100){
			s.erase(s.begin()+dot);
			a[i]=stoll(s)*(int)round(pow(10,9-(s.size()-dot)));
		}else
			a[i]=stoll(s)*1000000000;
	}
	int dd[19][19]={};
	for(int i=0;i<n;i++){
		int a2=a[i],a5=a[i];
		int div2=0,div5=0;
		while(a2%2==0){
			a2/=2;
			div2++;
		}
		while(a5%5==0){
			a5/=5;
			div5++;
		}
		dd[min(18ll,div2)][min(18ll,div5)]++;
	}
	int ans=0;
	for(int i=0;i<=18;i++)
		for(int j=0;j<=18;j++)
			for(int k=18-i;k<=18;k++)
				for(int l=18-j;l<=18;l++)
					if(i==k&&j==l)
						ans+=dd[i][j]*(dd[i][j]-1);
					else
						ans+=dd[i][j]*dd[k][l];
	cout<<ans/2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:50: error: 'pow' was not declared in this scope
   19 |                         a[i]=stoll(s)*(int)round(pow(10,9-(s.size()-dot)));
      |                                                  ^~~
a.cc:19:44: error: 'round' was not declared in this scope
   19 |                         a[i]=stoll(s)*(int)round(pow(10,9-(s.size()-dot)));
      |                                            ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  double a[n];
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  int count =0;
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      double re=a[i]*a[j];
      double re=fmod(a[i],a[j]);
      if(re==0.0){
        count++;
      }
    }
  }
  cout << count <<endl;
}

    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: redeclaration of 'double re'
   14 |       double re=fmod(a[i],a[j]);
      |              ^~
a.cc:13:14: note: 'double re' previously declared here
   13 |       double re=a[i]*a[j];
      |              ^~
a.cc:14:17: error: 'fmod' was not declared in this scope
   14 |       double re=fmod(a[i],a[j]);
      |                 ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
  	while(n--)
    {
      float a;
      cin>>a;
    
  	for(int i=0;i<=n;i++)
    {
      for(int j=i+1;j<=n;j++)
      {
        int x;
        x=i*j;
        if(modf(x)=0)
        {
          int z=0;
          z = z+1;
          cout<<z<<endl;
        }
      }
    }
    }
  return 0;    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: 'modf' was not declared in this scope
   18 |         if(modf(x)=0)
      |            ^~~~
Language: C

#include<iostream>
#include<iomanip>
#include<cmath>
#include<string>
#include<cstring>
#include<vector>
#include<list>
#include<algorithm>
#include<map>
#include<set>
#include<queue>
#include<stack>
using namespace std;
typedef long long ll;
#define fi first
#define se second
#define mp make_pair
#define rep(i, n) for(int i=0;i<n;++i)
#define rrep(i, n) for(int i=n;i>=0;--i)
const int inf=1e9+7;
const ll mod=1e9+7;
const ll mod1=998244353;
const ll big=1e18;
const double PI=2*asin(1);

int main() {
  int N;
  cin>>N;
  ll A[N];
  string tmp, tmp1;
  bool find;
  for(int i=0;i<N;++i) {
    tmp1.clear();
    tmp.clear();
    cin>>tmp;
    for(int j=0;j<12;++j) tmp.push_back('0');
    find = false;
    for(int j=0;j<tmp.size();++j) {
      if(tmp[j]=='.') {
        find = true;
        for(int k=1;k<10;++k) {
          tmp1.push_back(tmp[j+k]);
        }
        break;
      }
    }
    if(!find) A[i] = 0;
    else A[i] = stoll(tmp1);
  }
  /**
  map<ll, int> amap;
  for(int i=0;i<N;++i) {
    for(ll j=1;j*j<A[i];++j) {
      if(A[i]%j==0) {
        amap[j]++;
        if(j!=A[i]/j) amap[A[i]/j]++;
      }
    }
  }
  **/
  ll ans = 0;
  ll num;
  int twonum[N], fivenum[N];
  int zeronum = 0;
  ll tmpa;
  for(int i=0;i<N;++i) {
    if(A[i]==0) {
      zeronum++;
      continue;
    }
    tmpa = A[i];
    twonum[i] = 0;
    fivenum[i] = 0;
    while(tmpa%2==0) {
      twonum[i]++;
      tmpa /= 2;
    }
    while(tmpa%5==0) {
      fivenum[i]++;
      tmpa /= 5;
    }
  }
  map<ll, int> amap;
  for(int i=0;i<N;++i) {
    for(int j=0;j<twonum[i];++j) {
      for(int k=0;k<fivenum[i];++k) {
        amap[pow(2, j+1)*pow(5, k+1)]++;
      }
    }
  }
  ll tmpnum;
  for(int i=0;i<N;++i) {
    if(A[i]==0) ans += zeronum;
    else {
      tmpnum = 1;
      tmpnum *= pow(2, max(0, 9-twonum[i]));
      tmpnum *= pow(5, max(0, 9-fivenum[i]));
      tmpnum *= 1e8;
      if(A[i]%tmpnum==0) {
        ans += amap[tmpnum]-1;
      }
      else {
        ans += amap[tmpnum];
      }
    }
  }
  cout<<ans/2<<endl;
}



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

#include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
  	while(n--)
    {
      float a;
      cin>>a;
    
  	for(int i=0;i<=n;i++)
    {
      for(int j=i+1;j<=n;j++)
      {
        int x;
        x=i*j;
        if(modf(x)=0)
        {
          int z=0;
          z = z+1;
          cout<<z<<endl;
        }
      }
    }
  return 0;    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: 'modf' was not declared in this scope
   18 |         if(modf(x)=0)
      |            ^~~~
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
 long  int n;
  cin>>n;
 long double a[n];
  for(int i=0;i<n;i++)
    cin>>a[i];
 long  int count=0;
  for (int i=0;i<n-1;i++)
  {
    for(int j=i+1;j<n;j++)
    {
      
    long double ans=a[i]*a[j];
    //  cout<<ans<<endl;
      long long int ans1=a[i]*a[j];
    
      if(ans1==ans)
      {
           // cout<<abs(ans)<<endl;
            count++;
           
      }
    }
  //  cout<<"-----\n";
  }
  cout<<count<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:29:21: error: expected '}' at end of input
   29 |   cout<<count<<endl;
      |                     ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
  int n;
  double a[99];
  int i;
  int j;
  int sum=0;
  double a;
  scanf("%d", &n);
  for (i=1; i<=n; i++){
    scanf("%d", &a[i]);
  }
  for (i=1; i<=n-1; i++){
    for (j=i+1; j<=n; j++){
      a=a[i]*a[j];
      int n= (int)a;
      if(fabs(a-n)<0.00000000001) {
        sum++;
      }
    }
  }
  printf("%d", sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:10: error: conflicting types for 'a'; have 'double'
    9 |   double a;
      |          ^
main.c:5:10: note: previous declaration of 'a' with type 'double[99]'
    5 |   double a[99];
      |          ^
Language: C++

#Include<iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
  	while(n--)
    {
      float a;
      cin>>a;
    
  	for(int i=0;i<=n;i++)
    {
      for(int j=i+1;j<=n;j++)
      {
        int x;
        x=i*j;
        if(modf(x)=0)
        {
          int z=0;
          z = z+1;
          cout<<z<<endl;
        }
      }
    }
  return 0;    
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>n;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include<iostream>
a.cc:18:12: error: 'modf' was not declared in this scope
   18 |         if(modf(x)=0)
      |            ^~~~
a.cc:22:11: error: 'cout' was not declared in this scope
   22 |           cout<<z<<endl;
      |           ^~~~
a.cc:22:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:20: error: 'endl' was not declared in this scope
   22 |           cout<<z<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #Include<iostream>
a.cc:27:2: error: expected '}' at end of input
   27 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <stdio.h>
#include <math.h>
int main(void)
{
int n,i,j;
int count=0;
double a[][],num;
scanf("%d",&n);
for(i=0;i<n;i++){
  for(j=0;j<n;j++){
  scanf("%lf",&a[i][j]);
  }
}
for(i=0;i<n;i++){
  for(j=0;j<n;j++){
    num=a[i][j]*a[i+1][j+1];
  }
}
    if(ceil(num) != floor(num)){
       count++;
    }
       printf("%d",count);
       return 0;
       }
    
  
  


Compiler output:
main.c: In function 'main':
main.c:7:8: error: array type has incomplete element type 'double[]'
    7 | double a[][],num;
      |        ^
main.c:7:8: note: declaration of 'a' as multidimensional array must have bounds for all dimensions except the first
Language: C

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

int main(){
    int N;
    scanf("%d",&N);
    double A[N];
    int num=0;
    for (int i=0; i<N; i++) {
        scanf("%5.9lf",&A[i]);
    }
    for (int i=0; i<N; i++) {
        for (int j=1; j<=N-i; j++) {
            if (ceil(A[i]*A[i+j])==floor(A[i]*A[i+j])) {
                num++;
            }
        }
    }
    printf("%d",num);
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:6:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     scanf("%d",&N);
      |     ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:6:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |     scanf("%d",&N);
      |     ^~~~~
main.c:6:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:19:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 |     printf("%d",num);
      |     ^~~~~~
main.c:19:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:19:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  double a[n];
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  int count =0;
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      double re=a[i]*a[j];
      if(re%1==0.0){
        count++;
      }
    }
  }
  cout << count <<endl;
}

    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |       if(re%1==0.0){
      |          ~~^~
      |          |  |
      |          |  int
      |          double
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
  int n;
  double a[99];
  int i;
  int j;
  int sum=0;
  scanf("%d", &n);
  for (i=1; i<=n; i++){
    scanf("%d", &a[i]);
  }
  for (i=1; i<=n-1; i++){
    for (j=i+1; j<=n; j++){
      if (floor(a[i]*a[j])==(a[i]*a[j)){
        sum++;
      }
    }
  }
  printf("%d", sum);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:38: error: expected ']' before ')' token
   15 |       if (floor(a[i]*a[j])==(a[i]*a[j)){
      |                                      ^
      |                                      ]
Language: C++

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

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

vector<long double>d(n);
  for(int i=0;i<n;i++){
   cin >> d.at(i);
  }
  
 for(int i=0;i<n;i++){
   bfs(d.at(i)*d.at(i+1))
 
 }

  return 0;
}

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

import java.util.*;
 
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    double a[];
    for(int i = 0;i < n;i++){
      a[i] = sc.nextDouble();
    }
    
    int count = 0;
    for(int j=0;j<n;j++){
     for(int k=0;k<n;k++){
       double A = a[j]*a[k];
       bigDecimal b = new bigDecimal(String.valueOf(A));
       int intValue = bigDecimal.intValue();
       if(b.subtract(new bigDecimal(intValue)).toPlainString() == 0.0){
         count++;
       }
     }
    }
    System.out.println(count);
  }
}

Compiler output:
Main.java:17: error: cannot find symbol
       bigDecimal b = new bigDecimal(String.valueOf(A));
       ^
  symbol:   class bigDecimal
  location: class Main
Main.java:17: error: cannot find symbol
       bigDecimal b = new bigDecimal(String.valueOf(A));
                          ^
  symbol:   class bigDecimal
  location: class Main
Main.java:18: error: cannot find symbol
       int intValue = bigDecimal.intValue();
                      ^
  symbol:   variable bigDecimal
  location: class Main
Main.java:19: error: cannot find symbol
       if(b.subtract(new bigDecimal(intValue)).toPlainString() == 0.0){
                         ^
  symbol:   class bigDecimal
  location: class Main
4 errors
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  double a[n];
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      double re=a[i]*a[j];
      int count;
      if(re%1.0==0){
        count++;
      }
    }
  }
  cout << count <<endl;
}

    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: invalid operands of types 'double' and 'double' to binary 'operator%'
   14 |       if(re%1.0==0){
      |          ~~^~~~
      |          |  |
      |          |  double
      |          double
a.cc:19:11: error: 'count' was not declared in this scope
   19 |   cout << count <<endl;
      |           ^~~~~
Language: C

#include <stdio.h>
#include <math.h>
int main(void)
{
int n,i,j;
int count=0;
double a[100][200],num;
scanf("%d",&n);
for(i=0;i<n;i++){
  for(j=0;j<n;j++){
  scanf("%lf",&a[i][j]);
  }
}
for(i=0;i<n;i++){
  for(j=0;j<n;j++){
    num=a[i][j]*a[i+1][j+1];
  }
}
    if((ceil(num) != floor(num)){
       count++;
    }
       printf("%d",count);
       return 0;
       }
    
  
  


Compiler output:
main.c: In function 'main':
main.c:19:33: error: expected ')' before '{' token
   19 |     if((ceil(num) != floor(num)){
      |       ~                         ^
      |                                 )
main.c:24:8: error: expected expression before '}' token
   24 |        }
      |        ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  double a[n];
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      double re=a[i]*a[j];
      int count;
      if(re%1==0){
        count++;
      }
    }
  }
}

    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   14 |       if(re%1==0){
      |          ~~^~
      |          |  |
      |          |  int
      |          double
Language: Java

import java.util.*;
 
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    double a[];
    for(int i = 0;i < n;i++){
      a[i] = sc.nextDouble();
    }
    
    int count = 0;
    for(int j=0;j<n;j++){
     for(int k=0;k<n;k++){
       double A = a[j]*a[k];
       BigDecimal b = new BigDecimal(String.valueOf(A));
       int intValue = bigDecimal.intValue();
       if(b.subtract(new BigDecimal(intValue)).toPlainString() == 0.0){
         count++;
       }
     }
    }
    System.out.println(count);
  }
}

Compiler output:
Main.java:17: error: cannot find symbol
       BigDecimal b = new BigDecimal(String.valueOf(A));
       ^
  symbol:   class BigDecimal
  location: class Main
Main.java:17: error: cannot find symbol
       BigDecimal b = new BigDecimal(String.valueOf(A));
                          ^
  symbol:   class BigDecimal
  location: class Main
Main.java:18: error: cannot find symbol
       int intValue = bigDecimal.intValue();
                      ^
  symbol:   variable bigDecimal
  location: class Main
Main.java:19: error: cannot find symbol
       if(b.subtract(new BigDecimal(intValue)).toPlainString() == 0.0){
                         ^
  symbol:   class BigDecimal
  location: class Main
4 errors
Language: Java

import java.util.*;
 
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    
    int n = sc.nextInt();
    double a[];
    for(int i = 0;i < n;i++){
      a[i] = sc.nextDouble();
    }
    
    int count = 0;
    for(int j=0;j<n;j++){
     for(int k=0;k<n;k++){
       double A = a[j]*a[k];
       BigDecimal b = new BigDecimal(String.valueOf(A));
       int intValue = bigDecimal.intValue();
       if(b.subtract(new BigDecimal(intValue)).toPlainString() == 0.0){
         count++;
       }
     }
    }
    System.out.println(count);
  }

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

#include<iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  long a[n];
  for(int i=0;i<n;i++){
    cin >> a[i];
  }
  for(int i=0;i<n;i++){
    for(int j=i+1;j<n;j++){
      long re=a[i]*a[j];
      int count=0;
      if(re%1.0==0){
        count++;
      }
    }
  }
}

    
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: invalid operands of types 'long int' and 'double' to binary 'operator%'
   14 |       if(re%1.0==0){
      |          ~~^~~~
      |          |  |
      |          |  double
      |          long int
Language: C++

#include <bits/stdc++.h>
#define REP(i,  n) for (int i  =  0; i < (int)(n); ++i)
#define REPR(i,  n) for (int i  =  n - 1; i >= 0; --i)
using namespace std;
#define int long long int
//------------ATCODER TEMPLATE-------------

template<typename T>
istream& operator >> (istream& is, vector<T>& vs){
  for(T& v: vs) is >> v;
  return is;
}

template<typename T>
ostream& operator << (ostream& os, const vector<T>& vs){
  for (const T& v : vs) os << v << " ";
  return os;
}

signed main() {
  int N; cin >> N;
  vector<double> A;
  for (int i = 0; i < N; ++i) {
    double x; cin >> x;
    if (floor(x*1e6) == x*1e6) A.push_back(x);
  }

  int cnt = 0;
  for (sizet i = 0; i < A.size(); ++i) {
    for (sizet j = i + 1; j < A.size(); ++j) {
      double v = A[i] * A[j];
      if (floor(v) == v) ++cnt;
    }
  }

  cout << cnt << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:8: error: 'sizet' was not declared in this scope; did you mean 'size_t'?
   29 |   for (sizet i = 0; i < A.size(); ++i) {
      |        ^~~~~
      |        size_t
a.cc:29:21: error: 'i' was not declared in this scope
   29 |   for (sizet i = 0; i < A.size(); ++i) {
      |                     ^
a.cc:30:15: error: expected ';' before 'j'
   30 |     for (sizet j = i + 1; j < A.size(); ++j) {
      |               ^~
      |               ;
a.cc:30:27: error: 'j' was not declared in this scope
   30 |     for (sizet j = i + 1; j < A.size(); ++j) {
      |                           ^