Language: C++

#include<iostream>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<stack>
#include<unordered_map>
#include<unordered_set>
#include<cmath>
#include<bitset>
#include<cassert>
#include<algorithm>
#include<string>
#include<cstring>
#include<cstdio>
#include<cstdlib>
#include<iomanip>
#include<fstream>

using namespace std;
typedef long long ll;
#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

int main()
{
    fast_io;
    #ifndef ONLINE_JUDGE
        freopen("input.txt", "r", stdin);
        freopen("output.txt", "w", stdout);
    #endif
    
    ll n;
    ld d;
    cin >> n >> d;

    vector<ld> v;
    for (int i = 1; i <= n; i++)
    {
        ld a, b;
        cin >> a >> b;
        ld res = sqrt((a * a) + (b * b));

        v.push_back(res);
    }

    int c = 0;
    for (auto i : v)
        if (i == d) c++;

    cout << c << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: 'ld' was not declared in this scope; did you mean 'll'?
   33 |     ld d;
      |     ^~
      |     ll
a.cc:34:17: error: 'd' was not declared in this scope
   34 |     cin >> n >> d;
      |                 ^
a.cc:36:14: error: template argument 2 is invalid
   36 |     vector<ld> v;
      |              ^
a.cc:39:11: error: expected ';' before 'a'
   39 |         ld a, b;
      |           ^~
      |           ;
a.cc:40:16: error: 'a' was not declared in this scope
   40 |         cin >> a >> b;
      |                ^
a.cc:40:21: error: 'b' was not declared in this scope
   40 |         cin >> a >> b;
      |                     ^
a.cc:41:11: error: expected ';' before 'res'
   41 |         ld res = sqrt((a * a) + (b * b));
      |           ^~~~
      |           ;
a.cc:43:11: error: request for member 'push_back' in 'v', which is of non-class type 'int'
   43 |         v.push_back(res);
      |           ^~~~~~~~~
a.cc:43:21: error: 'res' was not declared in this scope
   43 |         v.push_back(res);
      |                     ^~~
a.cc:47:19: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   47 |     for (auto i : v)
      |                   ^
      |                   std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:47:19: error: 'end' was not declared in this scope; did you mean 'std::end'?
   47 |     for (auto i : v)
      |                   ^
      |                   std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~