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

#include<bits/stdc++.h>
#define fi first
#define se second
#define rep(i, n) for(int (i) = 0; (i) < (n); (i)++)
#define rep2(i, a, b) for (int (i) = (a); (i) < (b); (i)++)
#define rev(i, n) for (int (i) = (n) - 1; (i) >= 0; (i)--)
#define rev2(i, a, b) for (int (i) = (a) - 1; (i) >= (b); (i)--)
#define rng(a) a.begin(),a.end()
#define rrng(a) a.rbegin(),a.rend()
#define pb push_back
#define eb emplace_back
#define yn {puts("Yes");}else {puts("No");}
using namespace std;
using ll = long long;
using P = pair<int, int>;
using Pll = pair<long long, long long>;
template<class T> using V = vector<T>;
template<class T> using VV = vector<vector<T>>;
long long TEN(int i) {return !i ? 1 : TEN(i -  1) * 10LL;}
template<class T, class U> 
bool chmin(T& a, const U& b) {if (a > b) {a = b; return 1;} return 0;}
template<class T, class U> 
bool chmax(T& a, const U& b) {if (a < b) {a = b; return 1;} return 0;}
 
struct IoSetup {
  	IoSetup() {
    	cin.tie(nullptr);
    	ios::sync_with_stdio(false);
    	cout << fixed << setprecision(15);
  	}
} iosetup;

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//


int N;
double A[200005];

int count_num_prime(ll x, int n) {
	int cnt = 0;
	while (x % n == 0) {
		cnt++;
		x /= n;
	} 
	return cnt;
}



int main() {
	cin >> N;
	rep (i, N) cin >> A[i];

	rep (i, N) {
		A[i] *= TEN(9);
		A[i] = (ll)A[i];
	}

	V<P> hoge;
	VV<int> cnt_2_5(50, V<int>(30, 0));
	rep (i, N) {
		int cnt2 = min(count_num_prime(A[i], 2), 18);
		int cnt5 = min(count_num_prime(A[i], 5), 18);
		cnt_2_5[cnt2][cnt5]++;
		hoge.eb(cnt2, cnt5);
	}

	ll ans = 0;
	rep (i, N) {
		int nc2 = 18 - hoge[i].fi
		int nc5 = 18 - hoge[i].se
		rep2 (j, nc2, 50) rep2 (k, nc5, 30) {
			if (hoge[i].fi == j && hoge[i].se == k) {
				ans += (cnt_2_5[j][k] - 1);
			}
			else {
				ans += cnt_2_5[j][k];
			}
		}
	}

	cout << ans / 2 << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:71:17: error: expected ',' or ';' before 'int'
   71 |                 int nc5 = 18 - hoge[i].se
      |                 ^~~
a.cc:72:23: error: 'j' was not declared in this scope
   72 |                 rep2 (j, nc2, 50) rep2 (k, nc5, 30) {
      |                       ^
a.cc:5:44: note: in definition of macro 'rep2'
    5 | #define rep2(i, a, b) for (int (i) = (a); (i) < (b); (i)++)
      |                                            ^
a.cc:72:41: error: 'k' was not declared in this scope
   72 |                 rep2 (j, nc2, 50) rep2 (k, nc5, 30) {
      |                                         ^
a.cc:5:44: note: in definition of macro 'rep2'
    5 | #define rep2(i, a, b) for (int (i) = (a); (i) < (b); (i)++)
      |                                            ^
Language: Java

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long ans = 0;
        int n = scanner.nextInt();
        int[][] f = new int[20][20];
        for (int i = 0; i < n; i++) {
            double v = scanner.nextDouble();
            long vv = (long) (v * 1000000000);
            int p = 0, q = 0;
            while (vv % 2 == 0) {
                p++;
                vv = vv / 2;
            }
            while (vv % 5 == 0) {
                q++;
                vv = vv / 5;
            }
            for (int j = 18 - p; j <= 18; j++) {
                for (int k = 18 - q; k <= 18; k++) {
                    ans = ans + f[j][k];
                }
            }
            f[p][q]++;
        }
        System.out.println(ans);
    }
}


Compiler output:
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Test {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        long ans = 0;
        int n = scanner.nextInt();
        int[][] f = new int[20][20];
        for (int i = 0; i < n; i++) {
            double v = scanner.nextDouble();
            long vv = (long) (v * 1000000000);
            int p = 0, q = 0;
            while (vv % 2 == 0) {
                p++;
                vv = vv / 2;
            }
            while (vv % 5 == 0) {
                q++;
                vv = vv / 5;
            }
            for (int j = 18 - p; j <= 18; j++) {
                for (int k = 18 - q; k <= 18; k++) {
                    ans = ans + f[j][k];
                }
            }
            f[p][q]++;
        }
        System.out.println(ans);
    }
}

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

import java.lang.Math;
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
    static Scanner sc= new Scanner(System.in);
    void run(String args[]){
        Integer limit= sc.nextInt();
        Integer i=0;
        Integer j=0;
        ArrayList<Double>ipair=new ArrayList<>();
        ArrayList<Double>jpair=new ArrayList<>();
        Integer count=0;
        for(i=0;i<=limit;i++){
            ipair.add(sc.nextDouble());
            jpair.add(sc.nextDouble());
        }
        limit=Integer.valueOf(a);
        for(i=1;i<=limit;i++){
            for(j=i;j<=limit;j++){
                if(Math.ceil(jpair.get(j)*ipair.get(i))==Math.floor(jpair.get(j)*ipair.get(i))){
                    count+=1;
                }
            }
        }
        System.out.println(count);
    }
    public static void main(String args[]){
        Main printer = new Main();
        printer.run(args);
    }
}

Compiler output:
Main.java:18: error: cannot find symbol
        limit=Integer.valueOf(a);
                              ^
  symbol:   variable a
  location: class Main
1 error
Language: C++

#include <iostream>
#include <cmath>
 
using namespace std;
 
