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

const long long N = 1e5 + 5;
long long x[N], y[N];
#include<iostream>
using namespace std;
int main() {
	long long n, d, cnt = 0;
	cin >> n >> d;
	for (int i = 0; i < n; i++) {
		cin >> x[i] >> y[i];
		if (sqrt(x[i] * x[i] + y[i] * y[i]) <= d)
			cnt++;
	}cout << cnt;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'sqrt' was not declared in this scope
   10 |                 if (sqrt(x[i] * x[i] + y[i] * y[i]) <= d)
      |                     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before 'X'
    8 |     cin X>>Y;
      |        ^~
      |        ;
Language: C++

#include <iostream>
using namespace std;

int main() {
	int N,D,count=0;
    int x[N],y[n];
    for(int i=0;i<N;i++)
     cin>>x[i]>>y[i];
    for(int j=0;j<N;j++){
      if(((x[j]*x[j])+(y[j]*y[j]))<=D)
        count++;
    }
  cout<<count<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'n' was not declared in this scope
    6 |     int x[N],y[n];
      |                ^
a.cc:8:17: error: 'y' was not declared in this scope
    8 |      cin>>x[i]>>y[i];
      |                 ^
a.cc:10:24: error: 'y' was not declared in this scope
   10 |       if(((x[j]*x[j])+(y[j]*y[j]))<=D)
      |                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
<math.h> 
int main() {
      int N,dis,a,b,count;
      r=sprt(a,b);
      for(int i=0;i<N;i++){
        if(r>=dis){
          count++;
        }
      } 
      cout<<count<<endl;
}

Compiler output:
a.cc:3:1: error: expected unqualified-id before '<' token
    3 | <math.h>
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N,D,X,Y,a;
  cin >> N >> D;
  for(int i = 0;i < N;i++) {
    cin >> X >> Y;
    if((X * X + Y * Y) == 25) {
      a++;
    }
  }
  printf(a);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |   printf(a);
      |          ^
      |          |
      |          int
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/stdio.h:363:43: note:   initializing argument 1 of 'int printf(const char*, ...)'
  363 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
Language: Java

import java.util.*;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int Num = sc.nextInt();
    int Dis = sc.nextInt();
    int[] Xa = new int[Num];
    int[] Ya = new int[Num];
    for(int i=0;i<Num;i++){
      Xa[i] = sc.nextInt();
      Ya[i] = sc.nextInt();
    }
    int R = 0;
    for(int k=0;k<Num;k++){
      if(Math.pow(Xa[k],2)+Math.pow(Y[k],2)<=Math.pow(Dis,2))R++;
    }
    System.out.println(R);
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
      if(Math.pow(Xa[k],2)+Math.pow(Y[k],2)<=Math.pow(Dis,2))R++;
                                    ^
  symbol:   variable Y
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		// スペース区切りの整数の入力
		int D = sc.nextInt();
        int X[];
		a = new int[N+1];
        int Y[];
		a = new int[N+1];
        for (int i = 0; i < N; i++){
			 X[i] = sc.nextInt();
			 Y[i] = sc.nextInt();
        }
        int L;
        int Nstep ;
        Nstep=0;
        for (int i = 0; i < n; i++){
        L=((X[j])^2+(Y[j])^2)^(1/2);
        if (L<D+1){
        	Nstep=Nstep+1;
        }
        }
		// 出力
		System.out.println(Nstep);
	}
}


Compiler output:
Main.java:10: error: cannot find symbol
		a = new int[N+1];
		^
  symbol:   variable a
  location: class Main
Main.java:12: error: cannot find symbol
		a = new int[N+1];
		^
  symbol:   variable a
  location: class Main
Main.java:20: error: cannot find symbol
        for (int i = 0; i < n; i++){
                            ^
  symbol:   variable n
  location: class Main
Main.java:21: error: cannot find symbol
        L=((X[j])^2+(Y[j])^2)^(1/2);
              ^
  symbol:   variable j
  location: class Main
Main.java:21: error: cannot find symbol
        L=((X[j])^2+(Y[j])^2)^(1/2);
                       ^
  symbol:   variable j
  location: class Main
5 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N,D,X,Y,a;
  cin >> N >> D;
  for(int i = 0;i < N;i++) {
    cin >> X >> Y;
    if((X * X + Y * Y) == 25) {
      a++;
    }
  }
  print(a);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'print' was not declared in this scope; did you mean 'rint'?
   12 |   print(a);
      |   ^~~~~
      |   rint
Language: C++

#include<iostream>
using namespace std;

int main()
{
  long long t,d,x,y;
  cin>>t>>d;
  for(long long i=0; i<t; i++)
  {
    long long c=0;
    cin>>x>>y;
    dis=x*x+y*y;
 	 if(dis<=d)
    	c++;
  }
  cout<<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'dis' was not declared in this scope; did you mean 'div'?
   12 |     dis=x*x+y*y;
      |     ^~~
      |     div
a.cc:16:9: error: 'c' was not declared in this scope
   16 |   cout<<c<<endl;
      |         ^
Language: Java

import java.util.*;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int Num = sc.nextInt();
    int Dis = sc.nextInt();
    int[] Xa = new int[Num];
    int[] Ya = new int[Num];
    for(int i=0;i<Num;i++){
      Xa[i] = sc.nextInt();
      Ya[i] = sc.nextInt();
    }
    int R = 0;
    for(int k=0;k<Num;k++){
      if(Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2))R++;
    }
    System.out.println(R);
  }
}

