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

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

int main() {
  Long Long N,D;
  cin >> N >> D ;
  Long Long X[N];
  Long Long Y[N];
  for (int i=0;i<N;i++) cin >> X[i] >> Y[i];
  int ans=0;
  for (int i=0 ; i<N ; i++) {
    int64_t XX=X[i]*X[i];
    int64_t YY=Y[i]*Y[i];
    int64_t DD=D*D;
    if (XX+YY<=DD) ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'Long' was not declared in this scope; did you mean 'long'?
    5 |   Long Long N,D;
      |   ^~~~
      |   long
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> D ;
      |          ^
a.cc:6:15: error: 'D' was not declared in this scope
    6 |   cin >> N >> D ;
      |               ^
a.cc:7:7: error: expected ';' before 'Long'
    7 |   Long Long X[N];
      |       ^~~~~
      |       ;
a.cc:8:7: error: expected ';' before 'Long'
    8 |   Long Long Y[N];
      |       ^~~~~
      |       ;
a.cc:9:32: error: 'X' was not declared in this scope
    9 |   for (int i=0;i<N;i++) cin >> X[i] >> Y[i];
      |                                ^
a.cc:9:40: error: 'Y' was not declared in this scope
    9 |   for (int i=0;i<N;i++) cin >> X[i] >> Y[i];
      |                                        ^
a.cc:12:16: error: 'X' was not declared in this scope; did you mean 'XX'?
   12 |     int64_t XX=X[i]*X[i];
      |                ^
      |                XX
a.cc:13:16: error: 'Y' was not declared in this scope; did you mean 'YY'?
   13 |     int64_t YY=Y[i]*Y[i];
      |                ^
      |                YY
Language: C++

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

int main() {
  int N,D;
  cin >> N >> D ;
  int X(N);
  int Y(N);
  for (int i=0;i<N;i++) cin >> X[i] >> Y[i];
  int ans=0;
  for (int i=0 ; i<N ; i++) {
    int64_t XX=X[i]*X[i];
    int64_t YY=Y[i]*Y[i];
    int64_t DD=D*D;
    if (XX+YY<=DD) ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: invalid types 'int[int]' for array subscript
    9 |   for (int i=0;i<N;i++) cin >> X[i] >> Y[i];
      |                                 ^
a.cc:9:41: error: invalid types 'int[int]' for array subscript
    9 |   for (int i=0;i<N;i++) cin >> X[i] >> Y[i];
      |                                         ^
a.cc:12:17: error: invalid types 'int[int]' for array subscript
   12 |     int64_t XX=X[i]*X[i];
      |                 ^
a.cc:12:22: error: invalid types 'int[int]' for array subscript
   12 |     int64_t XX=X[i]*X[i];
      |                      ^
a.cc:13:17: error: invalid types 'int[int]' for array subscript
   13 |     int64_t YY=Y[i]*Y[i];
      |                 ^
a.cc:13:22: error: invalid types 'int[int]' for array subscript
   13 |     int64_t YY=Y[i]*Y[i];
      |                      ^
Language: C++

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

int main() {
  int N,D;
  cin >> N >> D ;
  int X(N);
  int Y(N);
  for (int i=0;i<N;i++) cin >> X(i) >> Y(i);
  int ans=0;
  for (int i=0 ; i<N ; i++) {
    int64_t XX=X(i)*X(i);
    int64_t YY=Y(i)*Y(i);
    int64_t DD=D*D;
    if (XX+YY<=DD) ans++;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:33: error: 'X' cannot be used as a function
    9 |   for (int i=0;i<N;i++) cin >> X(i) >> Y(i);
      |                                ~^~~
a.cc:9:41: error: 'Y' cannot be used as a function
    9 |   for (int i=0;i<N;i++) cin >> X(i) >> Y(i);
      |                                        ~^~~
a.cc:12:17: error: 'X' cannot be used as a function
   12 |     int64_t XX=X(i)*X(i);
      |                ~^~~
a.cc:12:22: error: 'X' cannot be used as a function
   12 |     int64_t XX=X(i)*X(i);
      |                     ~^~~
a.cc:13:17: error: 'Y' cannot be used as a function
   13 |     int64_t YY=Y(i)*Y(i);
      |                ~^~~
a.cc:13:22: error: 'Y' cannot be used as a function
   13 |     int64_t YY=Y(i)*Y(i);
      |                     ~^~~
Language: C

#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main(){
    int N, D, n, x, y, r;
    n = 0;
    cin >> N >> D;
    for(int i = 0; i<N; i++){
        cin >>x >>y;
        r = sqrt(x^2 + y^2);
        if(r<=D){
            n += 1;
        }
    }
    return 0;
}

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

#include<iostream>
#include<math.h>
#include<string>
using namespace std;
int main(){
    int N, D, n, x, y, r;
    n = 0;
    cin >> N >> D;
    for(int i = 0; i<N; i++){
        cin >>x >>y;
        r = sqrt(x^2 + y^2);
        if(r<=D){
            n += 1;
        }
    }
    return 0;
}

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

int n = in.nextInt();
long d = in.nextInt();
d = d * d;
Point[] points = Point.readPoints(in, n);

int answer = 0;
for (Point p : points) {
    if (p.x * p.x + p.y * p.y <= d)
        answer++;
}

out.println(answer);

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int n = in.nextInt();
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
d = d * d;
^
Main.java:7: error: class, interface, enum, or record expected
for (Point p : points) {
^
Main.java:10: error: class, interface, enum, or record expected
}
^
4 errors
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int N;
	float D, X, Y;
	float ans = 0, dis = 0;
	int n=0;

	cin >> N >> D;

	for (int i = 0; i < N; i++)
	{
		cin >> X >> Y;
		ans = X * X + Y * Y;
		dis = sqrt(ans);
		
		if (dis <= D)
		{
			n++;
		}
	}
	cout << n;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: 'sqrt' was not declared in this scope
   17 |                 dis = sqrt(ans);
      |                       ^~~~
Language: C++

#include <iostream>
#include <cmath>
#define MAX (int)2e5
typedef long long int ll;

ll cood[MAX];
int main(void){
  int N;
  ll D;
  int ans=0;
  cin >> N >> D;
  for(int i=0;i<N;i++){
    ll x,y;
    cin >> x >> y;
    ll num = x*x + y*y;
    if(num <= D*D)
      ans++;
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   cin >> N >> D;
      |   ^~~
      |   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:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <cmath>
#define MAX 2e5
typedef long long int ll;

ll cood[MAX];
int main(void){
  int N;
  ll D;
  int ans=0;
  cin >> N >> D;
  for(int i=0;i<N;i++){
    ll x,y;
    cin >> x >> y;
    ll num = x*x + y*y;
    if(num <= D*D)
      ans++;
  }
  cout << ans << endl;
  return 0;
}


Compiler output:
a.cc:3:13: error: conversion from 'double' to 'long unsigned int' in a converted constant expression
    3 | #define MAX 2e5
      |             ^~~
a.cc:6:9: note: in expansion of macro 'MAX'
    6 | ll cood[MAX];
      |         ^~~
a.cc:3:13: error: could not convert '2.0e+5' from 'double' to 'long unsigned int'
    3 | #define MAX 2e5
      |             ^~~
      |             |
      |             double
a.cc:6:9: note: in expansion of macro 'MAX'
    6 | ll cood[MAX];
      |         ^~~
a.cc:3:13: error: size of array 'cood' has non-integral type 'double'
    3 | #define MAX 2e5
      |             ^~~
a.cc:6:9: note: in expansion of macro 'MAX'
    6 | ll cood[MAX];
      |         ^~~
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   cin >> N >> D;
      |   ^~~
      |   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:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <cmath>
#define MAX 2e5
using long long int ll;

ll cood[MAX];
int main(void){
  int N;
  ll D;
  int ans=0;
  cin >> N >> D;
  for(int i=0;i<N;i++){
    ll x,y;
    cin >> x >> y;
    ll num = x*x + y*y;
    if(num <= D*D)
      ans++;
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'long'
    4 | using long long int ll;
      |       ^~~~
a.cc:6:1: error: 'll' does not name a type
    6 | ll cood[MAX];
      | ^~
a.cc: In function 'int main()':
a.cc:9:3: error: 'll' was not declared in this scope
    9 |   ll D;
      |   ^~
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   cin >> N >> D;
      |   ^~~
      |   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:15: error: 'D' was not declared in this scope
   11 |   cin >> N >> D;
      |               ^
a.cc:13:7: error: expected ';' before 'x'
   13 |     ll x,y;
      |       ^~
      |       ;
a.cc:14:12: error: 'x' was not declared in this scope
   14 |     cin >> x >> y;
      |            ^
a.cc:14:17: error: 'y' was not declared in this scope
   14 |     cin >> x >> y;
      |                 ^
a.cc:15:7: error: expected ';' before 'num'
   15 |     ll num = x*x + y*y;
      |       ^~~~
      |       ;
a.cc:16:8: error: 'num' was not declared in this scope; did you mean 'enum'?
   16 |     if(num <= D*D)
      |        ^~~
      |        enum
a.cc:19:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   cout << ans << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |   cout << ans << endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
   int n,k,i,x,y,c=0;
   cin>>n>>k;
   for(i=0;i<n;i++)
   {
      cin>>x>>y;
      if(sqrt((x*x)+(y*y))==k)c++;
   
   
   }
   cout<<c<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected '}' at end of input
   15 |    cout<<c<<endl;
      |                  ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
   int n,k,i,x,y,c=0;
   cin>>n>>k;
   for(i=0;i<n;i++)
   {
      cin>>x>>y;
      if(sqrt((x*x)+(y*y))==k)c++;
   
   
   }
   cout<<c<<endl;





}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'sqrt' was not declared in this scope
   10 |       if(sqrt((x*x)+(y*y))==k)c++;
      |          ^~~~
Language: C++

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

int main()
{
	int n;cin>>n;
	int x,y;
	int d;cin>>d;
	int ans=0;
	for(int i=0;i<n;i++)
	{
		cin>>x>>y
		if(x*x+y*y<=d*d)
		ans++;
	}
cout<<ans<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: expected ';' before 'if'
   13 |                 cin>>x>>y
      |                          ^
      |                          ;
   14 |                 if(x*x+y*y<=d*d)
      |                 ~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int n, d,i,j,s=0,c=0,g ;
  int arr[] ;
  scanf("%d",&n);
  scanf("%d",&d);
  for(i=0; i<n;i++)
  {
    for(j=0;j<2;j++)
    {
      scanf("%d",&arr[i][j]);
    }
  }
  for(i=0; i<n;i++)
  {
    for(j=0;j<2;j++)
    {
      s=s+(arr[i][j]*arr[i][j]);
    }
    s = sqrt(s);
    if(d==s)
    {
      c=c+1;
    }
    s=0;
  }
 print("%d",c);
}
    

Compiler output:
main.c: In function 'main':
main.c:6:7: error: array size missing in 'arr'
    6 |   int arr[] ;
      |       ^~~
main.c:13:25: error: subscripted value is neither array nor pointer nor vector
   13 |       scanf("%d",&arr[i][j]);
      |                         ^
main.c:20:18: error: subscripted value is neither array nor pointer nor vector
   20 |       s=s+(arr[i][j]*arr[i][j]);
      |                  ^
main.c:20:28: error: subscripted value is neither array nor pointer nor vector
   20 |       s=s+(arr[i][j]*arr[i][j]);
      |                            ^
main.c:29:2: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   29 |  print("%d",c);
      |  ^~~~~
      |  lrint
Language: C

#inlude<stdio.h>
#include<math.h>
int main()
{
  int n, d,i,j,s=0,c=0,g ;
  int arr[] ;
  scanf("%d",&n);
  scanf("%d",&d);
  for(i=0; i<n;i++)
  {
    for(j=0:j<2:j++)
    {
      scanf("%d",&arr[i][j]);
    }
  }
  for(i=0; i<n;i++)
  {
    for(j=0:j<2:j++)
    {
      s=s+(arr[i][j]*arr[i][j]);
    }
    s = sqrt(s);
    if(d==s)
    {
      c=c+1;
    }
    s=0;
  }
 print("%d",c);
}
    

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:6:7: error: array size missing in 'arr'
    6 |   int arr[] ;
      |       ^~~
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   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 | int main()
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d",&n);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:11:12: error: expected ';' before ':' token
   11 |     for(j=0:j<2:j++)
      |            ^
      |            ;
main.c:11:20: error: expected expression before ')' token
   11 |     for(j=0:j<2:j++)
      |                    ^
main.c:13:25: error: subscripted value is neither array nor pointer nor vector
   13 |       scanf("%d",&arr[i][j]);
      |                         ^
main.c:18:12: error: expected ';' before ':' token
   18 |     for(j=0:j<2:j++)
      |            ^
      |            ;
main.c:18:20: error: expected expression before ')' token
   18 |     for(j=0:j<2:j++)
      |                    ^
main.c:20:18: error: subscripted value is neither array nor pointer nor vector
   20 |       s=s+(arr[i][j]*arr[i][j]);
      |                  ^
main.c:20:28: error: subscripted value is neither array nor pointer nor vector
   20 |       s=s+(arr[i][j]*arr[i][j]);
      |                            ^
main.c:29:2: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   29 |  print("%d",c);
      |  ^~~~~
      |  lrint
Language: C++

#include <iostream>
#include <string>
#include <cmath>

int N; // # of points
int D; // border distance between two points

int main() {

    std::cin >> N;
    std::cin >> D;

    int count = 0;

    for (int i=0; i<N; i++) {
        int x, y;
        std::cin >> x >> y;
        const double dist = std::sqrt(x * x, y * y);

        if (dist <= D) {
            count++;
        }

    }

    std::cout << count << std::endl;

    return 0;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:38: error: no matching function for call to 'sqrt(int, int)'
   18 |         const double dist = std::sqrt(x * x, y * y);
      |                             ~~~~~~~~~^~~~~~~~~~~~~~
In file included from a.cc:3:
/usr/include/c++/14/cmath:454:5: note: candidate: 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::sqrt(_Tp)'
  454 |     sqrt(_Tp __x)
      |     ^~~~
/usr/include/c++/14/cmath:454:5: note:   candidate expects 1 argument, 2 provided
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/iostream:38,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: candidate: 'double sqrt(double)'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:442:3: note: candidate: 'constexpr float std::sqrt(float)'
  442 |   sqrt(float __x)
      |   ^~~~
/usr/include/c++/14/cmath:442:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:446:3: note: candidate: 'constexpr long double std::sqrt(long double)'
  446 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/14/cmath:446:3: note:   candidate expects 1 argument, 2 provided
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define ld long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
using P=pair<long long,long long>;
#define rep(i,n) for(long long i=0; i<(long long)n; i++)
#define req(i,n) for(long long i=n-1; i>=0; i--)
#define range(i,a,b) for(long long i=a; i<b; i++)
#define all(x) (x).begin(), (x).end()
#define sz(x) ((long long)(x).size())
#define COUT(x) cout << x << endl
#define pb push_back
#define mp make_pair
#define F first
#define S second
#define onBoard(y,x) (y>=0 && y<h && x>=0 && x<w)
#define pri_que priority_queue
#define vint vector<int>
#define vvint vector<vector<int>>
#define vi vector<int>
#define vvi vector<vector<int>>
#define vs vector<string>
#define vvc vector<vector<char>>
#define vc vector<char>
#define vp vector<pair<int,int>>
#define vb vector<bool>
#define vvb vector<vector<bool>>
#define show(x) cout<<#x<<"="<<x<<endl;
#define SUM(x) accumulate(x.begin(),x.end(),0)
#define MAX(x) *max_element(x.begin(),x.end())
#define MIN(x) *min_element(x.begin(),x.end())
#define couty cout<<"Yes"<<endl
#define coutn cout<<"No"<<endl
#define coutY cout<<"YES"<<endl
#define coutN cout<<"NO"<<endl
#define yn(x) cout<<(x?"Yes":"No")<<endl
#define YN(x) cout<<(x?"YES":"NO")<<endl
long long gcd(long long a,long long b){return b?gcd(b,a%b):a;}
long long lcm(long long a, long long b){return a/gcd(a,b)*b;}
const long long dx[8]={1,0,-1,0,1,-1,-1,1};
const long long dy[8]={0,1,0,-1,1,1,-1,-1};
const long long INF = 1e15;
const long long MOD = 1e9+7;

signed main(){
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout<<fixed<<setprecision(15);
	
  	int n,d; cin >>n >> d;
  	int res=0;
    while(n--){
      int x,y; cin >> x >> y;
      if(x*x+y*y<=d*d) res++;
    }
  cout<<res<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:59:19: error: expected '}' at end of input
   59 |   cout<<res<<endl;
      |                   ^
a.cc:48:14: note: to match this '{'
   48 | signed main(){
      |              ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  
  int N, D, X, Y;
  cin >> N >> D >> X >> Y;
  
  int count;
  
  	for (int i = 0; i < N; i++) {
      
      if (D * D <= X * X + Y * Y) {
      count++;
    }
  
  	  else {
      count += 0
    }
  }
      
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: expected ';' before '}' token
   18 |       count += 0
      |                 ^
      |                 ;
   19 |     }
      |     ~
Language: C++

#include <iostream>
using namespace std;

int main() {
  
  int N, D, X, Y;
  cin >> N >> D >> X >> Y;
  
  int count;
  
  	for (i = 0; i < N; i++) {
      
      if (D * D <= X * X + Y * Y) {
      count++;
    }
  
  	  else {
        break;
    }
      
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: 'i' was not declared in this scope
   11 |         for (i = 0; i < N; i++) {
      |              ^
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  int count;
  count = 0;

  int n,d;
  long d2;
  cin >> n >> d;
  
  d2 = d * d;

  long x[n];
  long y[n];

  for(int i = 0; n; i++){
cin >> x[i] >> y[i];
  }

  for(int i = 0; n; i++){
      if(std::abs(x[i]) > d){
          break;
      }else if(std::abs(y[i]) > d){
          break;
      }else if(d2 >= (x[i]*x[i] + y[i]*y[i]){
            count = count +1;
      }else{
          break;
      }
      }
  
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:45: error: expected ')' before '{' token
   28 |       }else if(d2 >= (x[i]*x[i] + y[i]*y[i]){
      |               ~                             ^
      |                                             )
a.cc:33:7: error: expected primary-expression before '}' token
   33 |       }
      |       ^
Language: C++

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

int main() {
  int count;
  count = 0;

  int n,d;
  long d2;
  cin >> n >> d;
  
  d2 = d * d;

  long x[n];
  long y[n];

  for(int i = 0; n; i++){
cin >> x[i] >> y[i];
  }

  for(int i = 0; n; i++){
      if(std::abs(x[i]) > d){
          break;
      }else if(std::abs(y[i]) > d){
          break;
      }else if(d2 >= (x[i]*x[i] + y[i]*y[i]){
            count = count +1;
      }else{
          break;
      }
      }
  
    cout << count << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:28:45: error: expected ')' before '{' token
   28 |       }else if(d2 >= (x[i]*x[i] + y[i]*y[i]){
      |               ~                             ^
      |                                             )
a.cc:33:7: error: expected primary-expression before '}' token
   33 |       }
      |       ^
a.cc:35:27: error: expected '}' at end of input
   35 |     cout << count << endl;
      |                           ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C

#include<stdio.h>
#include<math.h>
 
int main(){
  int n, d, count=0;
  if(scanf("%d %d", &n, &d) && n>=1 && d=>0){
      for(int i=0;i<=n; i++){
        int x, y;
        if(scanf("%d %d",&x, &y)){
          if(sqrt(x*x+y*y)<=d)count++;
        }
      }
  }
  printf("%d", count);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:42: error: expected expression before '>' token
    6 |   if(scanf("%d %d", &n, &d) && n>=1 && d=>0){
      |                                          ^
Language: C

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

int main(){
    int64_t N, D, cnt=0;
    cin>>N>>D;
    for(int i=0;i<N;i++){
        int64_t x, y;
        cin>>x>>y;
        if(x*x+y*y <= D*D) cnt++;
    }
    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: C++

20 100000
14309 -32939
-56855 100340
151364 25430
103789 -113141
147404 -136977
-37006 -30929
188810 -49557
13419 70401
-88280 165170
-196399 137941
-176527 -61904
46659 115261
-153551 114185
98784 -6820
94111 -86268
-30401 61477
-55056 7872
5901 -163796
138819 -185986
-69848 -96669


Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 20 100000
      | ^~
Language: C++

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

int main(){
  int n,d;
  cin >>n>>d;
  vector<vector<int>> a(n, vector<int>(2));
  int m=0;
  for (int i = 0;i<n;i++){
    cin >> a.at(i).at(0) >> a.at(i).at(1);
    if (a.at(i).at(0)*a.at(i).at(0)+a.at(i).at(1)*a.at(i).at(1) <= d*d){
      m+=1;
    }
  }
  int l =0;
  for(int i = 0;i<n;i++){
   if(a.at(i).at(0)*a.at(i).at(0)+a.at(i).at(1)*a.at(i).at(1) <= d*d){
     for(int j= 0;j<n;j++){
       if(a.at(i) == a.at(j)){
         l +=1;
       }
     }
     l -=1;
   }
  cout << m-l/2<<endl;
}


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

#include <iostream>
#include <cmath>

using namespace std;

long main(){
    long N, D, output = 0;
    cin >> N;
    cin >> D;

    long* X = (long*)malloc(N*sizeof(long));
    long* Y = (long*)malloc(N*sizeof(long));
    double* distances = (double*)malloc(N*sizeof(float));

    for (long i = 0; i < N; i ++){
        cin >> X[i];
        //prlongf("X[%i] = %i\n", i, X[i]);
        cin >> Y[i];
        //prlongf("Y[%i] = %i\n", i, Y[i]);
    }

    for (long i = 0; i < N; i ++){
        distances[i] = sqrt(pow(X[i],2) + pow(Y[i],2));
        //cout << (distances[i]) << endl;
        if (distances[i] <= D){
            output ++;
        }
    }
    
    cout << output;
}

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

#include <iostream>
#include <cmath>

int main(void) {
    int n
    double d;

    std::cin >> n > d;

    unsigned int nb = 0;

    for(int i = 0; i < n; i++) {
        double x, y;
        std::cin >> x, y;

        if(sqrt(pow(x, 2) - pow(y, 2)) <= d) {
            nb++;
        }
    }

    std::cout << nb;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'double'
    6 |     double d;
      |     ^~~~~~
a.cc:8:17: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |     std::cin >> n > d;
      |                 ^
      |                 yn
a.cc:8:21: error: 'd' was not declared in this scope
    8 |     std::cin >> n > d;
      |                     ^
Language: C++

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

#define ll long long
#define MOD 1000000007


void solve(){
    int n, d;
    cin >> n >> d;
    long long x, y;
    int cnt = 0;
    for(int i = 0; i < n; i++){
        cin >> x >> y;
        if(pow(x * x + y * y, 0.5) <= d){
            cnt++;
        }
    }
    cout << cnt;
}

int main()
{   
    ios::sync_with_stdio(0);
    cin.tie(0);
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    {
        solve();
        }
    return 0;
}

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<bits/stdc++.h>
 
using namespace std;
int main()
{
  int n, d;
  cin>>n>>d;
  int c=0
  while(n--)
  {
    int x,y;
    cin>>x>>y;
    int k=x*x+y*y;
    if(k==d*d) c++;
  }
  
  cout<<c;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'while'
    9 |   while(n--)
      |   ^~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main()
{
  int n, d;
  cin>>n>>d;
  int c=0
  while(n--)
  {
    int x,y;
    cin>>x>>y;
    int k=pow(x*x+y*y,0.5);
    if(k==d) c++;
  }
  
  cout<<c;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'while'
    9 |   while(n--)
      |   ^~~~~
Language: Java

public class Main {
	
	public static void main (String[] args) {
		
        Scanner sc = new Scanner(System.in);
        
        int[] point = new int[2];
        
        int N = sc.nextInt();
        int D = sc.nextInt();
        int ans = 0;
        
        
        for(int i = 0; i < N; i++)
        {
                point[0] = sc.nextInt();
                point[1] = sc.nextInt();
            
                if(Math.sqrt(point[0]* point[0] + point[1] * point[1]) < D)
                {
                        ans ++;
                }
        
        }
        System.out.println(ans);
        
	}
}

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

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  ll D,X,Y,count=0;
  int N;
  cin>>N>>D;
  D=D*D;
  for(int i=0,i<N;i++){
    cin>>X>>Y;
    if(D<=X*X+Y*Y) count++;
  }
  cout<<count<<endl;
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:16: error: expected ';' before '<' token
   52 |   for(int i=0,i<N;i++){
      |                ^
      |                ;
a.cc:52:16: error: expected primary-expression before '<' token
Language: C++

#include<stdio.h>
#include<iostream>
#include<vector>
#include<math.h>
#include<queue>
#include<map>
#include<algorithm>
#include<string.h>
#include<functional>
#include<limits.h>
#include<stdlib.h>
#include<string>
#include<unordered_map>
using namespace std;
 
#define intmax INT_MAX
#define lmax LONG_MAX
#define uintmax UINT_MAX
#define ulmax ULONG_MAX
#define llmax LLONG_MAX
#define ll long long
#define rep(i,a,N) for((i)=(a);(i)<(N);(i)++)
#define rrp(i,N,a) for((i)=(N)-1;(i)>=(a);(i)--)
#define llfor ll i,j,k
#define sc(a) cin>>a
#define pr(a) cout<<a<<endl
#define pY puts("YES")
#define pN puts("NO")
#define py puts("Yes")
#define pn puts("No")
#define pnn printf("\n")
#define sort(a) sort(a.begin(),a.end())
#define push(a,b) (a).push_back(b)
#define llvec vector<vector<ll>>
#define charvec vector<vector<char>>
#define sizeoof(a,b) (a,vector<ll>(b))
#define llpvec vector<pair<ll,ll>>
/*繰り上げ除算*/ll cei(ll x,ll y){ll ans=x/y;if(x%y!=0)ans++;return ans;}
/*最大公約数*/ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}
/*最小公倍数*/ll lcm(ll x,ll y){return x/gcd(x,y)*y;}
/*n乗*/ll llpow(ll x,ll n){ll i,ans=1;rep(i,0,n)ans*=x;return ans;}
/*階乗*/ll fact(ll x){ll i,ans=1;rep(i,0,x)ans*=(x-i);return ans;}
/*nCr*/ll ncr(ll n,ll r){return fact(n)/fact(r)/fact(n-r);}
/*nPr*/ll npr(ll n,ll r){return fact(n)/fact(n-r);}
/*primejudge*/bool prime(ll a){if(a<=1)return false;ll i;for(i=2;i*i<=a;i++){if(a%i==0)return false;}return true;}
ll ans=0;llfor;///////////////////////////////////////////////////////////
int main(){
  ll D,N,X,Y,count=0;
  cin>>N>>D;
  D=D*D;
  for(int i=0,i<N;i++){
    cin>>X>>Y;
    if(D<=X*X+Y*Y) count++;
  }
  cout<<count<<endl;
return 0;}


Compiler output:
a.cc: In function 'int main()':
a.cc:51:16: error: expected ';' before '<' token
   51 |   for(int i=0,i<N;i++){
      |                ^
      |                ;
a.cc:51:16: error: expected primary-expression before '<' token
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int x,y,i,p,q,count=0,cal;
  scanf("%d %d",&x,&y);
  for(i=0;i<x;i++)
  {
    scanf("%d %d",&p,&q);
    cal=sqrt(double(p*p+q*q));
    if(cal==y)
      count++;
  }
  printf("%d",count);
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected expression before 'double'
   10 |     cal=sqrt(double(p*p+q*q));
      |              ^~~~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int x,y,i,p,q,count=0;
  scanf("%d %d",&x,&y);
  for(i=0;i<x;i++)
  {
    scanf("%d %d",&p,&q);
    cal=sqrt(double(p*p+q*q));
    if(cal==y)
      count++;
  }
  printf("%d",count);
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'cal' undeclared (first use in this function)
   10 |     cal=sqrt(double(p*p+q*q));
      |     ^~~
main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:14: error: expected expression before 'double'
   10 |     cal=sqrt(double(p*p+q*q));
      |              ^~~~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int x,y,i,p,q,count=0;
  scanf("%d %d",&x,&y);
  for(i=0;i<x;i++)
  {
    scanf("%d %d",&p,&q);
    cal=sqrt((double)(p*p+q*q));
    if(cal==y)
      count++;
  }
  printf("%d",count);
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:10:5: error: 'cal' undeclared (first use in this function)
   10 |     cal=sqrt((double)(p*p+q*q));
      |     ^~~
main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int x,y,i,p,q,count=0,cal;
  double s;
  scanf("%d %d",&x,&y);
  for(i=0;i<x;i++)
  {
    scanf("%d %d",&p,&q);
    cal=p*p+q*q;
    s=sqrt(double(cal));
    cal=s;
    if(cal==y)
      count++;
  }
  printf("%d",count);
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:12:12: error: expected expression before 'double'
   12 |     s=sqrt(double(cal));
      |            ^~~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  int n,d;
  
  cin>>n>>d;
  int count = 0;
  while(n--){
    int x,y;
    cin>>x>>y;
    
    if(sqrt((x*x)+(y*y)<=d) count++;
  }
       
       cout<<count;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: expected ';' before 'count'
   14 |     if(sqrt((x*x)+(y*y)<=d) count++;
      |                            ^~~~~~
      |                            ;
a.cc:15:3: error: expected primary-expression before '}' token
   15 |   }
      |   ^
a.cc:14:37: error: expected ')' before '}' token
   14 |     if(sqrt((x*x)+(y*y)<=d) count++;
      |       ~                             ^
      |                                     )
   15 |   }
      |   ~                                  
a.cc:15:3: error: expected primary-expression before '}' token
   15 |   }
      |   ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,d;
  cin>>n>>d;
  int x[n],y[n];
  for(int i=0;i<n;i++)
  {
    cin>>x[i]>>y[i];
  }
  int c=0;
  for(int i=0;i<n;i++)
  {
    if(sqrt((x[i]*x[i])+(y[i]*y[i]))<=d){
      c++;}
    cout<<c;}
  retutn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'sqrt' was not declared in this scope
   14 |     if(sqrt((x[i]*x[i])+(y[i]*y[i]))<=d){
      |        ^~~~
a.cc:17:3: error: 'retutn' was not declared in this scope
   17 |   retutn 0;
      |   ^~~~~~
Language: C++

#include<stdio.h>
using namespace std;
int main(){
  int n,d;
  cin>>n>>d;
  int x[n],y[n];
  for(int i=0;i<n;i++)
  {
    cin>>x[i]>>y[i];
  }
  int c=0;
  for(int i=0;i<n;i++)
  {
    if(sqrt(x[i]*x[i])+(y[i]*y[i])<=d){
      c++;}
    cout<<c;}
  return 0;
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>n>>d;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:14:8: error: 'sqrt' was not declared in this scope
   14 |     if(sqrt(x[i]*x[i])+(y[i]*y[i])<=d){
      |        ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<c;}
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<stdio.h>
using namespace std;
int main(){
  int n,d;
  cin>>n>>d;
  int x[n],y[n];
  for(int i=0;i<n;i++)
  {
    cin>>x[i]>>y[i];
  }
  int c=0;
  for(int i=0;i<n;i++)
  {
    if(sqrt((x[i]*x[i])+(y[i]*y[i]))<=d){
      c++;}
    cout<<c;}}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>n>>d;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:14:8: error: 'sqrt' was not declared in this scope
   14 |     if(sqrt((x[i]*x[i])+(y[i]*y[i]))<=d){
      |        ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<c;}}
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
  long long int n,d;
  cin>>n>>d;
  long int count++;
  for(int i=0;i<n;i++)
  {
    long long int x,y;
    cin>>x>>y;
   long long int z=sqrt(x*x+y*y);
    if(z>=d)
      count++;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: expected initializer before '++' token
    8 |   long int count++;
      |                 ^~
a.cc:15:7: error: 'count' was not declared in this scope
   15 |       count++;
      |       ^~~~~
a.cc:17:9: error: 'count' was not declared in this scope
   17 |   cout<<count;
      |         ^~~~~
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main()
{
  int n,d;
  cin>>n>>d;
  int count++;
  for(int i=0;i<n;i++)
  {
    int x,y;
    cin>>x>>y;
    int z=sqrt(x*x+y*y);
    if(z>=d)
      count++;
  }
  cout<<count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before '++' token
    8 |   int count++;
      |            ^~
a.cc:15:7: error: 'count' was not declared in this scope
   15 |       count++;
      |       ^~~~~
a.cc:17:9: error: 'count' was not declared in this scope
   17 |   cout<<count;
      |         ^~~~~
Language: C++

#include<iostrem>
#include<math.h>
using namespace std;
int main()
{
  int n,d;
  cin>>n>>d;
  int count++;
  for(int i=0;i<n;i++)
  {
    int x,y;
    cin>>x>>y;
    int z=sqrt(x*x+y*y);
    if(z>=d)
      count++;
  }
  cout<<count;
}

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

#include <stdio.h>

int main(){
  long int n,d;
  scanf("%ld%ld",&n,&d);
  int ans = 0,i=0;
  for(i;i<n;++i){
    long int x,y;
    scanf("%ld%ld",&x,&y);
    if(x*x+y*y<=d*d)ans++;
  }
  print("%d\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   12 |   print("%d\n",ans);
      |   ^~~~~
      |   printf
Language: C++

#include<stdio.h>

int main() {
	int n, d, x, y;
	int num=0;
	scanf_s("%d",&n);
    scanf_s("%d",&d);
	for (int i = 0;i < n;i++) {
		scanf_s("%d", &x);
        scanf_s("%d",&y);
		if (d * d >= x * x + y * y)
		{
			num++;
		}
	}
	printf("%d", num);
	return 0;
}

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

#include<stdio.h>

int main() {
	int n, d, x, y;
	int num=0;
	scanf_s("%d %d", &n, &d);
	for (int i = 0;i < n;i++) {
		scanf_s("%d %d", &x, &y);
		if (d * d >= x * x + y * y)
		{
			num++;
		}
	}
	printf("%d", num);
	return 0;
}

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

#include <stdio.h>

int main(void){
  int N, i, count=0;
  long int D, x, y;
  scanf("%d%ld",&N, &D);
  
  D = D*D;
  
  for(i = 0; i < N; i++){
    scanf("%ld%ld",&x, &y);
    if(x*x + y*y <= D) count += 1;
  }
  printf("%d\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: 'ans' undeclared (first use in this function)
   14 |   printf("%d\n",ans);
      |                 ^~~
main.c:14:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main() {
	int n, d, x, y;
	int num=0;
	scanf_s("%d %d", &n, &d);
	for (int i = 0;i < n;i++) {
		scanf_s("%d %d", &x, &y);
		if (d * d >= x * x + y * y)
		{
			num++;
		}
	}
	printf("%d", num);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |         scanf_s("%d %d", &n, &d);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>

int main(void){
  int N, i, count=0;
  long int D, x, y;
  scanf("%d%ld",&N, &D);
  
  D = D*D;
  
  for(i = 0; i < N; i++){
    scanf("%ld%ld",&x, &y);
    if(x*x + y*y <= D) ans += 1;
  }
  printf("%d\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:24: error: 'ans' undeclared (first use in this function)
   12 |     if(x*x + y*y <= D) ans += 1;
      |                        ^~~
main.c:12:24: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{  int n,d;
 cin>>n>>d;
 int cnt=0;
 for(int i=0;i<n;i++)
 { float x,y;
  cin>>x>>y;
  x=abs(x);
  y=abs(y);
 float t=sqrt(x*x+y*y)
  if(t<=d)
      cnt++;
 }
 cout<<cnt;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: expected ',' or ';' before 'if'
   13 |   if(t<=d)
      |   ^~
Language: C

#include<stdio.h>
#include<math.h>
int main(){
double N,D,i,a=0;
double ans;
double X[200001],Y[200001];
scanf("%d %d",&N,&D);
for(i = 0; i <= N; i++){
scanf("%lf %lf",&X[i],&Y[i]);
}
for(i = 0; i<= N; i++){
ans = sqrt(pow(X[i],2.0)+pow(Y[i],2.0));
if(D >ans){
  a++;
}
}
  printf("%d",a);
}

Compiler output:
main.c: In function 'main':
main.c:9:19: error: array subscript is not an integer
    9 | scanf("%lf %lf",&X[i],&Y[i]);
      |                   ^
main.c:9:25: error: array subscript is not an integer
    9 | scanf("%lf %lf",&X[i],&Y[i]);
      |                         ^
main.c:12:17: error: array subscript is not an integer
   12 | ans = sqrt(pow(X[i],2.0)+pow(Y[i],2.0));
      |                 ^
main.c:12:31: error: array subscript is not an integer
   12 | ans = sqrt(pow(X[i],2.0)+pow(Y[i],2.0));
      |                               ^
Language: C

#include<stdio.h>
#include<math.h>
int main(){
double N,D,i,a=0;
double ans;
double X[200001],Y[200001];
scanf("%d %d",&N,&D);
for(i = 0; i <= N; i++){
scanf("%d %d",&X[i],&Y[i]);
}
for(i = 0; i<= N; i++){
ans = sqrt(pow(X[i],2.0)+pow(Y[i],2.0));
if(D >ans){
  a++;
}
}
  printf("%d",a);
}

Compiler output:
main.c: In function 'main':
main.c:9:17: error: array subscript is not an integer
    9 | scanf("%d %d",&X[i],&Y[i]);
      |                 ^
main.c:9:23: error: array subscript is not an integer
    9 | scanf("%d %d",&X[i],&Y[i]);
      |                       ^
main.c:12:17: error: array subscript is not an integer
   12 | ans = sqrt(pow(X[i],2.0)+pow(Y[i],2.0));
      |                 ^
main.c:12:31: error: array subscript is not an integer
   12 | ans = sqrt(pow(X[i],2.0)+pow(Y[i],2.0));
      |                               ^
Language: C

#include<stdio.h>
#include<math.h>
int main(){
int N,D,i,a=0;
double ans;
int X[200001],Y[200001];
scanf("%d %d",&N,&D);
for(i = 0; i <= N; i++){
scanf("%d %d",X[i],Y[i]);
}
for(i = 0; i<= N; i++){
ans = sqrt(X[i]) + sqrt(Y[i]);
if(D >ans){
  a++
}
}
  printf("%d",a);
}

Compiler output:
main.c: In function 'main':
main.c:14:6: error: expected ';' before '}' token
   14 |   a++
      |      ^
      |      ;
   15 | }
      | ~
Language: C++

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

int main(){
    int N, D, x, y;
    int count = 0;
    cin >> N;
    cin >> D;
    for (i = 0; i < N; i++){
        cin >> x;
        cin >> y;
        if ((pow(x,2)+pow(y,2))<=pow(D,2)){
            count += 1;
        }
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'i' was not declared in this scope
    9 |     for (i = 0; i < N; i++){
      |          ^
Language: C++

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


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N; int D; cin>>N>>D;
  int G=D*D;
  int Ans=0;
  vector<vector<int>> A(N,vector<int>(2));
  fo(int i=0; i<N; i++){
    for(int i=0; i<N; i++){
      for(int j=0; j<2; j++){
        cin>>A.at(i).at(j);
      }
      if(A.at(i).at(0)*A.at(i).at(0)+A.at(i).at(1)*A.at(i).at(1)<=G)
        Ans++;
      else continue;
    }
 
    cout<<Ans<<endl;
  }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected primary-expression before 'int'
    8 |   fo(int i=0; i<N; i++){
      |      ^~~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   fo(int i=0; i<N; i++){
      |               ^
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^