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

#include <bits/stdc++.h> 
using namespace std;
typedef pair<int, int> pairs; 
int main()
{
int n;
int d;
 
    set<pairs> s; 
  cin>>n>>d;
  long long x[n];
  long long  y[n];
  long long  cnt=0;
  for(int i=0;i<n;i++)
  {int x,y;
    cin>>x>>y;
   pairs x1 = make_pair(x, y);
    s.insert(x1); 
  }
   for (auto const &c : s) { 
         if((c.first*c.first+c.second*c.second<=d*d)
      cnt++; 
  
   
   } 
  
 
  cout<<cnt;
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:53: error: expected ';' before 'cnt'
   21 |          if((c.first*c.first+c.second*c.second<=d*d)
      |                                                     ^
      |                                                     ;
   22 |       cnt++;
      |       ~~~                                            
a.cc:25:4: error: expected primary-expression before '}' token
   25 |    }
      |    ^
a.cc:22:13: error: expected ')' before '}' token
   22 |       cnt++;
      |             ^
      |             )
......
   25 |    }
      |    ~         
a.cc:21:12: note: to match this '('
   21 |          if((c.first*c.first+c.second*c.second<=d*d)
      |            ^
a.cc:25:4: error: expected primary-expression before '}' token
   25 |    }
      |    ^
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main(){
  double a,b;
  cin>>a>>b;
  double i;
  int count=0;
  for(i=0;i<=a;i++){
    double x,y;
    cin>>x>>y;
    double c=sqrt(x**2+y**2);
    if(c<=b)
      count++;
  }
return count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: invalid type argument of unary '*' (have 'int')
   12 |     double c=sqrt(x**2+y**2);
      |                     ^~
a.cc:12:26: error: invalid type argument of unary '*' (have 'int')
   12 |     double c=sqrt(x**2+y**2);
      |                          ^~
Language: C++

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

int main() {
  
  int N, D;
  cin >> N >> D;
  
  vector<double> X;
  vector<double> Y;
  
  for (int i = 0; i < (N * 2); i++) {
    if ((i % 2) == 1) {
      cin >> X.at(i / 2);
    }
    
    else {
      cin >> Y.at(i / 2);
    }
  }
  
  int num = 0;
  
  for (int i = 0; i < N; i++) {
    if (double sqrt(double (X.at(i) * X.at(i) + Y.at(i) * Y.at(i))) <= D) {
      num++;
    }
  }
  
  cout << num << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: expected initializer before '(' token
   26 |     if (double sqrt(double (X.at(i) * X.at(i) + Y.at(i) * Y.at(i))) <= D) {
      |                    ^
a.cc:26:20: error: expected ')' before '(' token
   26 |     if (double sqrt(double (X.at(i) * X.at(i) + Y.at(i) * Y.at(i))) <= D) {
      |        ~           ^
      |                    )
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
 
int main()
{
  long long n,x,y;
  lonf lond double d;
  cin>>n>>d;
  long long double dis=0,dist=0;
  long long c=0;
  for(long long i=0; i<n; i++)
  {
    cin>>x>>y;
    dis=x*x+y*y;
    dist=sqrt(dis);
 	 if(dist<=d)
    	c++;
  }
  cout<<c<<endl;
  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'lonf' was not declared in this scope; did you mean 'long'?
    8 |   lonf lond double d;
      |   ^~~~
      |   long
a.cc:9:11: error: 'd' was not declared in this scope
    9 |   cin>>n>>d;
      |           ^
a.cc:10:8: error: 'long long' specified with 'double'
   10 |   long long double dis=0,dist=0;
      |        ^~~~
a.cc:10:8: error: 'long long' specified with 'double'
Language: C++

#include <bits/stdc++.h> 
using namespace std;
typedef pair<int, int> pairs; 
int main()
{
int n;
int d;
 
    set<pairs> s; 
  cin>>n>>d;
  long long x[n];
  long long  y[n];
  long long  cnt=0;
  for(int i=0;i<n;i++)
  {int x,y;
    cin>>x>>y;
   pairs x1 = make_pair(x, y);
    s.insert(x1); 
  }
   for (auto const &c : s) { 
         if((c.first*c.first+c.second*c.second<=d*d)
      cnt++; 
  
   
   } 
  
 
  cout<<cnt;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:53: error: expected ';' before 'cnt'
   21 |          if((c.first*c.first+c.second*c.second<=d*d)
      |                                                     ^
      |                                                     ;
   22 |       cnt++;
      |       ~~~                                            
a.cc:25:4: error: expected primary-expression before '}' token
   25 |    }
      |    ^
a.cc:22:13: error: expected ')' before '}' token
   22 |       cnt++;
      |             ^
      |             )
......
   25 |    }
      |    ~         
a.cc:21:12: note: to match this '('
   21 |          if((c.first*c.first+c.second*c.second<=d*d)
      |            ^
a.cc:25:4: error: expected primary-expression before '}' token
   25 |    }
      |    ^
Language: C++

#include<bits\stdc++.h>
using namespace std;
int main()
{
	int  n;
	float d,t=0;
	cin>>n>>d;
	float a[n],b[n];
	for(int i=0;i<n;i++)
	{
		cin>>a[i]>>b[i];
		float m=sqrt(a[i]*a[i]+b[i]*b[i]);
	     if(m>d-1 && m<d+1)
		t++;
	}
	cout<<t;
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
	int a, n, X, Y, s;
    cin >> a >> n;
   	for(int i = 1;; i++)
    {
      	cin >> x >> y;
      	if(x == a && y = n) s++;
		cout << s << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 'x' was not declared in this scope
    8 |         cin >> x >> y;
      |                ^
a.cc:8:21: error: 'y' was not declared in this scope
    8 |         cin >> x >> y;
      |                     ^
Language: Java

import java.util.Scanner;
public class Distance{	
public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
			int no_input = sc.nextInt();
			int max_distance = sc.nextInt();
			int cnt = 0;
			for(int i=0; i<no_input; i++) {
				int x = sc.nextInt();
				int y = sc.nextInt();
				double z = Math.sqrt((x*x)+(y*y));
				if(z<=max_distance)
					cnt++;
			}
			System.out.println(cnt);
		}
}

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

#include<bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef long double ld;
const double pi = 3.14159265358979323846;
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
int main()
{
  ll n,k,c=0;
  cin>>n>>k;
  
  ld x,y;
  
  for(int i=0;i<n;i++)
  {
    cin>>x>>y;
    
    if(sqrt(x*x+y*y)>=k)
      c++
  }
  cout<<c;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: expected ';' before '}' token
   20 |       c++
      |          ^
      |          ;
   21 |   }
      |   ~
Language: C++

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

int main() {
  int N, D;
  cin >> N, D;
  
  N, D = 12 3
1 1
1 1
1 1
1 1
1 2
1 3
2 1
2 2
2 3
3 1
3 2
3 3
    cout << 7 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before numeric constant
    8 |   N, D = 12 3
      |            ^~
      |            ;
Language: C++

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

typedef long long ll;

int main(void)
{   ios::sync_with_stdio(false);
    ll d, n, x, y, count=0;
    cin>>n>>d;
    while(n--){
        cin>>x>>y;
        if(y*y<=d*d-x*x)
            count++;
        cout<<count<<'\n'’;
    }
    return 0;
}


Compiler output:
a.cc:14:22: error: extended character ’ is not valid in an identifier
   14 |         cout<<count<<'\n'’;
      |                      ^
a.cc: In function 'int main()':
a.cc:14:22: error: unable to find character literal operator 'operator""\U00002019' with 'char' argument
   14 |         cout<<count<<'\n'’;
      |                      ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n;
  double d;
  cin>>n>>d;
  int arr[n][2];
  for(int i =0;i<n;i++)
  {for(int j =0;j<2;j++)
  {
    cin>>arr[i][j];
  }
  }
  int count = 0;
  for(int i =0;i<n;i++)
  {
    double ans = sqrt(1.0(arr[i][0]*arr[i][0])+(arr[i][1]*arr[i][1]));
    if(ans<=d)
      count++;
  }
  cout<<count<<endl;
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:18:26: error: expression cannot be used as a function
   18 |     double ans = sqrt(1.0(arr[i][0]*arr[i][0])+(arr[i][1]*arr[i][1]));
      |                       ~~~^~~~~~~~~~~~~~~~~~~~~
Language: C++

#include"iostream"
using namespace std;
typedef pair<int, int> pairs; 
int main()
{
int n;
int d;

    set<pairs> s; 
  cin>>n>>d;
  long long x[n];
  long long  y[n];
  long long  cnt=0;
  for(int i=0;i<n;i++)
  {int x,y;
    cin>>x>>y;
   pairs x = make_pair(x, y);
    s.insert(x); 
  }
   for (auto const &c : s) { 
         if((c.first*c.first+c.second*c.second<=d*d)
      cnt++; 
  
   
   } 
  

  cout<<cnt;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'set' was not declared in this scope
    9 |     set<pairs> s;
      |     ^~~
a.cc:2:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    1 | #include"iostream"
  +++ |+#include <set>
    2 | using namespace std;
a.cc:9:14: error: expected primary-expression before '>' token
    9 |     set<pairs> s;
      |              ^
a.cc:9:16: error: 's' was not declared in this scope
    9 |     set<pairs> s;
      |                ^
a.cc:17:10: error: conflicting declaration 'pairs x'
   17 |    pairs x = make_pair(x, y);
      |          ^
a.cc:15:8: note: previous declaration as 'int x'
   15 |   {int x,y;
      |        ^
a.cc:25:4: error: expected primary-expression before '}' token
   25 |    }
      |    ^
a.cc:22:13: error: expected ')' before '}' token
   22 |       cnt++;
      |             ^
      |             )
......
   25 |    }
      |    ~         
a.cc:21:12: note: to match this '('
   21 |          if((c.first*c.first+c.second*c.second<=d*d)
      |            ^
a.cc:25:4: error: expected primary-expression before '}' token
   25 |    }
      |    ^
Language: C


Copy
Copy
#include<stdio.h>
#include<math.h>
int main(){
 
  int n,m;
  scanf("%d %d",&n,&m);
  
  int b[n],x;
  int count = 0;
  int arr[n][2];
  for(int i = 0; i<n;i++){
  	for(int j = 0; j<2;j++){
    	scanf("%d",&arr[i][j]);
    }
    x = arr[i][0]*2 + arr[i][1]*2;
    b[i] = sqrt(x);
  }
  
  for(int a = 0;a<n;a++){
  
  	if(b[a]==m){
    count++;
    }
  }
  
  
 
}

Compiler output:
main.c:2:1: error: unknown type name 'Copy'
    2 | Copy
      | ^~~~
main.c:3:5: error: expected ';' before 'typedef'
    3 | Copy
      |     ^
      |     ;
Language: C

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

int main(void){
  int N;
  double D;
  int i;
  double x,y;
  int count=0;
  double sum=0;
  double distance=0;
  
  scanf_s("%d %lf",&N,&D);
  for(i=0; i<N; i++){
    scanf_s("%lf %lf",&x,&y);
    sum=x*x+y*y;
    distance=sqrt(sum);
    printf("%f\n",distance);
    if(distance<=D){
      count++;
    }
  }
  printf("%d\n",count);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   13 |   scanf_s("%d %lf",&N,&D);
      |   ^~~~~~~
      |   scanf
Language: Java

import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.*;
import java.math.BigInteger;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    BigInteger D = scan.nextBigInteger();
    BigInteger X[] = new BigInteger[N];
    BigInteger Y[] = new BigInteger[N];
    int count = 0;
    BigInteger rlt1, rlt2, rlt;
    BigInteger dd = D.multiply(D);
    for (int i = 0;i < N;i++) {
      X[i] = scan.nextBigInteger();
      Y[i] = scan.nextBigInteger();
      rlt1 = X[i].multiply(X[i]);
      rlt2 = Y[i].multiply(Y[i]);
      rlt = rlt1.add(rlt2);
      if (rlt.compareTo(dd)<=0) {
        count += 1;
      }
    }
    System.out.println(count);
  }
}


import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;
import java.util.Collections;
import java.util.*;
import java.math.BigInteger;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    BigInteger D = scan.nextBigInteger();
    BigInteger X[] = new BigInteger[N];
    BigInteger Y[] = new BigInteger[N];
    int count = 0;
    BigInteger rlt1, rlt2, rlt;
    BigInteger dd = D.multiply(D);
    for (int i = 0;i < N;i++) {
      X[i] = scan.nextBigInteger();
      Y[i] = scan.nextBigInteger();
      rlt1 = X[i].multiply(X[i]);
      rlt2 = Y[i].multiply(Y[i]);
      rlt = rlt1.add(rlt2);
      if (rlt.compareTo(dd)<=0) {
        count += 1;
      }
    }
    System.out.println(count);
  }
}




Compiler output:
Main.java:34: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:35: error: class, interface, enum, or record expected
import java.util.List;
^
Main.java:36: error: class, interface, enum, or record expected
import java.util.ArrayList;
^
Main.java:37: error: class, interface, enum, or record expected
import java.util.Comparator;
^
Main.java:38: error: class, interface, enum, or record expected
import java.util.Arrays;
^
Main.java:39: error: class, interface, enum, or record expected
import java.util.Collections;
^
Main.java:40: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:41: error: class, interface, enum, or record expected
import java.math.BigInteger;
^
8 errors
Language: C++

#include<iostream>
using namespace std;
int main() {
	int N,count = 0;
	double X[20000], Y[20000],D,x;
	cin >> N;
	cin >> D;
	for (int i = 0; i < N; i++)
	{
		cin >> X[i];
		cin >> Y[i];
		x = X[i] * X[i] + Y[i] * Y[i];
		x = sqrt(x);

		if (D >= x)count++;
		
	}
	cout << count;
	return 0;

}

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

#include<bits/stdc++.h>
using namespace std;
#define int long long;
long long main(){
    int N,D;
    cin>>N>>D;
    vector <vector<long long>> vec (N,vector<long long>(2));
    for(int i=0;i<N;i++){
        cin>>vec.at(i).at(0)>>vec.at(i).at(1);
    } 
    vector <long long> distance (N);
    int result=0;
    for(int i=0;i<N;i++){
        for(int j=0;j<2;j++){
            vec.at(i).at(j)=vec.at(i).at(j)*vec.at(i).at(j);
        }
        distance.at(i)=vec.at(i).at(0)+vec.at(i).at(1);
        if(distance.at(i)<=D*D){
            result++;
        }
    }
    cout<<result<<endl;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
a.cc:5:5: note: in expansion of macro 'int'
    5 |     int N,D;
      |     ^~~
a.cc:5:9: error: 'N' was not declared in this scope
    5 |     int N,D;
      |         ^
a.cc:5:11: error: 'D' was not declared in this scope
    5 |     int N,D;
      |           ^
a.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
a.cc:8:9: note: in expansion of macro 'int'
    8 |     for(int i=0;i<N;i++){
      |         ^~~
a.cc:8:13: error: 'i' was not declared in this scope
    8 |     for(int i=0;i<N;i++){
      |             ^
a.cc:8:20: error: expected ')' before ';' token
    8 |     for(int i=0;i<N;i++){
      |        ~           ^
      |                    )
a.cc:8:21: error: 'i' was not declared in this scope
    8 |     for(int i=0;i<N;i++){
      |                     ^
a.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
a.cc:12:5: note: in expansion of macro 'int'
   12 |     int result=0;
      |     ^~~
a.cc:12:9: error: 'result' was not declared in this scope
   12 |     int result=0;
      |         ^~~~~~
a.cc:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
a.cc:13:9: note: in expansion of macro 'int'
   13 |     for(int i=0;i<N;i++){
      |         ^~~
a.cc:13:20: error: expected ')' before ';' token
   13 |     for(int i=0;i<N;i++){
      |        ~           ^
      |                    )
Language: C++

#include<bits/stdc++.h>
using namespace std;
define int long long;
long long main(){
    int N,D;
    cin>>N>>D;
    vector <vector<long long>> vec (N,vector<long long>(2));
    for(int i=0;i<N;i++){
        cin>>vec.at(i).at(0)>>vec.at(i).at(1);
    } 
    vector <long long> distance (N);
    int result=0;
    for(int i=0;i<N;i++){
        for(int j=0;j<2;j++){
            vec.at(i).at(j)=vec.at(i).at(j)*vec.at(i).at(j);
        }
        distance.at(i)=vec.at(i).at(0)+vec.at(i).at(1);
        if(distance.at(i)<=D*D){
            result++;
        }
    }
    cout<<result<<endl;
}

Compiler output:
a.cc:3:1: error: 'define' does not name a type
    3 | define int long long;
      | ^~~~~~
cc1plus: error: '::main' must return 'int'
Language: C++

#include<iostream>

using namespace std;
int main()
{
	int N, D, p, q;
	int x = 0;
	cin >> N >> D;
	for (; N != 0; --N)
	{
		
		cin >> p >> q;
		if (sqrt(p*p+ q*q) <= D)
		{
			++x;
		}
		
	}
	cout << x;
}

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

    #include <bits/stdc++.h>
     
    using namespace std;
     
    int main(){
     
        double n,d;
     
        cin >> n >> d;
        
        double x,y;
        double dis=d*d,cont=0;
        
        for(double i=0;i<n;i++){
               cin >> x >> y;
               if((x*x) +(y*y)>=dis){
                   cont++;
               
                }
        }
     
        cout << cont;
        cout << "\n";
        
        return 0;
    }

#include <bits/stdc++.h>

using namespace std;

int main(){

    double n,d;

    cin >> n >> d;
    
    double x,y;
    double dis=d*d,cont=0;
    
    for(double i=0;i<n;i++){
           cin >> x >> y;
           if((x*x) + (y*y)<=dis){
               cont++;
           
            }
    }

    cout << cont;
    cout << "\n";
    
    return 0;
}



Compiler output:
a.cc:32:5: error: redefinition of 'int main()'
   32 | int main(){
      |     ^~~~
a.cc:5:9: note: 'int main()' previously defined here
    5 |     int main(){
      |         ^~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
	int n, d;
	int count = 0;
	int loop = 0;
	cin >> n >> d;
	int x, y;
	while (loop < n) {
		cin >> x >> y;
		if (sqrt(x * x + y * y <= d))count++;
		loop++;
	}
	cout << count << endl;
}

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

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

Compiler output:
a.cc:6:5: error: expected unqualified-id before '{' token
    6 |     {
      |     ^
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[];
		X = new int[N+1];
        int Y[];
		Y = new int[N+1];
        for (int i = 0; i < N; i++){
			 X[i] = sc.nextInt();
			 Y[i] = sc.nextInt();
        }
        int L[];
        L=new int[N+1];
        int Nstep ;
        Nstep=0;
        for (int j = 0; j < N; j++){
        L[j]=((X[j])^2+(Y[j])^2)^(1/2);
        if (L<=D){
        	Nstep=Nstep+1;
        }
        }
		// 出力
		System.out.println(Nstep);
	}
}


Compiler output:
Main.java:23: error: bad operand types for binary operator '<='
        if (L<=D){
             ^
  first type:  int[]
  second type: int
1 error
Language: C++

#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main(){
 int n,d;
 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];
 }
  
 for(i=0;i<n;i++){
   for(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:20:19: error: expected ')' before ';' token
   20 |    for(j=0;j<n;j++;){
      |       ~           ^
      |                   )
a.cc:20:20: error: expected primary-expression before ')' token
   20 |    for(j=0;j<n;j++;){
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
   long long int N;
   float D;
   cin>>N>>D;
  long long int ct=0
   while(N--)
   {  
      
      long long int x,y;
     cin>>x>>y;
      float R;
      R=sqrt(x*x+y*y);
      if(R<D)
        ct++;
   }
  cout<<ct<<endl;
}

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

int main() {
	int N, D, X[1000], Y[1000];
	int ans[1000];
	int c=0;
	cin >> N>>D;
	for (int i = 0; i < N; i++) {
		cin >> X[i] >> Y[i];
	}
	for (int j = 0; j < N; j++) {
		ans[j]=(X[j] * X[j]) + (Y[j] * Y[j]);
		if (ans[j] <= D * D) c++;

	}
	cout << c;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: expected initializer before '*' token
   16 |   int l * l = L;
      |         ^
a.cc:17:10: error: 'l' was not declared in this scope
   17 |   cin >> l;
      |          ^
Language: C

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

  int n,m;
  scanf("%d %d",&n,&m);
  
  int b[n],x;
  int count = 0;
  int arr[n][2]
  for(int i = 0; i<n;i++){
  	for(int j = 0; j<2;j++){
    	scanf("%d",&arr[i][j]);
    }
    x = arr[i][0]*2 + arr[i][1]*2;
    b[i] = sqrt(x);
  }
  
  for(int a = 0;a<n;a++){
  
  	if(b[a]==m){
    count++;
    }
  }
  
  

}

Compiler output:
main.c: In function 'main':
main.c:11:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
   11 |   for(int i = 0; i<n;i++){
      |   ^~~
main.c:13:21: error: 'arr' undeclared (first use in this function)
   13 |         scanf("%d",&arr[i][j]);
      |                     ^~~
main.c:13:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'long' specified with 'float'
   11 |   long float d3;
      |   ^~~~
Language: C++

#include <iostream>
#include <math.h>

using namespace std;

int main()
{
int N,D;
cin >> N >> D;
double a[N][2];
for(int i=0;i < N;i++)
{
cin >> a[i][0] >> a[i][1];
}
double dBuf = 0;
int counter = 0;
for(int j=0;j < N;j++)
{
dBuf = sqrt(a[i][1]*a[i][1]+a[i][0]*a[i][0]);
if(dBuf <= D)
{
counter++;
}
}
cout << counter << endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:15: error: 'i' was not declared in this scope
   19 | dBuf = sqrt(a[i][1]*a[i][1]+a[i][0]*a[i][0]);
      |               ^
Language: C++

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

int main() {
	double n,d,ans = 0,x,y;
  cin >> n >> d;
  int waru = 1000
  for(int i=0; i<n; i++){
  	cin >> x >> y;
    x /= waru;
    y /= waru;
    double poow = x * x + y * y;
      poow = pow(poow,0.5);
    if(poow <= d/waru*waru) ans++;
  }
  cout << ans;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for(int i=0; i<n; i++){
      |   ^~~
a.cc:9:16: error: 'i' was not declared in this scope
    9 |   for(int i=0; i<n; i++){
      |                ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'X' was not declared in this scope
   11 |   int L = X * X + Y * Y;
      |           ^
a.cc:11:19: error: 'Y' was not declared in this scope
   11 |   int L = X * X + Y * Y;
      |                   ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: conversion from 'float' to 'long unsigned int' in a converted constant expression
    8 |   float x[n],y[n];
      |           ^
a.cc:8:11: error: could not convert 'n' from 'float' to 'long unsigned int'
    8 |   float x[n],y[n];
      |           ^
      |           |
      |           float
a.cc:8:11: error: size of array 'x' has non-integral type 'float'
a.cc:8:16: error: conversion from 'float' to 'long unsigned int' in a converted constant expression
    8 |   float x[n],y[n];
      |                ^
a.cc:8:16: error: could not convert 'n' from 'float' to 'long unsigned int'
    8 |   float x[n],y[n];
      |                ^
      |                |
      |                float
a.cc:8:16: error: size of array 'y' has non-integral type 'float'
a.cc:12:9: error: invalid types 'float [1][float]' for array subscript
   12 |   cin>>x[i]>>y[i];
      |         ^
a.cc:12:15: error: invalid types 'float [1][float]' for array subscript
   12 |   cin>>x[i]>>y[i];
      |               ^
a.cc:13:8: error: invalid types 'float [1][float]' for array subscript
   13 |   n_d=x[i]*x[i]+y[i]*y[i];
      |        ^
a.cc:13:13: error: invalid types 'float [1][float]' for array subscript
   13 |   n_d=x[i]*x[i]+y[i]*y[i];
      |             ^
a.cc:13:18: error: invalid types 'float [1][float]' for array subscript
   13 |   n_d=x[i]*x[i]+y[i]*y[i];
      |                  ^
a.cc:13:23: error: invalid types 'float [1][float]' for array subscript
   13 |   n_d=x[i]*x[i]+y[i]*y[i];
      |                       ^
Language: C

#include <stdio.h>

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


Compiler output:
main.c: In function 'main':
main.c:13:24: error: expected expression before '<=' token
   13 |     if (x * x + y * y) <= d)
      |                        ^~
main.c:13:28: error: expected statement before ')' token
   13 |     if (x * x + y * y) <= d)
      |                            ^
Language: C++

#include<iostream> 
#include <algorithm>
#include <vector>
#include <cstdlib>
#include <sstream>
#include <vector>

using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)

int main()
{
	long long int n;
	long float d, x, y, ans = 0;
	cin >> n>> d;
	for(long long int i=0;i<n;i++)
	{
		cin >> x >> y;
		
		if (x * x + y * y < d * d+1) {
			ans += 1;
		}
	}
	cout << ans << endl;
	return 0;
}//どうして・・・(´･_･`)


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'long' specified with 'float'
   15 |         long float d, x, y, ans = 0;
      |         ^~~~
a.cc:15:9: error: 'long' specified with 'float'
a.cc:15:9: error: 'long' specified with 'float'
a.cc:15:9: error: 'long' specified with 'float'
Language: C++

#include <iostream>
#include <math.h>

using namespace std;

int main()
{
int N,D;
cin >> N >> D;
int double[N][2];
for(int i=0;i < N;i++)
{
cin >> a[i][0] >> a[i][1];
}
double dBuf = 0;
int counter = 0;
for(int j=0;j < N;j++)
{
dBuf = sqrt(a[i][1]*a[i][1]+a[i][0]*a[i][0]);
if(dBuf <= D)
{
counter++;
}
}
cout << counter << endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: two or more data types in declaration of 'structured binding'
   10 | int double[N][2];
      | ^~~
a.cc:10:12: error: conflicting declaration 'auto N'
   10 | int double[N][2];
      |            ^
a.cc:8:5: note: previous declaration as 'int N'
    8 | int N,D;
      |     ^
a.cc:10:14: error: expected initializer before '[' token
   10 | int double[N][2];
      |              ^
a.cc:13:8: error: 'a' was not declared in this scope
   13 | cin >> a[i][0] >> a[i][1];
      |        ^
a.cc:19:13: error: 'a' was not declared in this scope
   19 | dBuf = sqrt(a[i][1]*a[i][1]+a[i][0]*a[i][0]);
      |             ^
a.cc:19:15: error: 'i' was not declared in this scope
   19 | dBuf = sqrt(a[i][1]*a[i][1]+a[i][0]*a[i][0]);
      |               ^
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 (sqrt(pow(x + y, 2) - 2 * x * y) <= d) {
				res++;
			}
		}
	}

	cout << res << endl;
	
}

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

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	int n,m,i=1,j=0,x[10000],y[10000];
	long long double s;
	cin>>n>>m;
	while(n--){
		cin>>x[i]>>y[i];
		s=sqrt(pow(x[i],2)+pow(y[i],2));
		i++;
		if(s<=m) j++;
	}
	cout<<j;
	return  0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: 'long long' specified with 'double'
    7 |         long long double s;
      |              ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
   long long int N;
   float D;
   cin>>N>>D;
   while(N--)
   {  
      
      long long int x,y,ct=0;
      float R;
      R=sqrt(x*x+y*y);
      if(R<D)
        ct++;
   }
  cout<<ct<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'ct' was not declared in this scope
   17 |   cout<<ct<<endl;
      |         ^~
Language: C++

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

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

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

int main();
{	
  int n,d, count = 0;
  int a[20000], b[20000];
  cin >> n >> d;
  for (int i = 1; i <= n; i++)
    cin >> a[i] >> b[i];
  for (int i = 1; i <= n; i++)
  {
    if (sqrt(a[i]*a[i]+b[i]*b[i]) <= d)
      count++;
  }
  cout << count << endl;
  return 0;
}

Compiler output:
a.cc:6:1: error: expected unqualified-id before '{' token
    6 | {
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:31: error: unable to find numeric literal operator 'operator""y'
   11 |         float d1=sqrt(1.0*x*x+1.0y*y);
      |                               ^~~~
Language: C++

int main() {
	int N, D, X[1000], Y[1000];
	int ans[1000];
	int c=0;
	cin >> N>>D;
	for (int i = 0; i < N; i++) {
		cin >> X[N] >> Y[N];
	}
	for (int j = 0; j < N; j++) {
		ans[N]=(X[N] * X[N]) + (Y[N] * Y[N]);
		if (ans[N] <= D * D) c++;

	}
	cout << c;
}

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

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

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


  
  for (int i = 0; i < N; i++) {
   
      if (((X.at(i) * X.at(i)) + (Y.at(i) * Y.at(i))) =< (D * D) ) {
        num++;
      
    }
  }

  cout << num << endl;
}



  
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:56: error: expected primary-expression before '<' token
   21 |       if (((X.at(i) * X.at(i)) + (Y.at(i) * Y.at(i))) =< (D * D) ) {
      |                                                        ^
a.cc: At global scope:
a.cc:33:1: error: expected unqualified-id before 'return'
   33 | return 0;
      | ^~~~~~
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: C++

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


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

#include<bits/stdc++.h>
using namespace std;
#define int long long
int main(){
    int N,D;
    cin>>N>>D;
    vector <vector<long long>> vec (N,vector<long long>(2));
    for(int i=0;i<N;i++){
        cin>>vec.at(i).at(0)>>vec.at(i).at(1);
    } 
    vector <long long> distance (N);
    int result=0;
    for(int i=0;i<N;i++){
        distance.at(i)=vec.at(i).at(0)*vec.at(i).at(0)+vec.at(i).at(1)*vec.at(i).at(1);
        if(distance.at(i)<=D*D){
            result++;
        }
    }
    cout<<result<<endl;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main(){
  int A, B;
  cin >> A >> B;
  ll X[A];
  ll Y[A];
  int num = 0;
  for(int i { 0 }; i < A; ++i){
        cin >> X[i];
  }
   for(int i { 0 }; i < A; ++i){
        cin >> Y[i];
  }
  for (int a = 0; a < A; ++a) {
    if (X[i]<=B){
      if(Y[i]<=C){
        ll result = sqrt(X[i]**2 + Y[i]**2)
        if(result<=B){
          num = num+1 ;
        }
        
      }
    }
    
  }
  cout << num << endl;
  return 0;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: 'i' was not declared in this scope
   20 |     if (X[i]<=B){
      |           ^
a.cc:21:16: error: 'C' was not declared in this scope
   21 |       if(Y[i]<=C){
      |                ^
a.cc:22:31: error: invalid type argument of unary '*' (have 'int')
   22 |         ll result = sqrt(X[i]**2 + Y[i]**2)
      |                               ^~
a.cc:22:41: error: invalid type argument of unary '*' (have 'int')
   22 |         ll result = sqrt(X[i]**2 + Y[i]**2)
      |                                         ^~
Language: C++

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


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

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


Compiler output:
a.cc:25:2: error: 'cout' does not name a type
   25 |  cout << l <<endl;
      |  ^~~~
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

int main() {
	int N, D, X[2000], Y[2000];
	int ans[2000];
	int c;
	cin >> N>>D;
	for (int i = 0; i < N; i++) {
		cin >> X[N] >> Y[N];
	}
	for (int j = 0; j < N; j++) {
		ans[N]=(X[N] * X[N]) + (Y[N] * Y[N]);
		if (ans[N] <= D * D) c++;

	}
	cout << c;
}

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

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

int 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: In function 'int main()':
a.cc:11:24: error: expected primary-expression before '<' token
   11 |     if (X * X + Y * Y =< D * D)
      |                        ^
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int c = 0;
        int N = sc.nextInt();
        int D = sc.nextInt();
        double[] X = new double[N];
        double[] Y = new double[N];
        double[] X2 = new double[N];
        double[] Y2 = new double[N];
        double[] K = new double[N];
        for (int i = 0; i < N; i++) {
            X[i] = sc.nextDouble();
            Y[i] = sc.nextDouble();
            X2[i] = X[i]*X[i];
            Y2[i] = Y[i]*Y[i];
            K[i] = Math.sqrt(X2[i] + Y2[i]);
            if (K[i] <= D) {
                c = c + 1;
            } else {
                c = c;
            }
        }
        System.out.println(c);
    }
}

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

#include<iostream>
#include<cmath>
#include<cstdio>
#include<algorithm>
 int main()
 {
   int n,d;
   int *x , *y;
   double *dist;
   int i=0;
   cin>>n>>d;
   int n1=n;
   while(n1)
   {
     if(i>n)
       break;
     cin>>x[i];
     cin>>y[i];
     --n1;
     dist[i]=sqrt(x[i]*x[i] + y[i]*y[i]);
                  i++;     
   }
   int k=0;
   i=0;
   while(i<n)
   {
    if(dist[i] >= d)
    {
      ++k;
    }
     i++;
   }
   cout<<k;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |    cin>>n>>d;
      |    ^~~
      |    std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:33:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   33 |    cout<<k;
      |    ^~~~
      |    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/stdc++.h>
using namespace std;
#define int long long
int main(){
    int N,D;
    cin>>N>>D;
    vector <vector<int>> vec (N,vector<int>(2));
    for(int i=0;i<N;i++){
        cin>>vec.at(i).at(0)>>vec.at(i).at(1);
    } 
    vector <long long> distance (N);
    int result=0;
    for(int i=0;i<N;i++){
        distance.at(i)=vec.at(i).at(0)*vec.at(i).at(0)+vec.at(i).at(1)*vec.at(i).at(1);
        if(distance.at(i)<=D*D){
            result++;
        }
    }
    cout<<result<<endl;
}

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

#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main(){
 int n,d;
 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: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: C++

#include<bits/stdc++.h>
using namespace std;
 
int dist(int a[], int n, int d)
{
	int x,count=0;
  	for(int i=0;i<n;i++)
    {
    	x=sqrt((pow(a[i][0],2) + pow(a[i][1],2)));
      	if(x<d)
          count++;
    }
  return count;
}
 
int main()
{
	int n,d;
  	cin>>n>>d;
  	int a[n][2];
  	//vector<vector<int>> a(n,temp);
  	for(int i=0;i<n;i++)
    {
    	cin>>a[i][0]>>a[i][1];
    }
  	int res=dist(a,n,d);
  	cout<<res;
}


Compiler output:
a.cc: In function 'int dist(int*, int, int)':
a.cc:9:25: error: invalid types 'int[int]' for array subscript
    9 |         x=sqrt((pow(a[i][0],2) + pow(a[i][1],2)));
      |                         ^
a.cc:9:42: error: invalid types 'int[int]' for array subscript
    9 |         x=sqrt((pow(a[i][0],2) + pow(a[i][1],2)));
      |                                          ^
a.cc: In function 'int main()':
a.cc:26:22: error: cannot convert 'int (*)[2]' to 'int*'
   26 |         int res=dist(a,n,d);
      |                      ^
      |                      |
      |                      int (*)[2]
a.cc:4:14: note:   initializing argument 1 of 'int dist(int*, int, int)'
    4 | int dist(int a[], int n, int d)
      |          ~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
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];
 int k;
 int 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:6: error: redeclaration of 'int k'
   11 |  int k;
      |      ^
a.cc:5:10: note: 'int k' previously declared here
    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: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: 'X' was not declared in this scope
   11 |   int L = X * X + Y * Y;
      |           ^
a.cc:11:19: error: 'Y' was not declared in this scope
   11 |   int L = X * X + Y * Y;
      |                   ^
a.cc:14:9: error: expected initializer before '*' token
   14 |   int l * l = L;
      |         ^
a.cc:15:10: error: 'l' was not declared in this scope
   15 |   cin >> l;
      |          ^
Language: C++

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
int main(){
  cin >> N;
  cin >> D;
  int c=0;
  int z=0;
  for(int i=0;i<N;i++){
    cin >> x;
    cin >> y;
    z= x*x + y*y ;
    if( sqrt(z) <= D){
      c++;
  }
 
  return c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'N' was not declared in this scope
    5 |   cin >> N;
      |          ^
a.cc:6:10: error: 'D' was not declared in this scope
    6 |   cin >> D;
      |          ^
a.cc:10:12: error: 'x' was not declared in this scope
   10 |     cin >> x;
      |            ^
a.cc:11:12: error: 'y' was not declared in this scope
   11 |     cin >> y;
      |            ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;

public class A{
	public static void main(String args[]){
     	Scanner sc = new Scanner(System.in);
      	int n = sc.nextInt();
      	int d = sc.nextInt();
        int count = 0;
        while(n-->0){
        	int a = sc.nextInt();
            int b = sc.nextInt();
            double ans = Math.sqrt(a*a + b*b);
            if(ans<=d)
            count++;
        }
        System.out.println(count);
    }
}


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

#include<bits/stdc++.h>
using namespace std;
 
int dist(vector<vector<int>> &a, int n, int d)
{
	int count=0;
  	float x;
  	for(int i=0;i<n;i++)
    {
    	x=float(sqrt((pow(a[i][0],2) + pow(a[i][1],2)));
      	if(x<d)
          count++;
    }
  return count;
}
 
int main()
{
	int n,d;
  	cin>>n>>d;
  	vector<int> temp(2);
  	vector<vector<int>> a(n,temp);
  	for(int i=0;i<n;i++)
    {
    	cin>>a[i][0]>>a[i][1];
    }
  	int res=dist(a,n,d);
  	cout<<res;
}


Compiler output:
a.cc: In function 'int dist(std::vector<std::vector<int> >&, int, int)':
a.cc:10:11: error: expected primary-expression before 'float'
   10 |         x=float(sqrt((pow(a[i][0],2) + pow(a[i][1],2)));
      |           ^~~~~
Language: C++

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

int main() {
	// your code goes here
	int n;long long int d;
	cin>>n>>d;
	if(t>=30)
    long long int x[n];
    long long int y[n];
    for(int i=0;i<n;i++)
    {
     cin>>x[i];
     cin>>y[i];
    }
    int a=0;
    for(int i=0;i<n;i++)
     {
     	if(x[i]*x[i]+y[i]*y[i]<=d*d)
     	 a++;
     }
     cout<<a<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 't' was not declared in this scope
    8 |         if(t>=30)
      |            ^
a.cc:13:11: error: 'x' was not declared in this scope
   13 |      cin>>x[i];
      |           ^
a.cc:19:12: error: 'x' was not declared in this scope
   19 |         if(x[i]*x[i]+y[i]*y[i]<=d*d)
      |            ^