Compiler output:
Main.java:16: error: cannot find symbol
      if(Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2))R++;
                     ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
      if(Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2))R++;
                                    ^
  symbol:   variable Y
  location: class Main
Main.java:16: error: cannot find symbol
      if(Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2))R++;
                                      ^
  symbol:   variable i
  location: class Main
3 errors
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int n,d,x,y,i,c=0;
  cin>>n>>d;
  for(i=0;i<n;i++)
  {
      cin>>x>>y;
      if((x*x)+(y*y)>=(*d*d))
        c++;

  }cout<<c;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: invalid type argument of unary '*' (have 'int')
   12 |       if((x*x)+(y*y)>=(*d*d))
      |                        ^~
Language: C

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

int main()
{
    int N, D, i,j;
    int X[200001], Y[200001];
    floot A[2000001];

    scanf("%d %d\n", &N, &D);
    for ( i = 0; i < N; i++)
    {
        scanf("%d %d\n", &X[N], &Y[N]);
        A[N] = D - sqte(X[N] * X[N] + Y[N] * Y[N]);
        if (A[N] > 0)
            j++;
    }
    printf("%d", j);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: unknown type name 'floot'; did you mean 'float'?
    8 |     floot A[2000001];
      |     ^~~~~
      |     float
main.c:14:20: error: implicit declaration of function 'sqte' [-Wimplicit-function-declaration]
   14 |         A[N] = D - sqte(X[N] * X[N] + Y[N] * Y[N]);
      |                    ^~~~
Language: C++

using namespace std;
 
int main(){
  int n,d;
  int cnt=0;
  cin >> n >> d;
  vector<int> a(n);
  vector<int> b(n);
  vector<long long> c(n);
  for (int i=0; i<n; i++){
    cin >> a[i] >> b[i];
    c[i] = sqrt(a[i]*a[i] + b[i]*b[i]);
    if (c[i] <= d){
      cnt++;
    }
  }
  cout << cnt;   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n >> d;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> a(n);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> a(n);
      |          ^~~
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int> b(n);
      |          ^~~
a.cc:9:10: error: expected primary-expression before 'long'
    9 |   vector<long long> c(n);
      |          ^~~~
a.cc:11:12: error: 'a' was not declared in this scope
   11 |     cin >> a[i] >> b[i];
      |            ^
a.cc:11:20: error: 'b' was not declared in this scope
   11 |     cin >> a[i] >> b[i];
      |                    ^
a.cc:12:5: error: 'c' was not declared in this scope
   12 |     c[i] = sqrt(a[i]*a[i] + b[i]*b[i]);
      |     ^
a.cc:12:12: error: 'sqrt' was not declared in this scope
   12 |     c[i] = sqrt(a[i]*a[i] + b[i]*b[i]);
      |            ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << cnt;
      |   ^~~~
a.cc:17:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main()
{
    int n,d;
    cin>>n>>d;
    long long int  x[n],y[n];
    long double  dist[n];
    int count =0;
    for (int i=0;i<n;i++)
    {
        cin>>x[i]>>y[i];
        dist[i]=sqrt((x[i]*x[i])+(y[i]*y[i]));
        #cout<<dist[i]<<"\n";
        if (dist[i]<=d)
            count++;
    }
    cout<<count<<"\n";
    return 0;
}



Compiler output:
a.cc:16:10: error: invalid preprocessing directive #cout
   16 |         #cout<<dist[i]<<"\n";
      |          ^~~~
Language: C++

#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main(){
 int n,d,k;
 int h;
 int i,j;
 cin >> n >> d;
 int x[n];
 int y[n];
 double k;
 double l;
 int count;
  
 for(h=0;h<n;h++){
  cin >> x[h] >> y[h];
 }
  
 while(i=0;i<n;i++){
   while(j=0;j<n;j++){
     k=x[i]*x[i]+y[j]*y[j];
     l = sqrt(k);
     if(l<=d){count++;}
   }
 }
 cout << l <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: conflicting declaration 'double k'
   11 |  double k;
      |         ^
a.cc:5:10: note: previous declaration as 'int k'
    5 |  int n,d,k;
      |          ^
a.cc:19:11: error: expected ')' before ';' token
   19 |  while(i=0;i<n;i++){
      |       ~   ^
      |           )
a.cc:19:19: error: expected ';' before ')' token
   19 |  while(i=0;i<n;i++){
      |                   ^
      |                   ;
Language: Java

import java.util.*;
 
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int Num = sc.nextInt();
    int Dis = sc.nextInt();
    int[] Xa = new int[Num];
    int[] Ya = new int[Num};
    for(int i=0;i<Num;i++){
      Xa[i] = sc.nextInt();
      Ya[i] = sc.nextInt();
    }
    int R = 0;
    for(int k=0;k<Num;k++){
      if(Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2))R++;
    }
    System.out.println(""+R);
  }
}

Compiler output:
Main.java:9: error: ']' expected
    int[] Ya = new int[Num};
                          ^
