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

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: invalid type argument of unary '*' (have 'int')
   11 |     if (x**2+y**2 <= d){
      |           ^~
a.cc:11:16: error: invalid type argument of unary '*' (have 'int')
   11 |     if (x**2+y**2 <= d){
      |                ^~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
using namespace std;

double get_dist(vector<int> v);

int main(void){

   int N,D;
   vecotr< vector<int> > v;
   v.resize(2);
   vector< vector<int> > v_place;

   cin >> N >> D;
   for(int num=0; num<N; num++){
      cin >> v.at(0) >> v.at(1);
      v_place.push_back(v);
   }

   int ans = 0;

   for(int num=0; num<N; num++){
      if(get_dist(v_place.at(num)) <= (double)D){
         ans++;
      }
   }

   cout << ans;

   return 0;
}

double get_dist(vector<int> v){
   double dist = -100;
   dist = sqrt(pow(v.at(0),2) + pow(v.at(1),2));
   return dist;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'vecotr' was not declared in this scope
   11 |    vecotr< vector<int> > v;
      |    ^~~~~~
a.cc:11:24: error: expected primary-expression before '>' token
   11 |    vecotr< vector<int> > v;
      |                        ^
a.cc:11:26: error: 'v' was not declared in this scope
   11 |    vecotr< vector<int> > v;
      |                          ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:1: error: 'count' was not declared in this scope
   14 | count+=1;
      | ^~~~~
a.cc:17:7: error: 'count' was not declared in this scope
   17 | cout<<count;
      |       ^~~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

#define gc getchar_unlocked
#define ll long long
#define si(x)	scanf("%d",&x)
#define sl(x)	scanf("%lld",&x)
#define ss(s)	scanf("%s",s)
#define pi(x)	printf("%d\n",x)
#define pl(x)	printf("%lld\n",x)
#define ps(s)	printf("%s\n",s)

int main() {
    ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0), cout << fixed << setprecision(10);
    srand(chrono::high_resolution_clock::now().time_since_epoch().count());
    int n, d;
    cin>>n>>d;
    d *= d;
    int c = 0;
    for(int i=0;i<n;i++)
    {
        cin>>x>>y;
        t = x*x + y*y;
        if(t <= d)
            c++;
    }
    cout<<c<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:14: error: 'x' was not declared in this scope
   23 |         cin>>x>>y;
      |              ^
a.cc:23:17: error: 'y' was not declared in this scope
   23 |         cin>>x>>y;
      |                 ^
a.cc:24:9: error: 't' was not declared in this scope
   24 |         t = x*x + y*y;
      |         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'pow' was not declared in this scope
   15 |    {if(pow(x[i]*x[i]+y[j]*y[j] , 1/2)<=d) c++;}
      |        ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: invalid operands of types 'int [n]' and 'int [n]' to binary 'operator*'
   14 |    {if(pow(x*x+y*y , 1/2)<=d) c++;}
      |            ~^~
      |            | |
      |            | int [n]
      |            int [n]
a.cc:14:17: error: invalid operands of types 'int [n]' and 'int [n]' to binary 'operator*'
   14 |    {if(pow(x*x+y*y , 1/2)<=d) c++;}
      |                ~^~
      |                | |
      |                | int [n]
      |                int [n]
a.cc:14:8: error: 'pow' was not declared in this scope
   14 |    {if(pow(x*x+y*y , 1/2)<=d) c++;}
      |        ^~~
Language: Java

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

public class atcoder{
	// class node implements Comparator<int[]>{
	// 	public int compare(int[] a, int b){
	// 		double d1 = Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2));
	// 		double d2 = Math.sqrt(Math.pow(b[0],2)+Math.pow(b[1],2));
	// 		if(d1>d2){
	// 			return 
	// 		}
	// 	}
	// }
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer(br.readLine());
		int n = Integer.parseInt(st.nextToken());
		int k = Integer.parseInt(st.nextToken());
		//int[][] points = new int[n][2];
		int count = 0;
		for(int i=0;i<n;i++){
			st = new StringTokenizer(br.readLine());
			int x = Integer.parseInt(st.nextToken());;
			int y = Integer.parseInt(st.nextToken());;
			double d1 = Math.sqrt(Math.pow(x,2)+Math.pow(y,2));
			if(d1>k){

			}
			else{
				count++;
			}
		}
		// Arrays.sort(points, new Comparator<int[]>{
		// 	public int compare()
		// });
		System.out.println(count);
	}
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,d;
  cin>>n>>d;
  while(n--)
  {
    long long a,b,cnt;
  	cin>>a>>b;
    if(sqrt(a*a+b*b)==d)
      cnt++;
  }
  cout<<cnt<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   14 |   cout<<cnt<<endl;
      |         ^~~
      |         int
Language: C++

include <iostream>
using namespace std;

int main()
{
    long long int N,D,cnt = 0;
    cin >>N>>D;
    while(N--){
        long long x,y;
        cin>>x>>y;
        long long int p = (x * x) + (y * y);
        int s=D*D;
        if(p<=s)
            cnt++;
    }
    cout << cnt << endl;
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >>N>>D;
      |     ^~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << cnt << endl;
      |     ^~~~
a.cc:16:20: error: 'endl' was not declared in this scope
   16 |     cout << cnt << endl;
      |                    ^~~~
Language: C++

include <iostream>
using namespace std;

int main()
{
    long long int N,D,cnt = 0,sqrt;
    cin >>N>>D;
    while(N--){
        long long x,y;
        cin>>x>>y;
        long long int p = (x * x) + (y * y);
        int s=D*D;
        if(p<=s)
            cnt++;
    }
    cout << cnt << endl;
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >>N>>D;
      |     ^~~
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout << cnt << endl;
      |     ^~~~
a.cc:16:20: error: 'endl' was not declared in this scope
   16 |     cout << cnt << endl;
      |                    ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
    long long int N,D,cnt = 0;
    cin >>N>>D;
    while(N--){
        long long x,y;
        cin>>x>>y;
        long long int p = (x * x) + (y * y);
        if(sqrt(p) <= D)
            cnt++;
    }
    cout << cnt << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'sqrt' was not declared in this scope
   12 |         if(sqrt(p) <= D)
      |            ^~~~
Language: C++

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

}


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 <iostream>
#include <cmath>
using namespace std;

int main()
{
    int n,d;
    cin>>n>>d;
    int x[n];
    int y[n];
    int  i,j;
    for(i=0;i<n;i++)
    {
        cin>>x[n]>>y[n];
    }
    d = pow(d,2);
    j=0;
    for(i=0;i<n;i++)
    {
        if ((pow(x[i],2)+pow(y[i],2) <= d)
        {
            j++;
        }
    }
    cout<<j;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:43: error: expected ')' before '{' token
   20 |         if ((pow(x[i],2)+pow(y[i],2) <= d)
      |            ~                              ^
      |                                           )
   21 |         {
      |         ~                                  
a.cc:24:5: error: expected primary-expression before '}' token
   24 |     }
      |     ^
Language: C++

#include<iostream>
#include<math>
using namespace std;
int main(){
  int N,count=0,X,Y;
  double D;
  cin>>N>>D;
  for(int i=1;i<=N;i++){
    cin>>X>>Y;
    if(sqrt((X*X)+(Y*Y))<=D)
      count++;
  }
  return 0;
}


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

#include<iostream>
using namespace std;
int main(){
  int N,count=0;
  double D;
  cin>>N>>D;
  for(int i=1;i<=N;i++){
    cin>>X>>Y;
    if(sqrt((X*X)+(Y*Y))<=D)
      count++;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'X' was not declared in this scope
    8 |     cin>>X>>Y;
      |          ^
a.cc:8:13: error: 'Y' was not declared in this scope
    8 |     cin>>X>>Y;
      |             ^
a.cc:9:8: error: 'sqrt' was not declared in this scope
    9 |     if(sqrt((X*X)+(Y*Y))<=D)
      |        ^~~~
Language: C++

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()	{
       int n,d,x,y,z,l=0;
       cin>>n>>d;
       while(n--){
          cin>>x>>y; 
         z=x*x+y*y;
         z=sqrt(z);
         if(z<=d){
            l+=1;
         }
       }
     cout<<z<<endl;
         
         


Compiler output:
a.cc: In function 'int main()':
a.cc:16:20: error: expected '}' at end of input
   16 |      cout<<z<<endl;
      |                    ^
a.cc:5:17: note: to match this '{'
    5 | int main()      {
      |                 ^
Language: C

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main()	{
       int n,d,x,y,z,l=0;
       cin>>n>>d;
       while(n--){
          cin>>x>>y; 
         z=x*x+y*y;
         z=sqrt(z);
         if(z<=d){
            l+=1;
         }
       }
     cout<<z<<endl;
         
         

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

#include <stdio.h>
typedef long long int ll;
constexpr int kN = int(2E5 + 10);
 
ll x[kN], y[kN];
 
int main() {
	int n, ans = 0;
	ll d;
	scanf("%d%lld", &n, &d);
	d *= d;
	for (int i = 1; i <= n; i++) scanf("%lld%lld", &x[i], &y[i]);
	for (int i = 1; i <= n; i++) if (x[i] * x[i] + y[i] * y[i] <= d) ans++;
	printf("%d\n", ans);
  return0;
	
}

Compiler output:
main.c:3:10: error: expected ';' before 'int'
    3 | constexpr int kN = int(2E5 + 10);
      |          ^~~~
      |          ;
main.c:3:20: error: expected expression before 'int'
    3 | constexpr int kN = int(2E5 + 10);
      |                    ^~~
main.c:5:4: error: variably modified 'x' at file scope
    5 | ll x[kN], y[kN];
      |    ^
main.c:5:11: error: variably modified 'y' at file scope
    5 | ll x[kN], y[kN];
      |           ^
main.c: In function 'main':
main.c:15:3: error: 'return0' undeclared (first use in this function)
   15 |   return0;
      |   ^~~~~~~
main.c:15:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
typedef long long int ll;
constexpr int kN = int(2E5 + 10);
 
ll x[kN], y[kN];
 
int main() {
	int n, ans = 0;
	ll d;
	scanf("%d%lld", &n, &d);
	d *= d;
	for (int i = 1; i <= n; i++) scanf("%lld%lld", &x[i], &y[i]);
	for (int i = 1; i <= n; i++) if (x[i] * x[i] + y[i] * y[i] <= d) ans++;
	printf("%d\n", ans);
	
}

Compiler output:
main.c:3:10: error: expected ';' before 'int'
    3 | constexpr int kN = int(2E5 + 10);
      |          ^~~~
      |          ;
main.c:3:20: error: expected expression before 'int'
    3 | constexpr int kN = int(2E5 + 10);
      |                    ^~~
main.c:5:4: error: variably modified 'x' at file scope
    5 | ll x[kN], y[kN];
      |    ^
main.c:5:11: error: variably modified 'y' at file scope
    5 | ll x[kN], y[kN];
      |           ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
  int n, d, a, b, count = 0;
  cin>> n >> d;
  while(n--){
  //int a , b;
    cin >> a >> b;
    int res = sqrt((a*a) + (b*b))
      if(res <= D){
      count++;
      }
  
  }
  cout << count << endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: expected ',' or ';' before 'if'
   12 |       if(res <= D){
      |       ^~
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
int N , D , count = 0, a , b;
  cin >> n >> D;
  while(N--){
  cin >> a >> b;
    if((sqrt((a*a) + (b *b)) <= D){
    count++;
    }
  }
       cout << count << endl;
       return 0;
       
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'n' was not declared in this scope
    7 |   cin >> n >> D;
      |          ^
a.cc:10:35: error: expected ')' before '{' token
   10 |     if((sqrt((a*a) + (b *b)) <= D){
      |       ~                           ^
      |                                   )
a.cc:13:3: error: expected primary-expression before '}' token
   13 |   }
      |   ^
Language: C++

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

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

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

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


int main (){
	long double a,b,aux,aux2,aux3,x,y;
	int cont=0,i;
	cin>>a>>b;
	for (i=0;i<a;i++){
		cin>>x,y;
		aux=powl(x,2);
		aux2=powl(y,2);
		aux3=sqrtl(aux+aux2);
		if(aux3>=b){
			cont++;
		}
		
	}
	cout<<cont;
	
}

Compiler output:
main.c:1:11: 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 () {
  long int n , a , b;
  cin >> n ;
  long cnt = 0 ;
  while (n--) {
 	cin >> a >> b ;
    if ((long)sqrt(a*a + b*b) == d)cnt ++ ;
  }
  cout << cnt ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: 'd' was not declared in this scope
   11 |     if ((long)sqrt(a*a + b*b) == d)cnt ++ ;
      |                                  ^
Language: C++

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

#define ll long long

int main()
{
    ll i, x, y, ans, d;
    double dist;

    cin >> n >> d;
    ans=0;
    for(i=0; i<n; i+=1)
    {
        cin >> x >> y;
        dist=sqrt(x*x + y*y);

        if(dist<=d)
            ans+=1;
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'n' was not declared in this scope
   11 |     cin >> n >> d;
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  long long n,d;
  cin>>n>>d;
  int cnt=0;
  while(n--){
    long long x,y;
    cin>>x>>y;
    if(x*x+y*y<=d*d){
      cnt++;
    }
  }
  cout<<cnt<<endl;
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: expected '}' at end of input
   16 |   return 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

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

int main(){

  int n,d;
  cin >> n >> d;
  int ans=0;
  int x,y;

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

  cout << ans << endl;
}


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

#include <iostream>
 
using namespace std;
 
int main() {
  int n, long long d; cin >> n >> d;
  long long d2 = d * d;
  int sum = 0;
  for (int i = 0; i < n; i++) {
  	long long a, b; cin >> a >> b;
    if (a * a + b * b <= d2) sum++;
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before 'long'
    6 |   int n, long long d; cin >> n >> d;
      |          ^~~~
a.cc:6:35: error: 'd' was not declared in this scope
    6 |   int n, long long d; cin >> n >> d;
      |                                   ^
Language: C++

#include <iostream>
 
using namespace std;
 
int main() {
  int n, long d; cin >> n >> d;
  long long d2 = d * d;
  int sum = 0;
  for (int i = 0; i < n; i++) {
  	long long a, b; cin >> a >> b;
    if (a * a + b * b <= d2) sum++;
  }
  cout << sum << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before 'long'
    6 |   int n, long d; cin >> n >> d;
      |          ^~~~
a.cc:6:30: error: 'd' was not declared in this scope
    6 |   int n, long d; cin >> n >> d;
      |                              ^
Language: C++

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

using namespace std;

int main() {
   int count, distance, answer;

   cin >> count >> distance;

   for(int i=0; i<count; i++) {
      int x, y;
      cin >> x >> y;
      if(sqrt(x * x + y * y) <= (double)distance)
         answer += 1;
   }

   cout >> answer >> endl;
}

   

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

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

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to Long
      Long y = sc.nextInt();
                         ^
Main.java:17: error: cannot find symbol
    System.out.println(answer);
                       ^
  symbol:   variable answer
  location: class Main
2 errors
Language: Java

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

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to Long
      Long y = sc.nextInt();
                         ^
Main.java:14: error: cannot find symbol
        answer++;
        ^
  symbol:   variable answer
  location: class Main
Main.java:17: error: cannot find symbol
    System.out.println(answer);
                       ^
  symbol:   variable answer
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
long d=sc.nextLong();
int cnt=0;

// long x[],y[]; x=new long[n]; y=new long[n];
long[] x=new long[n];
long[] y=new long[n];
int i=0;

while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d>=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
}
System.out.println(cnt);
}


}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from long to int
long[] x=new long[n];
                  ^
Main.java:13: error: incompatible types: possible lossy conversion from long to int
long[] y=new long[n];
                  ^
2 errors
Language: Java

import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
long n=sc.nextLong();
long d=sc.nextLong();
int cnt=0;

// long x[],y[]; x=new long[n]; y=new long[n];
long[] x=new long[n];
long[] y=new long[n];
int i=0;

while((n--)>0){
x[i]=sc.nextLong();
y[i]=sc.nextLong();
if(d*d<=(x[i]*x[i]+y[i]*y[i]))
cnt++;
i++;
}
System.out.println(cnt);
}


}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from long to int
long[] x=new long[n];
                  ^
Main.java:13: error: incompatible types: possible lossy conversion from long to int
long[] y=new long[n];
                  ^
2 errors
Language: Java

import java.util.Scanner;
class Main {
  static public void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int D = sc.nextInt();
    int a = 0;
    for (int i = 0; i <= N; i++) {
      int X = sc.nextInt();
      int Y = sc.nextInt();
      if (D*D >= X*X + Y*Y) {
        a++;
      }
    }
    System.out.println(a);
    in.close
  }
}


Compiler output:
Main.java:16: error: not a statement
    in.close
      ^
Main.java:16: error: ';' expected
    in.close
            ^
2 errors
Language: C++

#include <iostream.h>
#include <stdio.h>
#include <math.h>
using namespace std;
int main()
{
  int p,d,ctr;
  float d1;
  cin>>p>>d;
  float a[p][2];
  for(i=0;i<p;i++)
    cin>>a[i][0]>>a[i][1];
  for(int i =0;i<p;i++)
    d1= sqrt(a[i][0]*a[i][0]+a[i][1]*a[i][1]);
    if(d1<=d)
      ctr++;
  cout<<ctr;
  
  

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

#include<iostream>
using namespace std;

int main(void) {
	int N, D, Xi, Yi;
	int i;
	int count = 0;

	cin >> N;
	cin >> D;

	for (i = 0;i < N;i++) {
		cin >> Xi;
		cin >> Yi;

		if (sqrt(Xi * Xi + Yi * Yi) <= D) {
			count++;
		}
	}

	cout << count;

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: 'sqrt' was not declared in this scope
   16 |                 if (sqrt(Xi * Xi + Yi * Yi) <= D) {
      |                     ^~~~
Language: C++

#include<bits/stdc++.h>
#define ll long long
using namesapce std;
int main(){
  ll n,l,c=0;
  cin>>n>>l;
  while(n--){
	ll x,y;
    cin>>x>>y;
    if(l*l==x*x+y*y)c++;
  }
  cout<<c;
  return 0;
}


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namesapce'
    3 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>n>>l;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout<<c;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stc++.h>
#define int long long
using namespace std;

signed main(){
  int n,k,x,y,cnt=0;
  cin>>n>>k;
  k*=k;
  while(n--){
    cin>>x>>y;
    x*=x;
    y*=y;
    if(k>=x+y) cnt++;
  }
  cout<<cnt<<endl;
}

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

#include<bits/stc++.h>
# define int long long
using namespace std;

signed main(){
  int n,k,x,y,cnt=0;
  cin>>n>>k;
  k*=k;
  while(n--){
    cin>>x>>y;
    x*=x;
    y*=y;
    if(k>=x+y) cnt++;
  }
  cout<<cnt<<endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main() {
  int n, d;
  scanf("%d %d", &n, &d);
  int x1, y1, y, cnt = 0;
  for(int i = 0; i < n; i++){
    scanf("%d %d", &x1, &y1){
      y = sqrt(pow(x1,2)+pow(y1,2));
      if(d <= y) {
        cnt++;
      }
    }
  }
  printf(" %d \n" , cnt);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:29: error: expected ';' before '{' token
    8 |     scanf("%d %d", &x1, &y1){
      |                             ^
      |                             ;
Language: C

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

int main(void){
  int i, N, D, a;
  int x(i), y(i);
  scanf("%d", &N);
  scanf("%d", &D);
  for(i = 1; i < N + 1; i++){
    scanf("%d", &x(i));
    scanf("%d", &y(i));
    if(sqrt((x(i))**2 + (y(i))**2) <= D){
      a++;
    }
  }
  printf("%d", a);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
    6 |   int x(i), y(i);
      |   ^~~
main.c:6:3: error: parameter names (without types) in function declaration [-Wdeclaration-missing-parameter-type]
main.c:10:17: error: lvalue required as unary '&' operand
   10 |     scanf("%d", &x(i));
      |                 ^
main.c:11:17: error: lvalue required as unary '&' operand
   11 |     scanf("%d", &y(i));
      |                 ^
main.c:12:20: error: invalid type argument of unary '*' (have 'int')
   12 |     if(sqrt((x(i))**2 + (y(i))**2) <= D){
      |                    ^~
main.c:12:32: error: invalid type argument of unary '*' (have 'int')
   12 |     if(sqrt((x(i))**2 + (y(i))**2) <= D){
      |                                ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
  int n,d;
  cin >> n >> d;
  place[n][2];
  int count=0;
  for(int i=0;i<n;i++){
    cin >> place[i][0] >> place[i][1];
    if(place[i][0]*place[i][0] + place[i][1]*place[i][1] <= d*d){
      count++;
    }
  }
  cout << count << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'place' was not declared in this scope
    6 |   place[n][2];
      |   ^~~~~
Language: C++

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

#define ll long long

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 't' was not declared in this scope
   14 |     cin>>x>>t;
      |             ^
Language: C++

#include<iostream>
#include <math.h>
using namespace std;
int main(){
  long long n,d,i,r,ans;
  int x[200000],y[200000];
  for(i=0;i<n;i++){
    cin >> x[i] >> y[i];
    r=x[i]*x[i]+y[i]*y[i]
    if(r<=d*d){
      ans++;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before 'if'
    9 |     r=x[i]*x[i]+y[i]*y[i]
      |                          ^
      |                          ;
   10 |     if(r<=d*d){
      |     ~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: 'x' was not declared in this scope
    9 |   cin >> x >> y;
      |          ^
a.cc:9:15: error: 'y' was not declared in this scope
    9 |   cin >> x >> y;
      |               ^
a.cc: At global scope:
a.cc:14:1: error: 'cout' does not name a type
   14 | cout << sum << endl;
      | ^~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  long long a,b,c,d;
  int count=0;
  cin >> a >> b;
  for(int a=0; a<n; a++){
    cin >> c >> d;
    if(c*c+d*d<=b*b)count++;
  }
  cout << count << endl;
}

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

#include<iostream>
using namespace std;
int main(){
  long long a,b,c,d;
  int count=0;
  cin >> a >> b;
  for(int i=0; i<n; i++){
    cin >> c >> d;
    if(c*c+d*d<=b*b)count++;
  }
  cout << count << endl;
}


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

#include<iostream>
using namespace std;
int main(){
  int n,d,,ans,a[1000000];
  cin >> n >> d;
  for(int i=0;i<1000000;i++){
    if(i^2*2<=d^2){
      ans=ans++1
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:11: error: expected unqualified-id before ',' token
    4 |   int n,d,,ans,a[1000000];
      |           ^
a.cc:8:16: error: expected ';' before numeric constant
    8 |       ans=ans++1
      |                ^
      |                ;
Language: C++

#include<iostream>
using namespace std;
int main(){
  long long a,b,c,d;
  int count=0;
  cin >> a >> b;
  for(int i=0; i<n; i++){
    cin >> c >> y;
    if(c*c+d*d<=b*b)count++;
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope
    7 |   for(int i=0; i<n; i++){
      |                  ^
a.cc:8:17: error: 'y' was not declared in this scope
    8 |     cin >> c >> y;
      |                 ^
Language: C

#include<stdio.h>
#include<math.h>
int main(){
 
  int n,m;
  scanf("%d %d",&n,&m);
  
  long i,x,y,count = 0;
  m*=m;
  
  for( i = 0; i<n;i++){
  	scanf("%d %d",&x,&y);
    if(x*x +y*y <=m){
    count++
    }
  	
  
  }
  
  
/*  for(a = 0;a<n;a++){
  	printf("%d",b[a]);
  	if(b[a]==m){
    count++;
    }
  }
  */
  
  printf("%d",count);
 
}

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

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

int main (){
 long long int n,d;
  cin >> n >> d;

  long long int x[n],y[n];
  long long int xv,yv;
  long long int dv=d*d;
  long long int c;
  long long int ans;
  for(long long int i=0; i<n; i++){
     cin >> x[i] >> y[i];
       xv = x[i] * x[i];
       yv = y[i] * y[i];
       ans = xv + yv;
    if(dv>=ans){
      c++;
  }
  cout << c << endl;
}



Compiler output:
a.cc: In function 'int main()':
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>
using namespace std;

int main (){
 long long int n,d;
  cin >> n >> d;

  long long int x[n],y[n];
  long long int xv,yv;
  long long int dv=d*d;
  for(long long int i=0; i<n; i++){
     cin >> x[i] >> y[i];
       xv = x[i] * x[i];
       yv = y[i] * y[i];
       ans = xv + yv;
    if(dv>=ans){
      c++;
  }
  cout << c << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:15:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |        ans = xv + yv;
      |        ^~~
      |        abs
a.cc:17:7: error: 'c' was not declared in this scope
   17 |       c++;
      |       ^
a.cc:19:11: error: 'c' was not declared in this scope
   19 |   cout << c << endl;
      |           ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main (){
      |            ^
Language: C

#include<stdio.h>
int main() {
	int n, d;
	int a[200000][2];
	int x = 0;
	scanf_s("%d%d", &n, &d);
	for (int i = 0; i < n; i++) {
		scanf_s("%d%d", &a[i][0], &a[i][1]);
    }
  	for(int i=0;i<n;i++){
    	if(a[i][0]*a[i][0]+a[i][1]*a[i][1]<=d*d){
      		x++;
    	}
  	}
	printf("%d\n", x);
	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() {
	int n, d;
	int a[200000][2];
	int x = 0;
	scanf("%d%d", &n, &d);
	for (int i = 0; i < n; i++) {
		scanf("%d%d", &a[i][0], &a[i][1]);
    }
  	for(int i=0;i<n;i++){
    	if(p*p+q*q<=d*d){
      		x++;
    	}
  	}
	printf("%d\n", x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:12: error: 'p' undeclared (first use in this function)
   11 |         if(p*p+q*q<=d*d){
      |            ^
main.c:11:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:16: error: 'q' undeclared (first use in this function)
   11 |         if(p*p+q*q<=d*d){
      |                ^
Language: C

#include<stdio.h>
int main() {
	int n, d;
	int a[200000][2];
	int x = 0;
	scanf("%d%d", &n, &d);
	for (int i = 0; i < n; i++) {
		scanf("%d%d", &a[i][0], &a[i][1]);
    }
  for(int i=0;i<n;i++){
    if(p*p+q*q<=d*d){
      x++;
    }
	printf("%d\n", x);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: 'p' undeclared (first use in this function)
   11 |     if(p*p+q*q<=d*d){
      |        ^
main.c:11:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:12: error: 'q' undeclared (first use in this function)
   11 |     if(p*p+q*q<=d*d){
      |            ^
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C++

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


Compiler output:
a.cc:22:3: error: 'cout' does not name a type
   22 |   cout << c << endl;
      |   ^~~~
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

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

int main(){
	int n,d;cin>>a>>d;
  	int a,b;
  	int cnt=0;
  	for(int i=0;i<n;i++){
      cin>>a>>b;
		if(sqrt((a*a)+(b*b))<=d) cnt++;	
    } 
  cout<<cnt;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: 'a' was not declared in this scope
    5 |         int n,d;cin>>a>>d;
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int n,d;
  cin >> n >> d;
  int x[n],y[n];
  int xv,yv;
  int ans;
  int dv;
  int c=0;
  dv = d * d;
  for(int i=0; i<n; i++){
    cin >> x[i] >> y[i];
    xv = x[i] * x[i];
    yv = y[i] * y[i];
    ans = xv + yv;
    if(ans =< dv){
      c++;
    }
  }
  cout << c << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: expected primary-expression before '<' token
   17 |     if(ans =< dv){
      |             ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int t,count=0;
  float d,x,y;
  cin>>t>>d;
  while(t--)
  {
    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:11:8: error: 'sqrt' was not declared in this scope
   11 |     if(sqrt(x*x+y*y)<=d)
      |        ^~~~
Language: C++

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

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


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

#include <cmath>
#include <limits>
#include <iostream>
using namespace std;
int main()
{
    // スペース区切りの整数の入力
    int b,c;
    cin >> b >> c;
int count =0;
  for(int i=0;i<b;i++)
  {
    int n,m;
    if( sqrt((n*n) +(m*m)  )  <c )
    {
      count++:
    }
    
  }
  cout << count << endl;
 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: expected ';' before ':' token
   16 |       count++:
      |              ^
      |              ;
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // スペース区切りの整数の入力
    int b,c;
    cin >> b >> c;
int count =0;
  for(int i=0;i<b;i++)
  {
    int n,m;
    if( sqrt((n*n) +(m*m)  )  <c )
    {
      count++:
    }
    
  }
  cout << count << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'sqrt' was not declared in this scope
   12 |     if( sqrt((n*n) +(m*m)  )  <c )
      |         ^~~~
a.cc:14:14: error: expected ';' before ':' token
   14 |       count++:
      |              ^
      |              ;
Language: C

#include<stdio.h>
#include<math.h>
int main()

{
    int N,D,i,x,r,y,count=0;
    long int z;
     scanf("%d %d",&N &D);
     if((N>=1) && (N<=200000) && (D>=0) && (D<=200000))
     {
         for (i=1;i<=N;i++)
           {
               scanf("%d %d",&x &y);
                z=x*y;
                if(z>=0)
                    z*=1;
                else if(z<=0)
                    z*=-1;
            if(z<=200000)
            {
                r= sqrt(pow(x,2)+pow(y,2));
                if(r>=D)
                    count++;
            }
           }
     }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:23: error: invalid operands to binary & (have 'int *' and 'int')
    8 |      scanf("%d %d",&N &D);
      |                    ~~ ^
      |                    |
      |                    int *
main.c:13:33: error: invalid operands to binary & (have 'int *' and 'int')
   13 |                scanf("%d %d",&x &y);
      |                              ~~ ^
      |                              |
      |                              int *
Language: Java

/*package whatever //do not write package name here */

import java.io.*;
import java.util.Scanner;

class Main {
	public static void main (String[] args) {
		Scanner in = new Scanner(System.in);
		int n = in.nextInt();
		int count = 0;
		long  d = in.nextInt();
      	d = d*d;
        for(int i=0;i<n;i++) {
            int x = in.nextInt();
            int y = in.nextInt();
            long  sq = long(x*x + y*y);
            if(sq <= d)
            count++;
        }
        
		
	    System.out.println(count);
	
	}
}


Compiler output:
Main.java:16: error: '.class' expected
            long  sq = long(x*x + y*y);
                           ^
Main.java:16: error: not a statement
            long  sq = long(x*x + y*y);
                                ^
Main.java:16: error: ';' expected
            long  sq = long(x*x + y*y);
                                     ^
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long int n,d,i,c=0;
  cin>>n>>>d;
  double x,y,z;
  while(n--)
  {
    cin>>x>>y;
    z=sqrt(x*x+y*y);
    if(z>=d)
      c++;
  }
  cout<<c;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected primary-expression before '>' token
    6 |   cin>>n>>>d;
      |           ^
Language: C++

#include <iostream>
#include <vector>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
using namespace std;
 
int main()
{  
  int N, D;
  cin >> N >> D;
  vector<int> X(N);
  vector<int> Y(N);
  
  int count = 0;
  ll sum;
  ll sum2 = D * D;
  rep(i, N){
    cin >> X.at(i) >> Y.at(i); 
    sum = X.at(i) * X.at(i) + Y.at(i) * Y.at(i);
    
    if(sum <= sum2){
      count++;
    }
  }
  
  cout << count << endl;
  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'll' was not declared in this scope
   14 |   ll sum;
      |   ^~
a.cc:15:5: error: expected ';' before 'sum2'
   15 |   ll sum2 = D * D;
      |     ^~~~~
      |     ;
a.cc:18:5: error: 'sum' was not declared in this scope
   18 |     sum = X.at(i) * X.at(i) + Y.at(i) * Y.at(i);
      |     ^~~
a.cc:20:15: error: 'sum2' was not declared in this scope
   20 |     if(sum <= sum2){
      |               ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  double N,D;
  double x,y;
  int cnt,ans;
  cin >> N >> d;
  
  for(int i=0; i<N; i++){
      cin >> x >> y;
    if((x*x)+(y*y)<=D*D){
    cnt++;
    }      
  }
  cout << cnt << endl;
  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'd' was not declared in this scope
    8 |   cin >> N >> d;
      |               ^
Language: C++

#include <iosteram>
using namespace std;

int main(){
  double N,D;
  double x,y;
  int cnt,ans;
  cin >> N >> d;
  
  for(int i=0; i<N; i++){
      cin >> x >> y;
    if((x*x)+(y*y)<=D*D){
    cnt++;
    }      
  }
  cout << cnt << endl;
  
return 0;
}

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

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

#define ll long long int

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

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  unsigned long long;
  int n,d;
  cin>>n>>d;
  vector<int>vec1 (n);
  vector<int>vec2(n);
  int x=0;
  for(int i=0;i<n;i++){
    cin>>vec1.at(i)>>vec2.at(i);
    if (d*d>= (vec1.at(i)*vec1.at(i)) +( vec2.at(i)*vec2.at(i))){
      x+=1;}
  
    
  }
  cout<<x<<endl;}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: declaration does not declare anything [-fpermissive]
    4 |   unsigned long long;
      |                 ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
unsigned long long;
int main(){
  int n,d;
  cin>>n>>d;
  vector<int>vec1 (n);
  vector<int>vec2(n);
  int x=0;
  for(int i=0;i<n;i++){
    cin>>vec1.at(i)>>vec2.at(i);
    if (d*d>= (vec1.at(i)*vec1.at(i)) +( vec2.at(i)*vec2.at(i))){
      x+=1;}
  
    
  }
  cout<<x<<endl;}


Compiler output:
a.cc:3:15: error: declaration does not declare anything [-fpermissive]
    3 | unsigned long long;
      |               ^~~~
Language: C

#include <cmath>
#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <algorithm>

int n, d;

int main() {
	scanf("%d %d", &n, &d); int ans = 0;
	for (int i = 1, x, y; i <= n; ++i) {
		scanf("%d %d", &x, &y);
		double dis = sqrt(1ll * x * x + 1ll * y * y);
		if (dis <= d) ++ans;
	}
	printf("%d\n", ans);
	return 0;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0; i< (n) ; ++i)
using namespace std;
using l = long long;
using P = pair<int,int>;
int main(){
  int n;
  ll d;
  int ans = 0;
  cin >> n >> d;
  rep(i,n){
   ll x y;
    cin >> x >> y;
  if(x*x+y*y <= d*d) ans++;
  }
  cout << ans <<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'll' was not declared in this scope; did you mean 'l'?
    8 |   ll d;
      |   ^~
      |   l
a.cc:10:15: error: 'd' was not declared in this scope
   10 |   cin >> n >> d;
      |               ^
a.cc:12:6: error: expected ';' before 'x'
   12 |    ll x y;
      |      ^~
      |      ;
a.cc:13:12: error: 'x' was not declared in this scope
   13 |     cin >> x >> y;
      |            ^
a.cc:13:17: error: 'y' was not declared in this scope
   13 |     cin >> x >> y;
      |                 ^
Language: Java

public static void main(String[] args){
    Scanner sc=new Scanner(System.in);
    int n = sc.nextInt();
    int d = sc.nextInt();
    int ans = 0;
    for (int i = 1; i < n; i++) {
      int x = i;
      int y = i;
      if((x*x+y*y)<=d*d){
        ans += 1;
      }
    }
    System.out.println(ans);

  }
}


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: class, interface, enum, or record expected
}
^
2 errors
Language: C

#include<stdio.h>
#include<math.h>
int main()
{long int N,D;
 long int X[200000];
 long int Y[200000];
 int i,count=0;
 scanf("%d",&N,&D);
 for(i=0;i<N;i++)
 { 
   scanf("%ld%ld",&X[i],Y[i]);
 }
 for(i=0;i<N;i++)
 {
   T = (sqrt((X[i]^2)+(Y[i]^2));
   if(T<=D)
   {
     count = count+1;
   }
        }
printf("%d",count);
        return 0;
        }
        
        
      
  
 
 
 


Compiler output:
main.c: In function 'main':
main.c:15:4: error: 'T' undeclared (first use in this function)
   15 |    T = (sqrt((X[i]^2)+(Y[i]^2));
      |    ^
main.c:15:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:32: error: expected ')' before ';' token
   15 |    T = (sqrt((X[i]^2)+(Y[i]^2));
      |        ~                       ^
      |                                )
main.c:19:5: error: expected ';' before '}' token
   19 |    }
      |     ^
      |     ;
   20 |         }
      |         ~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{long int N,D;
 long int X[200000];
 long int Y[200000];
 int i,count=0;
 scanf("%d",&N,&D);
 for(i=0;i<N;i++)
 { 
   scanf("%d%d",&X[i],Y[i]);
 }
 for(i=0;i<N;i++)
 {
   T = (sqrt((X[i]^2)+(Y[i]^2));
   if(T<=D)
   {
     count = count+1;
   }
        }
printf("%d",count);
        return 0;
        }
        
        
      
  
 
 
 

Compiler output:
main.c: In function 'main':
main.c:15:4: error: 'T' undeclared (first use in this function)
   15 |    T = (sqrt((X[i]^2)+(Y[i]^2));
      |    ^
main.c:15:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:32: error: expected ')' before ';' token
   15 |    T = (sqrt((X[i]^2)+(Y[i]^2));
      |        ~                       ^
      |                                )
main.c:19:5: error: expected ';' before '}' token
   19 |    }
      |     ^
      |     ;
   20 |         }
      |         ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int t,d;
  cin>>t>>d;
  int cnt=0;
  while(t--)
  {
    int x,y;
    cin>>x>>y;
    if(x*x+y*y>=d*d)
      cnt++;
  }
  cout<<cnt<<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected primary-expression before '<' token
   15 |   cout<<cnt<<<endl;
      |              ^