int main(){
  int t;
  int count = 0;
  cin >> t;
  float Arr[t];
  for(int x=0;x<t;x++){
    cin >> Arr[x];
  }
  for(int y=0;y<t;y++){
    for(int z=y;z<t;z++){
      float v = Arr[y]*Arr[z];
      if(v-floor(v)==0){
        count++;
    }
  }
    cout << count << endl;
  
}

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

#include <iostream>
#include <cmath>

using namespace std;

int main(){
  int t;
  int count = 0;
  cin >> t;
  float arr[t];
  for(int x=0;x<t;x++){
    cin >> Arr[x];
  }
  for(int y=0;y<t;y++){
    for(int z=y;z<t;z++){
      float v = Arr[y]*Arr[z];
      if(v-floor(v)==0){
        count++;
    }
  }
    cout << count << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'Arr' was not declared in this scope; did you mean 'arr'?
   12 |     cin >> Arr[x];
      |            ^~~
      |            arr
a.cc:16:17: error: 'Arr' was not declared in this scope; did you mean 'arr'?
   16 |       float v = Arr[y]*Arr[z];
      |                 ^~~
      |                 arr
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
#define SUP ios::sync_with_stdio(0); cin.tie(0);
#define int long long
using namespace std;
int main(){
    SUP
    int n;
    cin >> n;
    long double x;
    map<pair<int, int>, int> cnt;
    for(int i=0; i<n; i++){
        cin >> x;
        x = llround(x*1e9);
        long long tmp=x; int two=0, five=0;
        while(tmp%2==0){
            two++;
            tmp/=2;
        }
        tmp=x;
        while(tmp%5==0){
            five++;
            tmp/=5;
        }
        cnt[{two, five}]++;
    }
    long long ans=0;
    for(auto p1:cnt){
        for(auto p2:cnt){
            if(p1.first.first+p2.first.first>=18 and p1.first.second+p2.first.second>=18){
                if(p1<p2){
                    ans += p1.second*p2.second;
                } else if(p1==p2){
                    ans += p1.second * (p1.second-1)/2;
                }
            } 
        }
    }
    cout << ans;
} 



Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

#include<bits/stdc++.h>
#include<tr1::unordered_map>
#define rep(i,a,n) for(int i=a;i<=n;++i)
#define per(i,a,n) for(int i=n;i>=a;--i)
#define pb push_back
#define fi first
#define se second
#define io std::ios::sync_with_stdio(false)
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
const int P = 1e9+7, INF = 0x3f3f3f3f;
const int  maxn=1e5+50;
ll gcd(ll a,ll b)
{
    return b?gcd(b,a%b):a;
}
ll qpow(ll a,ll n)
{
    ll r=1%P;
    for (a%=P; n; a=a*a%P,n>>=1)if(n&1)r=r*a%P;
    return r;
}
bool cmp(int a,int b)
{
  return a>b;
}
tr1::unordered_map<pii,int> mp;
int ans;
void fen(ll x)
{   int ans2=0;
    int ans5=0;
    while(x%5==0)
    {
      x/=5;
      ans5++;
    }
    while(x%2==0)
    {
      x/=2;
      ans2++;
    }
    for(int i=0;i<=64;i++)
      for(int j=0;j<=32;j++)
      {
        if(ans2+i>=18&&ans5+j>=18)
           ans+=mp[pii(i,j)];
      }
    mp[pii(ans2,ans5)]++;
}
int main()
{  io;
   int n;
   cin>>n;
   for(int i=1;i<=n;i++)
   {
     double x;
     cin>>x;
     ll y=llround(x*=1000000000.0);
     fen(y);
   }
   cout<<ans<<endl;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'long long' specified with 'double'
    7 |     long long double a[n];
      |          ^~~~
a.cc:14:14: error: 'long long' specified with 'double'
   14 |         long long double c=(a[i]*a[j]);
      |              ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define REP(i, d, n) for(int i=(d); i<(n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
int main() {

ll n; cin>>n; int c=0;
  vector<long double>a(n);
  rep(i,n){cin>>a.at(i);}
          
  rep(i,n){
   REP(j,i+1,n-i){
    if(a.at(i)*a.at(j)%1.0==0)c++;}}
    cout<<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:23: error: invalid operands of types '__gnu_cxx::__alloc_traits<std::allocator<long double>, long double>::value_type' {aka 'long double'} and 'double' to binary 'operator%'
   15 |     if(a.at(i)*a.at(j)%1.0==0)c++;}}
      |        ~~~~~~~~~~~~~~~^~~~
      |               |        |
      |               |        double
      |               __gnu_cxx::__alloc_traits<std::allocator<long double>, long double>::value_type {aka long double}
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define REP(i, d, n) for(int i=(d); i<(n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
int main() {

ll n; cin>>n; int c=0;
  vector<long double>a(n);
  rep(i,n){cin>>a.at(i);
          
  rep(i,n){
   REP(j,i+1,n-i){
    if{(a.at(i)*a.at(j)%1.0==0)c++;
    cout<<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: expected '(' before '{' token
   15 |     if{(a.at(i)*a.at(j)%1.0==0)c++;
      |       ^
      |       (
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:14:18: note: to match this '{'
   14 |    REP(j,i+1,n-i){
      |                  ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:13:11: note: to match this '{'
   13 |   rep(i,n){
      |           ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:11:11: note: to match this '{'
   11 |   rep(i,n){cin>>a.at(i);
      |           ^
a.cc:17:2: error: expected '}' at end of input
   17 | }
      |  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define REP(i, d, n) for(int i=(d); i<(n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
int main() {

ll n; cin>>n; int c=0;
  vector<long double>a(n);
  rep(i,n{cin>>a.at(i);
          
  rep(i,n){
   REP(j,i+1,n-i){
    if{(a.at(i)*a.at(j)%1.0==0)c++;
    cout<<c<<endl;
}

Compiler output:
a.cc:17:2: error: unterminated argument list invoking macro "rep"
   17 | }
      |  ^
a.cc: In function 'int main()':
a.cc:11:3: error: 'rep' was not declared in this scope
   11 |   rep(i,n{cin>>a.at(i);
      |   ^~~
a.cc:11:6: error: expected '}' at end of input
   11 |   rep(i,n{cin>>a.at(i);
      |      ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  cin>>n;
  vector<float> v;
  for(int i=0;i<n;i++){
  	float t;
    cin>>t;
    v.push_back(t);
  }
  int val=0;
  for(int i=0;i<n;i++){
  	for(int j=i+1;j<n;j++){
    	if(v[i]*v[j]==(float)(int)(v[i]*v[j]){val++;}
    }
  }
           cout<<val;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:46: error: expected ')' before '{' token
   16 |         if(v[i]*v[j]==(float)(int)(v[i]*v[j]){val++;}
      |           ~                                  ^
      |                                              )
a.cc:17:5: error: expected primary-expression before '}' token
   17 |     }
      |     ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

const int ten[] = {0, 10, 100, 1000, 10000, 100000, 1000000, 10000000};

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  
  int n;
  cin >> n;
  
  vector<string> a;
  vector<pair<int, int>> b;
  a.resize(n);
  b.resize(n);
  
  for (int i = 0; i < n; i++)
  {
	int pos;
	cin >> a[i];
	pos = a[i].rfind('.');
	if (pos < 0)
	  b[i].first = a[i], b[i].second = 0;
	else
	{
	  b[i].first = a[i].erase(pos, 1);
      b[i].second = a[i].length() - pos - 1;
	}
  }
  
  int c = 0;
  for (int i = 0; i < n; i++)
	for (int j = i; j < n; j++)
	  ((a.first * b.first) % ten[a.second + b.second] == 0) && c++;
  
  cout << c;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:27: error: cannot convert '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   28 |           b[i].first = a[i], b[i].second = 0;
      |                           ^
a.cc:31:34: error: cannot convert 'std::__cxx11::basic_string<char>' to 'int' in assignment
   31 |           b[i].first = a[i].erase(pos, 1);
      |                        ~~~~~~~~~~^~~~~~~~
      |                                  |
      |                                  std::__cxx11::basic_string<char>
a.cc:39:15: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'first'
   39 |           ((a.first * b.first) % ten[a.second + b.second] == 0) && c++;
      |               ^~~~~
a.cc:39:25: error: 'class std::vector<std::pair<int, int> >' has no member named 'first'
   39 |           ((a.first * b.first) % ten[a.second + b.second] == 0) && c++;
      |                         ^~~~~
a.cc:39:40: error: 'class std::vector<std::__cxx11::basic_string<char> >' has no member named 'second'
   39 |           ((a.first * b.first) % ten[a.second + b.second] == 0) && c++;
      |                                        ^~~~~~
a.cc:39:51: error: 'class std::vector<std::pair<int, int> >' has no member named 'second'
   39 |           ((a.first * b.first) % ten[a.second + b.second] == 0) && c++;
      |                                                   ^~~~~~
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  
  int n;
  cin >> n;
  
  vector<double> a;
  a.resize(n);
  
  for (auto &f a)
	cin >> f;  
  
  int c = 0;
  for (int i = 0; i < n; i++)
	for (int j = i; j < n; j++)
		((a[i] * a[j]) == double(int(a[i] * a[j]))) && c++;
  
  cout << c;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: expected ';' before 'a'
   18 |   for (auto &f a)
      |               ^~
      |               ;
a.cc:18:16: error: could not convert 'a' from 'std::vector<double>' to 'bool'
   18 |   for (auto &f a)
      |                ^
      |                |
      |                std::vector<double>
a.cc:18:17: error: expected ';' before ')' token
   18 |   for (auto &f a)
      |                 ^
      |                 ;
a.cc:19:16: error: use of 'f' before deduction of 'auto'
   19 |         cin >> f;
      |                ^
Language: C++

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

int main() {
    int n;
    scanf("%d", &n);
    map<pair<int,int>, int> cnt;
    rep (i,N){
        double x;
        cin >> x;
        long long i = llround(x * 1e9);
        int two = 0, five = 0;
        while(i % 2 == 0) {
            two++;
            i /= 2;
        }
        while(i % 5 == 0) {
            five++;
            i /= 5;
        }
        ++cnt[{two,five}];
    }
    long long answer = 0;
    for(auto p1 : cnt) {
        for(auto p2 : cnt) {
            if(p1.first.first+p2.first.first >= 18 && p1.first.second+p2.first.second >= 18) {
                if(p1 < p2) {
                    answer += (long long) p1.second * p2.second;
                }
                else if(p1 == p2) {
                    answer += (long long) p1.second * (p1.second - 1) / 2;
                }
            }
        }
    }
    cout << answer << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'N' was not declared in this scope
    9 |     rep (i,N){
      |            ^
a.cc:3:40: note: in definition of macro 'rep'
    3 | #define rep(i, N) for (int i = 0; i < (N); i++)
      |                                        ^
a.cc:12:19: error: redeclaration of 'long long int i'
   12 |         long long i = llround(x * 1e9);
      |                   ^
a.cc:9:10: note: 'int i' previously declared here
    9 |     rep (i,N){
      |          ^
a.cc:3:28: note: in definition of macro 'rep'
    3 | #define rep(i, N) for (int i = 0; i < (N); i++)
      |                            ^
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main()
{
  int t;
  cin>>t;
  double A[t];
 for(int i=0;i<t;i++)
   cin>>A[i];
  int ans=0;
  for(int i=0;i<t;i++)
  {
    for(int j=i+1;j<t;j++)
    {
      long x=A[i]*A[j];
      if(ceil(x)==floor(x))
        ans++;
    }
  }
  cout<<ans;
}

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

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
//if(strcmp(s[i],"AC")==0)
//if(s[l]=='#')
/*小文字判定
if((moji>= 'a') && (moji<='z')){
    printf("a\n");
    return 0;
  }
  */

int W_Length(char *str){
	int length = 0;
	while(*str++ != '\0')
		length++;
	return length;
}

void swap(int *a, int *b){
  int temp;
  temp=*a;
  *a=*b;
  *b=temp;
}
//swap(&a, &b)

double deg(double theta){//deg to theta
return theta*(2*3.14159265359)/360;
}

int cmp( const void *p, const void *q ) {
    return *(int*)p - *(int*)q;
}//ちいさい順
//qsort(a,n,sizeof(int),cmp);
//char s[n][11]

int cmp_s(const void * left, const void * right)
{
	char *left_char = (char *)left;
  char *right_char = (char *)right;
  return strcmp(left_char, right_char);
}
//qsort(s,n,sizeof(s[0]),cmp_s);


int main (void)
{
	double a[210000],b,c, eps=0.00000000001;
  char s[200005];
  int count=0,n,i,j;

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

	}
  for(i=0;i<n;i++){
    for(j=i+1;j<n;j++){
      if(int(a[i]*a[j])-eps<a[i]*a[j]&&int(a[i]*a[j])+eps>a[i]*a[j]){
      count++;
      }
    }
  
  }
	
  printf("%d",count);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:61:10: error: expected expression before 'int'
   61 |       if(int(a[i]*a[j])-eps<a[i]*a[j]&&int(a[i]*a[j])+eps>a[i]*a[j]){
      |          ^~~
Language: C

#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<string.h>
//if(strcmp(s[i],"AC")==0)
//if(s[l]=='#')
/*小文字判定
if((moji>= 'a') && (moji<='z')){
    printf("a\n");
    return 0;
  }
  */

int W_Length(char *str){
	int length = 0;
	while(*str++ != '\0')
		length++;
	return length;
}

void swap(int *a, int *b){
  int temp;
  temp=*a;
  *a=*b;
  *b=temp;
}
//swap(&a, &b)

double deg(double theta){//deg to theta
return theta*(2*3.14159265359)/360;
}

int cmp( const void *p, const void *q ) {
    return *(int*)p - *(int*)q;
}//ちいさい順
//qsort(a,n,sizeof(int),cmp);
//char s[n][11]

int cmp_s(const void * left, const void * right)
{
	char *left_char = (char *)left;
  char *right_char = (char *)right;
  return strcmp(left_char, right_char);
}
//qsort(s,n,sizeof(s[0]),cmp_s);


int main (void)
{
	double a[210000],b,c,n,i, eps=0.00000000001;
  char s[200005];
  int count=0;

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

	}
  for(i=0;i<n;i++){
    for(j=i+1;j<n;j++){
      if(int(a[i]*a[j])-eps<a[i]*a[j]&&int(a[i]*a[j])+eps>a[i]*a[j]){
      count++;
      }
    }
  
  }
	
  printf("%d",count);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:56:15: error: array subscript is not an integer
   56 | scanf("%lf",&a[i]);
      |               ^
main.c:60:9: error: 'j' undeclared (first use in this function)
   60 |     for(j=i+1;j<n;j++){
      |         ^
main.c:60:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:61:10: error: expected expression before 'int'
   61 |       if(int(a[i]*a[j])-eps<a[i]*a[j]&&int(a[i]*a[j])+eps>a[i]*a[j]){
      |          ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define eb emplace_back
#define mp make_pair
#define Fast_IO ios::sync_with_stdio(false);
#define DEBUG fprintf(stderr,"Running on Line %d in Function %s\n",__LINE__,__FUNCTION__)
//mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
#define fir first
#define sec second
#define mod 998244353
#define int long long
#define inf 0x3f3f3f3f
#define INF 0x3f3f3f3f3f3f3f3f
inline int read()
{
	char ch=getchar(); int nega=1; while(!isdigit(ch)) {if(ch=='-') nega=-1; ch=getchar();}
	int ans=0; while(isdigit(ch)) {ans=ans*10+ch-48;ch=getchar();}
	if(nega==-1) return -ans;
	return ans;
}
typedef pair<int,int> pii;
#define N 200005
#define M 40
int a[M+M][M+M];
signed main()
{
	int n=read();
	for(int i=1;i<=n;i++)
	{
		double x; scanf("%lf",&x);
		ll X=x*1000000000+0.5;
		int ca=-9,cb=-9;
		while(X%2==0) ca++,X/=2;
		while(X%5==0) cb++,X/=5;
		// printf("%d %d\n",ca,cb);
		a[ca+M][cb+M]++;
	}
	int ans=0;
	for(int i=0;i<M+M;i++)
	{
		for(int j=0;j<M+M;j++)
		{
			for(int A=0;A<M+M;A++)
			{
				for(int b=0;b<M+M;b++)
				{
					if(i+A-M-M<0) continue;
					if(j+b-M-M<0) continue;
					if(i==A&&j==b) ans+=(a[i][j]-1)*a[i][j];
					else ans+=a[i][j]*a[A][b];
				}
			}
		}
	}
	cout<<ans/2<<endl;
	return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: 'll' was not declared in this scope
   32 |                 ll X=x*1000000000+0.5;
      |                 ^~
a.cc:34:23: error: 'X' was not declared in this scope
   34 |                 while(X%2==0) ca++,X/=2;
      |                       ^
a.cc:35:23: error: 'X' was not declared in this scope
   35 |                 while(X%5==0) cb++,X/=5;
      |                       ^
Language: C++

#include <bits/stdc++.h>
#include <commctrl.h>

using namespace std;

#define ll long long
#define ar array

basic_ostream<_Ch, _Tr> &j;

const _Expr<_Dom, _Dom::value_type> &i;

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

    int n, a;
    cin >> n >> a;
    for(int i = 0; i < n; ++i) {
        for(int j = 0; j < n; ++j) {
            if i < j;
            cin >> a[i] >> a[j];
        }
    }
    
    cout << "a[i]" << "a[j]" << i < j << "\n";
    return 0;
}

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

#include  // Integer Product, by Errichto
using namespace std;
int main() {
    int n;
    scanf("%d", &n);
    map, int> cnt;
    for(int rep = 0; rep < n; ++rep) {
        double x;
        scanf("%lf", &x);
        long long i = llround(x  1e9);
        int two = 0, five = 0;
        while(i % 2 == 0) {
            two++;
            i /= 2;
        }
        while(i % 5 == 0) {
            five++;
            i /= 5;
        }
        ++cnt[{two,five}];
    }
    long long answer = 0;
    for(auto p1 : cnt) {
        for(auto p2 : cnt) {
            if(p1.first.first+p2.first.first >= 18 && p1.first.second+p2.first.second >= 18) {
                if(p1 < p2) {
                    answer += (long long) p1.second  p2.second;
                }
                else if(p1 == p2) {
                    answer += (long long) p1.second * (p1.second - 1) / 2;
                }
            }
        }
    }
    printf("%lld\n", answer);
}a

Compiler output:
a.cc:1:42: error: #include expects "FILENAME" or <FILENAME>
    1 | #include  // Integer Product, by Errichto
      |                                          ^
a.cc: In function 'int main()':
a.cc:5:5: error: 'scanf' was not declared in this scope
    5 |     scanf("%d", &n);
      |     ^~~~~
a.cc:6:5: error: 'map' was not declared in this scope
    6 |     map, int> cnt;
      |     ^~~
a.cc:1:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
  +++ |+#include <map>
    1 | #include  // Integer Product, by Errichto
a.cc:6:10: error: expected primary-expression before 'int'
    6 |     map, int> cnt;
      |          ^~~
a.cc:10:32: error: expected ')' before numeric constant
   10 |         long long i = llround(x  1e9);
      |                              ~ ^ ~~~
      |                                )
a.cc:10:23: error: 'llround' was not declared in this scope
   10 |         long long i = llround(x  1e9);
      |                       ^~~~~~~
a.cc:20:11: error: 'cnt' was not declared in this scope; did you mean 'int'?
   20 |         ++cnt[{two,five}];
      |           ^~~
      |           int
a.cc:23:19: error: 'cnt' was not declared in this scope; did you mean 'int'?
   23 |     for(auto p1 : cnt) {
      |                   ^~~
      |                   int
a.cc:35:5: error: 'printf' was not declared in this scope
   35 |     printf("%lld\n", answer);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #include  // Integer Product, by Errichto
a.cc: At global scope:
a.cc:36:2: error: 'a' does not name a type
   36 | }a
      |  ^
Language: C++

#include <iostream>
#include <map>
#include <vector>
#define OFFSET 100

using namespace std;
typedef long long ll;

int d[300][300];

int main() {
  int n;
  cin >> n;
  vector<ll> a;
  vector<int> vt, vf;
  memset(d, 0, sizeof(0));
  for (int i = 0; i < n; ++i) {
    string s;
    cin >> s;
    int m = s.size();
    int j = 0;
    while (j < m && s[j] != '.')
      j++;
    if (j == m) {
      a.emplace_back(stoll(s));
      vt.emplace_back(0);
      vf.emplace_back(0);
    } else {
      a.emplace_back(stoll(s.substr(0, j) + s.substr(j + 1, m - j - 1)));
      vt.emplace_back(j + 1 - m);
      vf.emplace_back(j + 1 - m);
    }
    ll p = a[i];
    while (p % 2 == 0) {
      vt[i]++;
      p /= 2;
    }
    while (p % 5 == 0) {
      vf[i]++;
      p /= 5;
    }
    d[vt[i] + OFFSET][vf[i] + OFFSET]++;
  }
  for (int i = 0; i < 300; ++i)
    for (int j = 298; j >= 0; --j)
      d[i][j] += d[i][j + 1];
  ll ans = 0;
  for (int i = 0; i < n; ++i) {
    for (int j = -vt[i] + OFFSET; j < 300; ++j)
      ans += d[j][-vf[i] + OFFSET];
    if (vt[i] >= 0 && vf[i] >= 0)
      ans--;
  }
  printf("%lld", ans / 2);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'memset' was not declared in this scope
   16 |   memset(d, 0, sizeof(0));
      |   ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <vector>
  +++ |+#include <cstring>
    4 | #define OFFSET 100
Language: C

#include <iostream>
#include <map>
#include <cmath>

using ll = long long;
using namespace std;

int main() {
    int n; cin >> n;
    map<pair<int, int>, int> cnt;
    for (int j = 0; j < n; ++j) {
        double d; cin >> d;
        ll i = llround(d*1e9);
        int two, five;
        two = five = 0;
        while (i % 2 == 0)
            i /= 2, ++two;
        while (i % 5 == 0)
            i /= 5, ++five;
        ++cnt[{two, five}];
        // cout << two << " " << five << "\n";
    }
    
    ll ans = 0;
    for (auto [p1, c1] : cnt) {
        for (auto [p2, c2] : cnt) {
            if (p1.first + p2.first >= 18 and p1.second + p2.second >= 18) {
                if (p1 < p2) {
                    ans += (ll) c1 * c2;
                } else if (p1 == p2) {
                    ans += (ll) (c1 - 1) * c1 / 2;
                }
            }
        }
    }
    cout << ans;
}

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

#include<bits/stdc++.h>
using namespace std;
int main() {
    int n;
    scanf("%d", &n);
    map<pair<int,int>, int> cnt;
    for(int rep = 0; rep < n; ++rep) {
        double x;
        scanf("%lf", &x);
        long long i = llround(x*1e9);
        int two = 0, five = 0;
        while(i % 2 == 0) {
            two++;
            i /= 2;
        }
        while(i % 5 == 0) {
            five++;
            i /= 5;
        }
        ++cnt[{two,five}];
    }
    long long answer = 0;
    for(auto p1 : cnt) {
        for(auto p2 : cnt) {
            if(p1.first.first+p2.first.first >= 18 && p1.first.second+p2.first.second >= 18) {
                if(p1 < p2) {
                    answer += (long long) p1.second  p2.second;
                }
                else if(p1 == p2) {
                    answer += (long long) p1.second * (p1.second - 1) / 2;
                }
            }
        }
    }
    printf("%lld\n", answer);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:52: error: expected ';' before 'p2'
   27 |                     answer += (long long) p1.second  p2.second;
      |                                                    ^ ~~
      |                                                    ;
Language: C++

def numpwr(x, div):
    ans = 0
    while x%div==0:
        ans+=1
        x//=div
    return ans

n = int(input())
a = []
for i in range(n):
    a.append(input())

ints = []
for dec in a:
    loc = dec.find('.')
    need = 9
    if loc != -1:
        need = 9-(len(dec)-loc-1)
    dec = dec.replace('.', '')
    num = int(dec) * 10**need
    ints.append(num)

cnt = {}
for i in ints:
    key = (numpwr(i,2), numpwr(i,5))
    if key in cnt:
        cnt[key]+=1
    else:
        cnt[key] = 1

ans = 0
for p1 in cnt.items():
    for p2 in cnt.items():
        if p1[0][0]+p2[0][0]>=18 and p1[0][1]+p2[0][1]>=18:
            if p1 < p2:
                ans += p1[1]*p2[1]
            elif p1==p2:
                ans += p1[1]*(p1[1]-1)//2
            
print(ans)

Compiler output:
a.cc:19:28: error: empty character constant
   19 |     dec = dec.replace('.', '')
      |                            ^~
a.cc:1:1: error: 'def' does not name a type
    1 | def numpwr(x, div):
      | ^~~
a.cc:24:1: error: expected unqualified-id before 'for'
   24 | for i in ints:
      | ^~~
Language: C++

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


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

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

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

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

int main() {
	int N;
	string S;
	long long p;
	int q;
	int r;
	long long aa;

	cin >> N;
 	vector<int> a0(5);
 	vector<int> a1(11);
 	vector<int> a2(N);
 	vector<int> a5(N);
	vector<vector<long long >> x(25, vector<long long >(25));

   	rep(i,N) {
   		rep(j,5) a0.at(j)=0;
   		rep(j,10) a1.at(j)=0;
		cin >> S;
		p=0;
		q=-1;
		aa=0;
		r=S.size();
   		rep(j,r) {
			if(S.at(j)=='.') q=0;
			else if(q<0) {
				a0.at(p)=S.at(j)-'0';
				p++;
			} else {
				a1.at(q)=S.at(j)-'0';
				q++;
			}
		}
		if (p>0) {
	   		rep(j,p) {
				aa*=10;
				aa+=a0.at(j);
			}
		}
   		rep(j,9) {
			aa*=10;
			aa+=a1.at(j);
		}
   		rep(j,20) {
			if (aa%2>0) break;
			aa/=2;
		}
        a2.at(i)=j;
   		rep(j,20) {
			if (aa%5>0) break;
			aa/=5;
		}
        a5.at(i)=j;
	}

   	rep(i,25) {
   		rep(j,25) {
			x.at(i).at(j)=0;
		}
	}
   	rep(i,N) {
			x.at(a2.at(i)).at(a5.at(i))++;
	}

	p=0;
   	rep(i1,21) {
	   	rep(i2,21) {
			if(i1+i2>=18){
	   			rep(j1,21) {
   					rep(j2,21) {
						if(j1+j2>=18) {
							p+=x.at(i1).at(j1)*x.at(i2).at(j2);
							if((i1==i2)&&(j1==j2)) p-=x.at(i1).at(j1);
						}
					}
				}
			}
		}
	}
	cout << p/2 << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:53:18: error: 'j' was not declared in this scope
   53 |         a2.at(i)=j;
      |                  ^
Language: C++

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

int main(){
    int64_t n, ans = 0; cin >> n;
    map<pair<int, int>, int> cnt;
    for (auto i = 0; i < n; i++) {
        double a; cin >> a; a *= 1000000000;
        auto tmp = (int64_t)a, cnt2 = 0, cnt5 = 0;
        while(tmp % 5 == 0) { tmp /= 5; cnt5++; }
        while(tmp % 2 == 0) { tmp /= 2; cnt2++; }
        cnt[{cnt2, cnt5}]++;
    }
    for (auto & elm1 : cnt) {
        for (auto & elm2 : cnt) {
            if(elm1.first.first + elm2.first.first < 18) continue;
            if(elm1.first.second + elm2.first.second < 18) continue;
            if(elm1 == elm2) ans += elm1.second * (elm2.second - 1);
            else ans += elm1.second * elm2.second;
        }
    }
    cout << ans / 2 << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: inconsistent deduction for 'auto': 'long int' and then 'int'
    9 |         auto tmp = (int64_t)a, cnt2 = 0, cnt5 = 0;
      |         ^~~~
Language: Java

import java.util.*;

class Text{
   public static void main(String args[]){
     try{
     Scanner in=new Scanner(System.in);
     int t=in.nextInt();
    int i;   
        double a[]=new double[]; 
for(i=0;i<t;i++)
  a[i]=in.nextDouble();
       int j;
       int count=0;
       for(i=0;i<t;i++){
         for(j==0;j<t;j++){
           if(i!=j){
             int m=a[i]*a[j];
             if(m==Math.abs(m))
               count++;
           }
         }
       }
         System.out.println(count);
       
       
     }catch(Exception e){
     System.out.print();
     }
   }
  
}

Compiler output:
Main.java:9: error: array dimension missing
        double a[]=new double[]; 
                               ^
Main.java:15: error: not a statement
         for(j==0;j<t;j++){
              ^
2 errors
Language: C++

#include <algorithm>
#include <iostream>
#include <map>
#include <vector>

using namespace std;

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

    map<pair<int, int>, int> cnt;

    for (int i = 0; i < n; ++i) {
        double x;
        cin >> x;
        long long ll = llround(x * 1e9);
        int two = 0, five = 0;
        while (ll % 2 == 0) {
            ++two;
            ll /= 2;
        }

        while (ll % 5 == 0) {
            ++five;
            ll /= 5;
        }

        ++cnt[{two, five}];
    }

    long long answer = 0;
    for (auto p1 : cnt) {
        for (auto p2 : cnt) {
            if (p1.first.first + p2.first.first >= 18 && p1.first.second + p2.first.second >= 18) {
                if (p1 < p2) {
                    answer += (long long)p1.second * p2.second;
                } else if (p1 == p1) {
                    answer += (long long)p1.second * (p1.second - 1) / 2;
                }
            }
        }
    }

    cout << answer << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: 'llround' was not declared in this scope
   17 |         long long ll = llround(x * 1e9);
      |                        ^~~~~~~
Language: C

#include <stdio.h>

int main(){
   int n,i,j,k[10000];
   double d;
   long x,xx,y,yy,t,ans,a[200000],b[200000];

   scanf("%d",&n);
   for (i=0;i<10000;i++) k[i]=0;
   for (j=i=0;i<n;i++) {
      scanf("%lf",&d);
      yy=y=1000000000;xx=x=d*y;
      while ((t=x%y)>0) {
         x=y;y=t;
      }
      if (yy/y>=10000) continue;
      a[j]=xx/y;b[j]=yy/y;
     k[a[j]%b[j])*10000)/b[j]]++;
      j++;
   }
   n=j;
   ans=0;
   for (i=0;i<n;i++)
      for (j=0;j<10000;j++)
         if ((a[i]*k[j])%b[i]==0) ans++;
   printf("%ld\n",ans);
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:18:17: error: expected ']' before ')' token
   18 |      k[a[j]%b[j])*10000)/b[j]]++;
      |                 ^
      |                 ]
main.c:18:17: error: expected ';' before ')' token
   18 |      k[a[j]%b[j])*10000)/b[j]]++;
      |                 ^
      |                 ;
main.c:18:17: error: expected statement before ')' token
main.c:18:18: error: invalid type argument of unary '*' (have 'int')
   18 |      k[a[j]%b[j])*10000)/b[j]]++;
      |                  ^~~~~~
main.c:18:24: error: expected ';' before ')' token
   18 |      k[a[j]%b[j])*10000)/b[j]]++;
      |                        ^
      |                        ;
main.c:18:24: error: expected statement before ')' token
main.c:18:25: error: expected expression before '/' token
   18 |      k[a[j]%b[j])*10000)/b[j]]++;
      |                         ^
main.c:18:30: error: expected statement before ']' token
   18 |      k[a[j]%b[j])*10000)/b[j]]++;
      |                              ^
main.c:18:33: error: expected expression before ';' token
   18 |      k[a[j]%b[j])*10000)/b[j]]++;
      |                                 ^
Language: C

#include<stdio.h>

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

    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:28: error: invalid operands to binary % (have 'double' and 'int')
   13 |             if((a[i]*a[j]) % 1 == 0) x++;
      |                ~~~~~~~~~~~ ^
      |                     |
      |                     double
Language: C

#include "bits/stdc++.h"
using namespace std;
#define rep(i,n)for(int i=0;i<(int)(n);i++)
#define PI 3.141592653589793
//vector < vector<int>>a(0, vector<int>(0));二次元配列宣言


int main()
{
	int n;
	cin >> n;
	vector<double>a(n);
	int i,j;
	for (i = 0; i < n; i++)
	{
		cin >> a.at(i);
		//a.at(i) = a.at(i) * 10000;
	}

	long int b;
	int kisuu = 0, guusuu = 0, ng=0,five=0;
	int p[20000] = { 0 };
	int q[20000] = { 0 };
	int sei = 0;
	vector<int>o(n);
	for (i = 1; i <= 10000; i *= 10)
	{
		for (j = 0; j < n; j++)
		{
			a.at(j) = a.at(j) * i;
			b = (int)a.at(j);
			
			if (a.at(j) - b == 0&&o[j]==0)
			{
				//cout << "::" << b << endl;
				if (i == 1)
				{
					if (b % 10000 == 0)
					{
						p[10000]++;
					}
					else if (b % 1000 == 0)
					{
						p[1000]++;
					}
					else if (b % 100 == 0)
					{
						p[100]++;
					}
					else if (b % 10 == 0)
					{
						p[10]++;
					}
					else
					{
						if (b % 2 == 1)
							kisuu++;
						else
							guusuu++;
					}
					sei++;
				}
				if (i == 10)
				{
					if (b % 5 == 0)
						five++;
					else if (b % 2 == 0)
						ng++;
					else
						q[10]++;
				}
				q[i]++;

				o[j] = 1;
			}
		}
	}
	long long int cnt = 0;
	//cout << endl << sei << endl << p[10000] << endl << p[1000] << endl << p[100] << endl << p[10] << endl<<endl << q[10000] << endl << q[1000] << endl << q[100] << endl << q[10] << endl<<endl << ng << endl << guusuu <<endl<< five << endl;
	cnt = (sei * (sei - 1)) / 2 + p[10000] * (q[10000]+q[1000]+q[100]+q[10]) + p[1000] * (q[1000] + q[100] + q[10]) + p[100] * (q[100] + q[10]) + p[10] * q[10]+ng*five+guusuu*five;
	cout << cnt << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include "bits/stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
import java.util.ArrayList;
import java.util.List;

public class Main{
  public static void main(String[] args){
    List<Double> list = new ArrayList<Double>();
    List<Double> counter = new ArrayList<Double>();
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      	double 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 == Math.floor(x)) {
            	counter.add(x);
            } 
        }
    }
    System.out.print(counter.size());
  }
}

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

#include<iostream>
#include<bits/stdc++.h>

using namespace std;
int main()
{
    int n;
    cin>>n;
    vector<int> v;
    
    while(n--){
        float num;v.push_back(num);
    }
    int count=0;
    for(int i=0;i<n-1;i++)
    {
        for(int j=i;j<n;j++){
            int res=(v[i]*v[j])/1;
            if((v[i]*v[j])<=0 || (v[i]*v[j])>=0 && res*1==(v[i]*v[j]))
               count++; 
        }
        cou<<count<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:9: error: 'cou' was not declared in this scope; did you mean 'cos'?
   22 |         cou<<count<<endl;
      |         ^~~
      |         cos
Language: Java

import java.io.*;
import java.util.*;
class Solution
{
  public static void main(String[] args)
  {
    double res=0;
    int count=0;
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    double arr[]=new arr[n];
    for(int i=0;i<n;i++)
    {
      arr[i]=sc.nextDouble();
    }
    for(int i=0;i<n;i++)
    {
      for(int j=i+1;j<n;j++)
      {
        res=arr[i]*arr[j];
        if(res==Math.floor(res))
        {
          count++;
        }
      }
    }
    System.out.print(count);
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
    double arr[]=new arr[n];
                     ^
  symbol:   class arr
  location: class Solution
1 error
Language: C++

//THIS IS THE AATMANIRBHAR SOLUTION I FOUND..!!!!!

#include<bits/stdc++.h>
using namespace std ;
#define ll long long
#define ld long double
#define pb push_back
#define mp make_pair
#define F first 
#define S second 
#define P push
#define vvi vector<vector<int>>
#define vi vector<int>
#define vc vector<char>
#define vs vector<string>
#define sz(a) (int)a.size()
// #define s(v) sort(v.begin(), v.end())
#define rep(i,a,b) for(int i=a;i<b;i++)
#define per(j,a) for(int j=a;j>=0;j--) 
const

int main() 
{  
    
    ll n,i,j,c=0; 
    cin>>n;
    ld a[n],p;
    for(i=0;i<n;i++)
    cin>>a[i];
    for(i=0;i<n;i++)
    { for(j=i+1;j<n;j++)
        { p=a[i]*a[j];
            if(floor(p)==ceil(p))
             c++;
        }
    }
    cout<<c<<endl;
    
    
	return 0;
}

Compiler output:
a.cc:22:1: error: '::main' must return 'int'
   22 | int main()
      | ^~~
Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<cstdlib>
using namespace std;
typedef unsigned long long LL;
LL a[200055];
const int MX=1e9;
const LL MAX=1e18;
inline LL mul(LL a,LL b,LL mod){
	return
	(a*b-(LL)((long double)a/mod*b)*mod+mod)%mod;
}
int n;
void brute(){
	int ans=0;
	for(int i=1;i<=n;i++){
		for(int j=i+1;j<=n;j++){
			if(mul(a[i],a[j],MAX)==0)ans++;//,cout<<i<<' '<<j<<endl;
		}
	}
	cout<<ans<<endl;
	exit(0);
}
struct num{int two,fiv,id;}y[200055];
bool cmp1(num a,num b){return a.two<b.two;}
struct ques{int l,w;}q[100055];
bool cmp2(num a,num b){return a.fiv>b.fiv;}
bool cmp3(ques a,ques b){return a.w>b.w;}

struct TreeArry{
#define lowbit(i) ((i)&(-(i)))
	int tree[100055],n;
	inline void add(int a,int b)
		{for(;a<=n;a+=lowbit(a))tree[a]+=b;}
	inline int sum(int l,int r){
		int res=0;l--;
		while(r>l)res+=tree[r],r-=lowbit(r);
		while(l>r)res-=tree[l],l-=lowbit(l);
		return res;
	}
}S;

int main(){
	cin>>n;
	for(int i=1;i<=n;i++){
		double t;
		cin>>t;
		a[i]=round((long double)t*MX);
	}
	//for(int i=1;i<=n;i++)cout<<a[i]<<' ';cout<<endl;
	//brute();
	for(int i=1;i<=n;i++){
		while(a[i]%2==0)y[i].two++,a[i]/=2;
		while(a[i]%5==0)y[i].fiv++,a[i]/=5;
	}
	int ans=0;
	//for(int i=1;i<=n;i++)cout<<y[i].two<<' ';cout<<endl;//
	//for(int i=1;i<=n;i++)cout<<y[i].fiv<<' ';cout<<endl;//
	//cout<<"_____\n";//
	sort(y+1,y+n+1,cmp1);
	//for(int i=1;i<=n;i++)cout<<y[i].two<<' ';cout<<endl;//
	//for(int i=1;i<=n;i++)cout<<y[i].fiv<<' ';cout<<endl;//
	for(int i=1;i<=n;i++){
		q[i].l=lower_bound(y+1,y+n+1,(num){max(0,18-y[i].two),0,-1},cmp1)-y;
		q[i].w=max(0,18-y[i].fiv);
		if(max(0,18-y[i].two)<=y[i].two&&max(0,18-y[i].fiv)<=y[i].fiv)ans--;//,cout<<i<<',';//
	}//cout<<endl;
	//for(int i=1;i<=n;i++)cout<<q[i].l<<' ';cout<<endl;//
	//for(int i=1;i<=n;i++)cout<<q[i].w<<' ';cout<<endl;//
	//cout<<ans<<endl;
	for(int i=1;i<=n;i++)y[i].id=i;
	sort(y+1,y+n+1,cmp2);
	sort(q+1,q+n+1,cmp3);
	S.n=n;
	for(int i=1,l=1;i<=n;i++){
		while(y[l].fiv>=q[i].w&&l<=n)S.add(y[l].id,1),l++;
		ans+=S.sum(q[i].l,n);//cout<<ans<<endl;
	}
	cout<<ans/2<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:49:22: error: 'round' was not declared in this scope
   49 |                 a[i]=round((long double)t*MX);
      |                      ^~~~~
Language: Java

import java.util.Scanner;
import java.util.ArrayList;
import java.util.List;

public class Main{
  public static void main(String[] args){
    List<Double> list = new ArrayList<Double>();
    List<Integer> counter = new ArrayList<Integer>();
    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 == Math.floor(x)) && !Double.isInfinite(x)) {
            		counter.add(x);
            	} 
          }
      }
    }
    System.out.print(counter.size());
  }
}

Compiler output:
Main.java:18: error: incompatible types: double cannot be converted to Integer
            		counter.add(x);
            		            ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error