Main.java:10: error: illegal start of type
    for(int i=0;i<Num;i++){
    ^
Main.java:10: error: > or ',' expected
    for(int i=0;i<Num;i++){
                     ^
Main.java:10: error: <identifier> expected
    for(int i=0;i<Num;i++){
                       ^
Main.java:15: error: illegal start of type
    for(int k=0;k<Num;k++){
    ^
Main.java:15: error: > or ',' expected
    for(int k=0;k<Num;k++){
                     ^
Main.java:15: error: <identifier> expected
    for(int k=0;k<Num;k++){
                       ^
Main.java:18: error: <identifier> expected
    System.out.println(""+R);
                      ^
Main.java:18: error: illegal start of type
    System.out.println(""+R);
                       ^
Main.java:20: error: class, interface, enum, or record expected
}
^
10 errors
Language: C++

const ll N = 1e5 + 5;
ll x[N], y[N];
#include<iostream>
using namespace std;
int main() {
	ll n, d, cnt = 0;
	cin >> n >> d;
	for (int i = 0; i < n; i++) {
		cin >> x[i] >> y[i];
		if (sqrt(x[i] * x[i] + y[i] * y[i]) <= d)
			cnt++;
	}cout << cnt;
	return 0;
}

Compiler output:
a.cc:1:7: error: 'll' does not name a type
    1 | const ll N = 1e5 + 5;
      |       ^~
a.cc:2:1: error: 'll' does not name a type
    2 | ll x[N], y[N];
      | ^~
a.cc: In function 'int main()':
a.cc:6:9: error: 'll' was not declared in this scope
    6 |         ll n, d, cnt = 0;
      |         ^~
a.cc:7:16: error: 'n' was not declared in this scope
    7 |         cin >> n >> d;
      |                ^
a.cc:7:21: error: 'd' was not declared in this scope
    7 |         cin >> n >> d;
      |                     ^
a.cc:9:24: error: 'x' was not declared in this scope
    9 |                 cin >> x[i] >> y[i];
      |                        ^
a.cc:9:32: error: 'y' was not declared in this scope
    9 |                 cin >> x[i] >> y[i];
      |                                ^
a.cc:10:21: error: 'sqrt' was not declared in this scope
   10 |                 if (sqrt(x[i] * x[i] + y[i] * y[i]) <= d)
      |                     ^~~~
a.cc:11:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 |                         cnt++;
      |                         ^~~
      |                         int
a.cc:12:18: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |         }cout << cnt;
      |                  ^~~
      |                  int
Language: C++

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

int main() {
int x;
int y;
int n;
int d;
int a;
cin>>n>>d;
for(int i=0;i<n;i++)
{

cin >>x>>y;
int far=x*x+y*y;
if(sqrt far <=d)
{
a++;
}
}
cout<<a;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: expected ')' before 'far'
   16 | if(sqrt far <=d)
      |   ~    ^~~~
      |        )
a.cc:16:16: error: cannot resolve overloaded function 'sqrt' based on conversion to type 'bool'
   16 | if(sqrt far <=d)
      |                ^
Language: C++

#include<iostream>
using namespace std;

int main() {
  int T,m;
  cin>>T>>m;
  int count = 0;
  int res = 0;
  
  while(T--){
    int x,y;
    cin >>x>>y;
    int res = ((x*x) + (y*y));
    if((res <= m && res > m-1){
      count += 1;
    }
  
  }
       return res;

     }
      

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: expected ')' before '{' token
   14 |     if((res <= m && res > m-1){
      |       ~                       ^
      |                               )
a.cc:18:3: error: expected primary-expression before '}' token
   18 |   }
      |   ^
Language: C++

#include<bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
using namespace std;
typedef long long ll;
typedef long double ld;
const double E = 1e-7;
const ll INF = 1e17;
#define forn(i, s, f) for (int i = s; i < f; ++i)
#define ft first                                                 
#define sec second
#define fora(i, n) for (auto i : n)
#define sz(a) (int)(a).size()
#define sort_(a) sort(a.begin(), a.end())
#define pb push_back
#define mp make_pair
#define rsort_(a) sort(a.begin(), a.end()); reverse(a.begin(), a.end())
#define fast_ cin.tie(0), ios_base::sync_with_stdio(false)
// ____________________________________________________________
#define cina(a) forn(i,0,sz(a)) cin >> a[i]
#define cinpr(a) cin >> a.ft >> a.sec 
//--------------------------------------------------------------
 
int main() {
    ll n, d, ans = 0;
    cin >> n >> d;
    forn(i,0,n) {
        ll t x, y;
        cin >> x >> y;
        if (x * x + y * y <= d * d) ans++;
    }
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:14: error: expected initializer before 'x'
   28 |         ll t x, y;
      |              ^
a.cc:29:16: error: 'x' was not declared in this scope
   29 |         cin >> x >> y;
      |                ^
a.cc:29:21: error: 'y' was not declared in this scope
   29 |         cin >> x >> y;
      |                     ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		// スペース区切りの整数の入力
		int D = sc.nextInt();
        int X[];
		a = new int[N+1];
        int Y[];
		a = new int[N+1];
        for (int i = 0; i < N; i++){
			 X(i) = sc.nextInt();
			 Y(i) = sc.nextInt();
        }
        int L;
        int Nstep ;
        Nstep=0;
        for (int i = 0; i < n; i++){
        L=((X(j))^2+(Y(j))^2)^(1/2);
        if (L<D+1){
        	Nstep=Nstep+1;
        }
        }
		// 出力
		System.out.println(Nstep);
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
		a = new int[N+1];
		^
  symbol:   variable a
  location: class Main
Main.java:12: error: cannot find symbol
		a = new int[N+1];
		^
  symbol:   variable a
  location: class Main
Main.java:14: error: cannot find symbol
			 X(i) = sc.nextInt();
			 ^
  symbol:   method X(int)
  location: class Main
Main.java:15: error: cannot find symbol
			 Y(i) = sc.nextInt();
			 ^
  symbol:   method Y(int)
  location: class Main
Main.java:20: error: cannot find symbol
        for (int i = 0; i < n; i++){
                            ^
  symbol:   variable n
  location: class Main
Main.java:21: error: cannot find symbol
        L=((X(j))^2+(Y(j))^2)^(1/2);
              ^
  symbol:   variable j
  location: class Main
Main.java:21: error: cannot find symbol
        L=((X(j))^2+(Y(j))^2)^(1/2);
                       ^
  symbol:   variable j
  location: class Main
7 errors
Language: C++

int main() {
	int N, D, X, Y, T;

	cin >> N >> D;

	cin >> X >> Y;

	T = (X * X) + (Y * Y) / Y;
	cout << T << endl;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> N >> D;
      |         ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << T << endl;
      |         ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |         cout << T << endl;
      |                      ^~~~
Language: C++

using namespace std;
 
int main(){
  int n,d;
  int cnt=0;
  cin >> n >> d;
  vector<int> a(n);
  vector<int> b(n);
  vector<long long> c(n);
  for (int i=0; i<n; i++){
    cin >> a[i] >> b[i];
    c[i] = pow(a[i]*a[i] + b[i]*b[i],0.5);
    if (c[i] <= d){
      cnt++;
    }
  }
  cout << cnt;   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n >> d;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> a(n);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> a(n);
      |          ^~~
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int> b(n);
      |          ^~~
a.cc:9:10: error: expected primary-expression before 'long'
    9 |   vector<long long> c(n);
      |          ^~~~
a.cc:11:12: error: 'a' was not declared in this scope
   11 |     cin >> a[i] >> b[i];
      |            ^
a.cc:11:20: error: 'b' was not declared in this scope
   11 |     cin >> a[i] >> b[i];
      |                    ^
a.cc:12:5: error: 'c' was not declared in this scope
   12 |     c[i] = pow(a[i]*a[i] + b[i]*b[i],0.5);
      |     ^
a.cc:12:12: error: 'pow' was not declared in this scope
   12 |     c[i] = pow(a[i]*a[i] + b[i]*b[i],0.5);
      |            ^~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << cnt;
      |   ^~~~
a.cc:17:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

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

int main()
{
    int N, D, i,j;
    int X[200001], Y[200001],A[2000001];

    scanf("%d %d\n", &N, &D);
    for ( i = 0; i < N; i++)
    {
        scanf("%d %d\n", &X[N], &Y[N]);
        A[N] = D - sqte(X[N] * X[N] + Y[N] * Y[N]);
        if (A[N] > 0)
            j++;
    }
    printf("%d", j);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:20: error: implicit declaration of function 'sqte' [-Wimplicit-function-declaration]
   13 |         A[N] = D - sqte(X[N] * X[N] + Y[N] * Y[N]);
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int mian() {
  int N,D,X,Y,C;
  cin >> N >> D;
  for(int i = 0;i < N;i++) {
    cin >> X >> Y;
    if((X * X + Y * Y) == 25) {
      C++;
    }
  }
  cout << C << endl;
}


Compiler output:
a.cc: In function 'int mian()':
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int answer = 0;
  int N,D;
  int x,y;
  cin >> N >> D;
  for(int i = 0; i < N; i++){
    cin >> x >> y;
    if(x * x + y * y <= D * D){
      answer++;
    }
  }
  cout << answer << endl;

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

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

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

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

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

signed main() {
  int n,d; cin>>n>>d;
  int count=0;
  for(int i=0;i<n;i++){
    int x,y; cin>>x>>y;
    if(x*x+y*y<=d*d)
      count++;
  }
  cout<<count<<endl;
}



Compiler output:
a.cc:2:2: error: invalid preprocessing directive #defein; did you mean #define?
    2 | #defein int long long
      |  ^~~~~~
      |  define
Language: Java

import java.util.*;
 
class Main{
  public int Num,Dis;
  public int[] Xa,Ya;
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    Num = sc.nextInt();
    Dis = sc.nextInt();
    for(int i=0;i<Num;i++){
      Xa[i] = sc.nextInt();
      Ya[i] = sc.nextInt();
    }
    int R = 0;
    for(int k=0;k<Num;k++){
      if(check(k))R++;
    }
    System.out.println(""+R);
  }
  
  private static boolean check(int i){
    return Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2);
  }
}

Compiler output:
Main.java:8: error: non-static variable Num cannot be referenced from a static context
    Num = sc.nextInt();
    ^
Main.java:9: error: non-static variable Dis cannot be referenced from a static context
    Dis = sc.nextInt();
    ^
Main.java:10: error: non-static variable Num cannot be referenced from a static context
    for(int i=0;i<Num;i++){
                  ^
Main.java:11: error: non-static variable Xa cannot be referenced from a static context
      Xa[i] = sc.nextInt();
      ^
Main.java:12: error: non-static variable Ya cannot be referenced from a static context
      Ya[i] = sc.nextInt();
      ^
Main.java:15: error: non-static variable Num cannot be referenced from a static context
    for(int k=0;k<Num;k++){
                  ^
Main.java:22: error: non-static variable Xa cannot be referenced from a static context
    return Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2);
                    ^
Main.java:22: error: cannot find symbol
    return Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2);
                                      ^
  symbol:   variable Y
  location: class Main
Main.java:22: error: non-static variable Dis cannot be referenced from a static context
    return Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2);
                                                        ^
9 errors
Language: C++

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

int main () {
    int N, D;
    cin >> N >> D;
    vector <int> vec(N);
    for (int i=0; i<N; i++) {
        cin >> vec.at(i);
    }
    vector <int> date(N);
    for (int i=0; i<N; i++) {
        cin >> date.at(i);
    }

    int count=0;

    for (int i=0; i<N; i++) {
        if (sqrt(vec.at(i)*vec.at(i)+date.at(i)*date.at(i)))<=D) {
            count++;
        }
    }
    cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:61: error: expected primary-expression before '<=' token
   19 |         if (sqrt(vec.at(i)*vec.at(i)+date.at(i)*date.at(i)))<=D) {
      |                                                             ^~
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt(),d=sc.nextInt(),f=0;
    for(int i=0;i<n;i++){
      int x=sc.nextInt(),y=sc.nextInt()
        if(d>=(int)Math.sqrt(x*x+y*y)) f++;
    }
    System.out.println(f);
  }
}

Compiler output:
Main.java:7: error: ';' expected
      int x=sc.nextInt(),y=sc.nextInt()
                                       ^
1 error
Language: Java

import java.util.*;

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


Compiler output:
Main.java:7: error: cannot find symbol
    long D=Math(sc.nextInt(),2);
           ^
  symbol:   method Math(int,int)
  location: class Main
Main.java:11: error: incompatible types: possible lossy conversion from double to long
        d[i]= Math.pow(sc.nextInt(),2)+ Math.pow(sc.nextInt(),2);
                                      ^
2 errors
Language: Java

import java.util.*;

class Main{
  private int Num,Dis;
  private int[] Xa,Ya;
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    Num = sc.nextInt();
    Dis = sc.nextInt();
    for(int i=0;i<Num;i++){
      Xa[i] = sc.nextInt();
      Ya[i] = sc.nextInt();
    }
    int R = 0;
    for(int k=0;k<Num;k++){
      if(check(k))R++;
    }
    System.out.println(""+R);
  }
  
  private static boolean check(int i){
    return Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2);
  }
}

Compiler output:
Main.java:8: error: non-static variable Num cannot be referenced from a static context
    Num = sc.nextInt();
    ^
Main.java:9: error: non-static variable Dis cannot be referenced from a static context
    Dis = sc.nextInt();
    ^
Main.java:10: error: non-static variable Num cannot be referenced from a static context
    for(int i=0;i<Num;i++){
                  ^
Main.java:11: error: non-static variable Xa cannot be referenced from a static context
      Xa[i] = sc.nextInt();
      ^
Main.java:12: error: non-static variable Ya cannot be referenced from a static context
      Ya[i] = sc.nextInt();
      ^
Main.java:15: error: non-static variable Num cannot be referenced from a static context
    for(int k=0;k<Num;k++){
                  ^
Main.java:22: error: non-static variable Xa cannot be referenced from a static context
    return Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2);
                    ^
Main.java:22: error: cannot find symbol
    return Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2);
                                      ^
  symbol:   variable Y
  location: class Main
Main.java:22: error: non-static variable Dis cannot be referenced from a static context
    return Math.pow(Xa[i],2)+Math.pow(Y[i],2)<=Math.pow(Dis,2);
                                                        ^
9 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		// スペース区切りの整数の入力
		int D = sc.nextInt();
        for (int i = 0; i < N; i++){
			int X(i) = sc.nextInt();
			int Y(i) = sc.nextInt();
        }
        int L;
        int Nstep ;
        Nstep=0;
        for (int i = 0; i < n; i++){
        L=((X(j))^2+(Y(j))^2)^(1/2);
        if (L<D+1){
        	Nstep=Nstep+1;
        }
        }
		// 出力
		System.out.println(Nstep);
	}
}

Compiler output:
Main.java:10: error: ';' expected
			int X(i) = sc.nextInt();
			     ^
Main.java:10: error: not a statement
			int X(i) = sc.nextInt();
			      ^
Main.java:10: error: ';' expected
			int X(i) = sc.nextInt();
			       ^
Main.java:11: error: ';' expected
			int Y(i) = sc.nextInt();
			     ^
Main.java:11: error: not a statement
			int Y(i) = sc.nextInt();
			      ^
Main.java:11: error: ';' expected
			int Y(i) = sc.nextInt();
			       ^
6 errors
Language: C++

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


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

using namespace std;
     
    int main(){
      int N;
      float D;
      cin >> N >> D;
      float X, Y;
      int c = 0;
      for (int i=0; i<N; i++){
        cin >> X >> Y;
        if (X*X + Y*Y <= D*D){
          c++;
        }
      }
      cout << c << endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope
    6 |       cin >> N >> D;
      |       ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:15:7: error: 'cout' was not declared in this scope
   15 |       cout << c << endl;
      |       ^~~~
a.cc:15:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:20: error: 'endl' was not declared in this scope
   15 |       cout << c << endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(int,char**){
  int n,d,*x,*y,i,c=0;
  cin>>n>>d;
  x=new int[n];
  y=new int[n];
  for(i=0;i<n;i++){
    cin>>x[i]>>y[i];
  }
  long d2=static_cast<long>(d)*d,x2y2;
  for(i=0;i<n;i++){
    x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
    if(x2y2<=d2)c++;
  }
  cout<<c<<endl;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:13:22: error: 'x' does not name a type
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                      ^
a.cc:13:23: error: expected '>' before '[' token
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                       ^
a.cc:13:23: error: expected '(' before '[' token
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                       ^
      |                       (
a.cc: In lambda function:
a.cc:13:26: error: expected '{' before '>' token
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                          ^
a.cc: In function 'int main(int, char**)':
a.cc:13:27: error: invalid type argument of unary '*' (have 'int')
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                           ^~~~~
a.cc:13:45: error: 'y' does not name a type
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                                             ^
a.cc:13:46: error: expected '>' before '[' token
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                                              ^
a.cc:13:46: error: expected '(' before '[' token
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                                              ^
      |                                              (
a.cc: In lambda function:
a.cc:13:49: error: expected '{' before '>' token
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                                                 ^
a.cc: In function 'int main(int, char**)':
a.cc:13:50: error: invalid type argument of unary '*' (have 'int')
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                                                  ^~~~~
a.cc:13:55: error: expected ')' before ';' token
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                                                       ^
      |                                                       )
a.cc:13:55: error: expected ')' before ';' token
   13 |     x2y2=static_cast<x[i]>*x[i]+static_cast<y[i]>*y[i];
      |                                                       ^
      |                                                       )
Language: C++

#include <bits/stdc++.h>
using namespace std;
int mian() {
  int N,D,X,Y,C;
  cin >> N >> D;
  for(int i = 0;i < N;i++) {
    cin >> X >> Y;
    if((X * X + Y * Y) = 25) {
      C++;
    }
  }
  cout << C << endl;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:8:15: error: lvalue required as left operand of assignment
    8 |     if((X * X + Y * Y) = 25) {
      |        ~~~~~~~^~~~~~~~
a.cc:13:1: warning: no return statement in function returning non-void [-Wreturn-type]
   13 | }
      | ^
Language: C++

include<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  long long D;
  cin >> D;
  vector<vector<long long>> v (N, vector<long long>(2));
  for(int i = 0; i < N; i++){
    for(int j = 0; j < 2; j++){
      cin >> v[i][j];
    }
  }
  int count = 0;
  for(int i = 0; i < N; i++){
    if((v[i][0])*(v[i][0])+(v[i][1])*(v[i][1]) <= D*D){
      count++;
    }
  }
  cout << count << endl;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> N;
      |   ^~~
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<vector<long long>> v (N, vector<long long>(2));
      |   ^~~~~~
a.cc:8:17: error: expected primary-expression before 'long'
    8 |   vector<vector<long long>> v (N, vector<long long>(2));
      |                 ^~~~
a.cc:11:14: error: 'v' was not declared in this scope
   11 |       cin >> v[i][j];
      |              ^
a.cc:16:9: error: 'v' was not declared in this scope
   16 |     if((v[i][0])*(v[i][0])+(v[i][1])*(v[i][1]) <= D*D){
      |         ^
a.cc:20:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   20 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:20:20: error: 'endl' was not declared in this scope
   20 |   cout << count << endl;
      |                    ^~~~
Language: C++

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

int main(){
  int n,d;
  cin>>n>>d;
  //long long dp2=d*d;
  int cnt=0;
  for(int i=0;i<n;i++){
    long long x,y;
    cin>>x>>y;
    //long long xp2=x*x;
    //long long yp2=y*y;
    if(sqrt(xp2+yp2)<=d) cnt++;
  }
  cout<<cnt;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 'xp2' was not declared in this scope; did you mean 'exp2'?
   14 |     if(sqrt(xp2+yp2)<=d) cnt++;
      |             ^~~
      |             exp2
a.cc:14:17: error: 'yp2' was not declared in this scope
   14 |     if(sqrt(xp2+yp2)<=d) cnt++;
      |                 ^~~
Language: C++

#include <iostream>
#include <string>

using namespace std;
int main() {
	int n, d, res = 0;
	long x, y = 0;
	cin >> n >> d;

	for (int i = 0; i < n; i++)
	{
		cin >> x >> y;
		if (x <= d && y <= d) {
			if (sqrtl(x * x + y * y) <= d) {
				res++;
			}
		}
	}

	cout << res << endl;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: 'sqrtl' was not declared in this scope; did you mean 'strtol'?
   14 |                         if (sqrtl(x * x + y * y) <= d) {
      |                             ^~~~~
      |                             strtol
Language: C++

#include<iostream>
#include<cmath>
#include<numeric>
#include<functional>
#include<string>
#include<algorithm>
#include<vector>
#include<map>
#include<iomanip>
#include<queue>
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<n;i++)
#define ll long long
#define INF 2147483647
using namespace std;
using Graph=vector<vector<int>>;

int main(){
  ll n,d; cin>>n>>d;
  ll x[n],y[n];
  rep(i,n){
    cin>>x[i]>>y[i];
  }
  ll count=0;
  rep(i,n){
    if(x[i]]*x[i]+y[i]*y[i]<=d*d){
      count++;
    }
  }
  cout<<count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:12: error: expected ')' before ']' token
   26 |     if(x[i]]*x[i]+y[i]*y[i]<=d*d){
      |       ~    ^
      |            )
a.cc:26:12: error: expected primary-expression before ']' token
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define test(t) int t; cin>>t; while(t--)
#define p1(x) { cout << " [" << #x << ": " << x << "]\n"; }
#define p2(x) { cout << " [" << #x << ": "; for(auto it:x) cout << it << " "; cout << "]\n"; }
#define pb push_back
#define FOR(i, a, b) for (int i=a; i<(b); i++)
#define F0R(i, a) for (int i=0; i<(a); i++)
 
 
void solve()
{
	int n, d, x, y, ans=0;
	// vector<int> a;
	cin>>n>>d;
	F0R(i, n) {
		cin>>x>>y;
		double dist = (pow(pow(x,2)+pow(y,2),0.5));
		if(dist<=(double)(d))	ans++;
	}

Compiler output:
a.cc: In function 'void solve()':
a.cc:20:10: error: expected '}' at end of input
   20 |         }
      |          ^
a.cc:12:1: note: to match this '{'
   12 | {
      | ^
Language: C++

#include<iostream>
using namespace std;

int main() {
  int T,m;
  cin>>T>>m;
  int count = 0;
  
  while(T--){
    int x,y;
    cin >>x>>y;
    int res = ((x*x) + (y*y));
    if((res <= m && res > m-1){
      count += 1;}
       }
       return res;}
      
    


Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: expected ')' before '{' token
   13 |     if((res <= m && res > m-1){
      |       ~                       ^
      |                               )
a.cc:15:8: error: expected primary-expression before '}' token
   15 |        }
      |        ^
a.cc:16:15: error: 'res' was not declared in this scope
   16 |        return res;}
      |               ^~~
Language: C++

#include<iostream>
#include<math>
using namespace std;

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

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

import java.util.*;

class Main{
    public static void main(String args[]){
        int n,x,y,count=0;
        long double d;
        Scanner sc=new Scanner(System.in);

        n=sc.nextInt();
        d=sc.nextInt();
        for(int i=0;i<n;i++){
            x=sc.nextInt();
            y=sc.nextInt();
            long double d_i=Math.sqrt((x*x)+(y*y));
            if(d>=d_i)count++;
        }
        System.out.println(count);
    }

}

Compiler output:
Main.java:6: error: not a statement
        long double d;
        ^
Main.java:6: error: ';' expected
        long double d;
            ^
Main.java:14: error: not a statement
            long double d_i=Math.sqrt((x*x)+(y*y));
            ^
Main.java:14: error: ';' expected
            long double d_i=Math.sqrt((x*x)+(y*y));
                ^
4 errors
Language: C++

#include <iostream>
 
using namespace std;
 
int main() {
  int n, d, k;
  k = 2 * n;
  int x[k]; 
  
  cin >> n >> d;
  for (int i = 0; i < n; i++) {
    cin >> x[i] >> x[i+1];
  }
  
  int sum = 0;
  
  for (int j = 0; j < n; j++) {
    int sq = x[j] * x[j] + x[j+1] * x[j+1];
    sq = sqrt(sq);
    
    if (sq <= d) {
      sum = sum +1;
    }
  }
  
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: 'sqrt' was not declared in this scope; did you mean 'sq'?
   19 |     sq = sqrt(sq);
      |          ^~~~
      |          sq
Language: C++

#include <iostream>

using namespace std;

int main()
{
	int ans = 0;
	int a, b;
	cin >> a >> b;
	for (int i = 0; i < a; i++)
	{
		float x, y;
		cin >> x >> y;
		if (sqrt(pow(x,2)+pow(y,2))<=b)
		{
			ans++;
		}
	}
	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: 'pow' was not declared in this scope
   14 |                 if (sqrt(pow(x,2)+pow(y,2))<=b)
      |                          ^~~
a.cc:14:21: error: 'sqrt' was not declared in this scope
   14 |                 if (sqrt(pow(x,2)+pow(y,2))<=b)
      |                     ^~~~
Language: C++

import math
N, D = map(int, input().split())
count = 0
print(math.sqrt(54))
print(count)
      

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <bits/stdc++.h>
using namespace std;
import math
 
int main() {
      int N,dis,a,b,count;
      r=math.sqrt(int(a+b));
      for(int i=0;i<N;i++){
        if(r>=dis){
          count++;
        }
      } 
      cout<<count<<endl;
 }

Compiler output:
a.cc:3:1: error: 'import' does not name a type
    3 | import math
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<bits/stdc++.h>

#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl "\n"
#define ll long long
#define pii pair<int,int>
#define all(x) begin(x), end(x)
#define loop(i,n) for(int i=0; i<n; i++)
#define rep(i,a,b,c) for(int i=a; i<b; i+=c)
#define brep(i,a,b,c) for(int i=a; i>b; i-=c)
#define tc(t) int t; cin>>t; while(t--)
#define sz(v) int((v).size())
#define pb push_back

const int maxm = 1000000000 + 7;

double startTime;
double getCurrentTime() {
	return ((double)clock() - startTime) / CLOCKS_PER_SEC;
}


using namespace std;



int main()
{

#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

   ll n,d;
   cin>>n>>d;

   ll x,y;

   ll cnt=0;

   while(n--)
   {
   	 cin>>x>>y;

   	 long double dis = sqrt((y*y + x*x))

   	 if(dis <= d)
   	 {
   	 	cnt++;
   	 }
   }
  

  cout<<cnt<<endl;

}

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

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

int main(){
    int N,D;
    int count = 0;
    cin >> N >> D;
    vector<int> x (N);
    vector<int> y (N);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:18: error: expected unqualified-id before '(' token
   12 |         cin >> x.(i) >> y.(i);
      |                  ^
a.cc:12:27: error: expected unqualified-id before '(' token
   12 |         cin >> x.(i) >> y.(i);
      |                           ^
a.cc:13:15: error: expected unqualified-id before '(' token
   13 |         if((x.(i)^2 + y.(i)^2)^(1/2) <= D){
      |               ^
a.cc:13:25: error: expected unqualified-id before '(' token
   13 |         if((x.(i)^2 + y.(i)^2)^(1/2) <= D){
      |                         ^
Language: Java

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		double d = scan.nextInt();
		int count = 0;
		
		while(n-- >0){
			int x = scan.nextInt();
			int y = scan.nextInt();
			double dis = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(dis<=d){
				count++;
			}
		}
		System.out.println(count);
	}
}

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

#include<iostream>

using namespace std;

int main()
{
	int N, D;
  	cin >> N >> D;
  
  	int P[N], Q[N];
  	for(int i=0; i<N; i++)
      cin >> P[i] >> Q[i];
  
  int count=0;
  
	for(int i=0; i<N; i++)
    {
  		if(sqrt(P[i]*P[i] + Q[i]*Q[i]) == D)
          count++;
          
    }
  	return count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: 'sqrt' was not declared in this scope
   18 |                 if(sqrt(P[i]*P[i] + Q[i]*Q[i]) == D)
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>

int main() {
  int n;
  int d;
  int cnt = 0;
  std::cin >> n >> d;
  std::vector<int> x(n);
  std::vector<int> y(n);
  for (int i = 0; i < n; i++) std::cin >> x[i] >> y[i];
  
  for (int i = 0; i < n; i++)
    if (x[i]*x[i] + y[i]*y[i] < d**2) cnt++;
  
  std::cout << n;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:35: error: invalid type argument of unary '*' (have 'int')
   13 |     if (x[i]*x[i] + y[i]*y[i] < d**2) cnt++;
      |                                   ^~
Language: C++

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

#define ll long long
#define ull unsigned long long
#define ld long double
#define fo(i,start,end) for(int i=start;start<end?i<end:i>end;start<end?i+=1:i-=1)
#define pb push_back
#define mp make_pair
#define lb lower_bound
#define ub upper_bound
#define F first
#define S second
#define vll vector<ll>
#define pll pair<ll,ll>
#define vop vector<pll>
#define vov vector<vector<ll>>
using namespace std;
const ld pi=3.14159265358979323;

const long long mod1=1e9+7;
const long long mod2=1e18;
const ll mod3=9e18;
const ll N=1e9+7;

long long power(ll  x, ll n){if(n==0)return 1;ll temp=power(x,n/2);if(n%2==0)return temp*temp;else return x*temp*temp;}

ll gcd(ll a,ll b){if(a<b) return gcd(b,a);if(b==0) return a;return gcd(b,a%b);}
ll lcm(ll a,ll b){return (a*b)/(gcd(a,b));}
void swap(int* a, int* b){int t = *a;*a = *b;*b = t;}
bool f(ll x,ll y){return x>y;}
bool cmp(ll x ,ll y){
    return abs(x)<abs(y);
}
ll MAX(ll a,ll b){return a>b?a:b;}
ll MIN(ll x,ll  y){return x>y?y:x;}

ll pmod(ll a, ll b,ll mod)//a^b%mod
{
    ll ans=1;
    while(b)
    {
        if(b&1)
            ans=(ans*a)%mod;
        b/=2;
        a=(a*a)%mod;
    }
    return ans;
}
int main(){
    ll n,d,count=0,i,x,y;
    cin>>n>>d;
    vop v(n);
    for(i=0;i<n;i++){
        cin>>x>>y;
        v.pb(make_pair(x,y));
    }
    sort(v.begin(),v.end());
    v.erase(unique(v.begin(),v.end()),v.end());
    fo(i,0,v.size()){
        if(abs(sqrt(v[i].first*v[i].first+v[i].second*v[i].second)) <= d)count++;
    }
    cout<<count<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:64:16: error: 'sqrt' was not declared in this scope
   64 |         if(abs(sqrt(v[i].first*v[i].first+v[i].second*v[i].second)) <= d)count++;
      |                ^~~~