Language: C++

200
000#include <bits/stdc++.h>
using namespace std;
#define finish(x) return cout << x << endl, 0
#define ll long long

int n, cnt[100][100];
vector <pair <int, int> > v;

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cin >> n;
    for(int i = 0 ; i < n ; i++){
        string s;
        cin >> s;
        for(int j = 0 ; j < 9 ; j++){
            auto it = find(s.begin(), s.end(), '.');
            if(it == s.end()){
                s += '0';
            }
            else{
                int idx = it - s.begin();
                swap(s[idx], s[idx + 1]);
                if(s.back() == '.') s.pop_back();
            }
        }
        ll a = 0;
        for(auto &i : s){
            a = 10 * a + i - '0';
        }
        ll twos = 0, fives = 0;
        while(a % 2 == 0){
            twos++;
            a /= 2;
        }
        while(a % 5 == 0){
            fives++;
            a /= 5;
        }
        v.push_back(make_pair(twos, fives));
    }
    ll ans = 0;
    for(int i = 0 ; i < n ; i++){
        int x = v[i].first, y = v[i].second;
        for(int g = 0 ; g <= 18 ; g++){
            for(int h = 0 ; h <= 18 ; h++){
                if(min(x + g, y + h) >= 18){
                    ans += cnt[g][h];
                }
            }
        }
        cnt[x][y]++;
    }
    cout << ans << endl;
}


Compiler output:
a.cc:2:4: error: stray '#' in program
    2 | 000#include <bits/stdc++.h>
      |    ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 200
      | ^~~
a.cc:8:1: error: 'vector' does not name a type
    8 | vector <pair <int, int> > v;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:11:5: error: 'ios_base' has not been declared
   11 |     ios_base::sync_with_stdio(0);
      |     ^~~~~~~~
a.cc:12:5: error: 'cin' was not declared in this scope
   12 |     cin.tie(0);
      |     ^~~
a.cc:15:9: error: 'string' was not declared in this scope
   15 |         string s;
      |         ^~~~~~
a.cc:16:16: error: 's' was not declared in this scope
   16 |         cin >> s;
      |                ^
a.cc:18:23: error: 'find' was not declared in this scope
   18 |             auto it = find(s.begin(), s.end(), '.');
      |                       ^~~~
a.cc:24:17: error: 'swap' was not declared in this scope
   24 |                 swap(s[idx], s[idx + 1]);
      |                 ^~~~
a.cc:41:9: error: 'v' was not declared in this scope
   41 |         v.push_back(make_pair(twos, fives));
      |         ^
a.cc:41:21: error: 'make_pair' was not declared in this scope
   41 |         v.push_back(make_pair(twos, fives));
      |                     ^~~~~~~~~
a.cc:45:17: error: 'v' was not declared in this scope
   45 |         int x = v[i].first, y = v[i].second;
      |                 ^
a.cc:48:31: error: 'y' was not declared in this scope
   48 |                 if(min(x + g, y + h) >= 18){
      |                               ^
a.cc:48:20: error: 'min' was not declared in this scope; did you mean 'main'?
   48 |                 if(min(x + g, y + h) >= 18){
      |                    ^~~
      |                    main
a.cc:53:16: error: 'y' was not declared in this scope
   53 |         cnt[x][y]++;
      |                ^
a.cc:55:5: error: 'cout' was not declared in this scope
   55 |     cout << ans << endl;
      |     ^~~~
a.cc:55:20: error: 'endl' was not declared in this scope
   55 |     cout << ans << endl;
      |                    ^~~~