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

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

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

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

Compiler output:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
a.cc:41:1: error: 'Submission' does not name a type
   41 | Submission Info
      | ^~~~~~~~~~
Language: C++

 // ---- My Template start------- //
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define endl '\n'
#define pll pair<ll,ll>
#define pii pair<int,int>
#define mp make_pair
#define pb push_back
#define flash ios_base::sync_with_stdio(0);
// ---- My Template end------- //
ll power(ll x, ll y, ll p){
    ll res = 1;
    x = x % p;
    while (y > 0){
        if (y & 1)
            res = (res*x) % p;
        y = y>>1;
        x = (x*x) % p;
    }
    return res%p;
}

int main(){ 
	int n;
    int  d;
    int cnt=0;
	cin>>n>>d;
	while(n--){
		long long a,b; cin>>a>>b;
        //cout<<a<<endl;
        if(sqrt(((1ll)a*a + (1ll)b*b)) <= d) cnt++;
        cout<<sqrtf((a*a + b*b))<<endl;
	}
    cout<<cnt;
return 0; 
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:32:23: error: expected ')' before 'a'
   32 |         if(sqrt(((1ll)a*a + (1ll)b*b)) <= d) cnt++;
      |                 ~     ^
      |                       )
a.cc:32:51: error: expected ')' before ';' token
   32 |         if(sqrt(((1ll)a*a + (1ll)b*b)) <= d) cnt++;
      |                ~                                  ^
      |                                                   )
a.cc:32:51: error: expected ')' before ';' token
   32 |         if(sqrt(((1ll)a*a + (1ll)b*b)) <= d) cnt++;
      |           ~                                       ^
      |                                                   )
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(){
  int N;
  long long D;
  cin >> N >> D;
  long long X[N];
  long long Y[N];
  int Sum=0;
  long long k;
  int i=0;
  while(cin >> X[i] >> Y[i]){
    k=sqrt((X[i])*(X[i])+(Y[i])*(Y[i]);
    if(k<=D){Sum++;}
    i++;
  }
  cout << Sum << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:39: error: expected ')' before ';' token
   14 |     k=sqrt((X[i])*(X[i])+(Y[i])*(Y[i]);
      |           ~                           ^
      |                                       )
Language: C++

#include<iostream>
#include<cmath>

using namespace std;

int main(){
  int n,d,sum = 0;
  cin >> n >> d;
  while(n--){
  	int a,b;
    cin >>a >> b;
    if(sqrt(pow(a,2)+pow(b,2) >= d){
      sum++;
    }
  }
       cout << sum;
    
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:36: error: expected ')' before '{' token
   12 |     if(sqrt(pow(a,2)+pow(b,2) >= d){
      |       ~                            ^
      |                                    )
a.cc:15:3: error: expected primary-expression before '}' token
   15 |   }
      |   ^
Language: C++

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

int main()
{
    #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ll n,i,j,m,c=0,a,b;
    cin>>n>>m;
    for(i=0;i<n;i++)
    {
        cin>>a>>b;
       double d=sqrt(a*a+b*b);
       if(d<=m)
        c++;
    }
    cout<<c<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    9 | int main()
      |         ^~
a.cc:9:9: note: remove parentheses to default-initialize a variable
    9 | int main()
      |         ^~
      |         --
a.cc:9:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:10:1: error: a function-definition is not allowed here before '{' token
   10 | {
      | ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
    int n,d;
    int b=0;
    long double a
    long int x,y;
    cin >> n >> d;
    
    for(int f=0;f<n;f++){
        cin >> x >> y;
        a=sqrt(x*x+y*y);
        if(a<=d){
            b=b+1;
        }
    }
    cout << b;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'long'
    8 |     long int x,y;
      |     ^~~~
a.cc:12:16: error: 'x' was not declared in this scope
   12 |         cin >> x >> y;
      |                ^
a.cc:12:21: error: 'y' was not declared in this scope
   12 |         cin >> x >> y;
      |                     ^
a.cc:13:9: error: 'a' was not declared in this scope
   13 |         a=sqrt(x*x+y*y);
      |         ^
Language: C++

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

int main() {
 int a, b;
  cin >> a >> b;
  int c, d,e;
  int count=0;
  for(int i = 0;i<a;i++){
    cin >> c >> d;
    e = c*c + d*d;
    if(a*a=<e) count++;
  }
  cout << count << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected primary-expression before '<' token
   12 |     if(a*a=<e) count++;
      |            ^
Language: C++

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

int main() {
 int a, b;
  cin >> a >> b;
  int c, d;
  int count=0;
  for(int i = 0;i<a;i++){
    cin >> c >> d;
    if(a*a=<(c*c+d*d)) count++;
  }
  cout << count << endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected primary-expression before '<' token
   11 |     if(a*a=<(c*c+d*d)) count++;
      |            ^
Language: C++

#include <bits/stdc++.h>
#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++)
#define pi 3.14159265359
#define all(i) i.begin(),i.end()
using namespace std;
const long long INF=1e9+7;
const string alp="abcdefghijklmnopqrstuvwxyz"; //26
const string ALP="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
typedef long long ll;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef pair<ll,ll> P;
typedef tuple<ll,ll,ll> T;
//const ll MOD=998244353LL;
//const ll MOD=1777777777LL;


int main() {
  ll N,D;
  cin>>N>>D;
  ll x[N],y[N];
  rep(i,N) cin>>x[i]>>y[i];
  ll ans=0;
  rep(i,N){
    if(x[i]*x[i]+y[i]*y[i]<=D*D) ans++
  }
  cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:39: error: expected ';' before '}' token
   26 |     if(x[i]*x[i]+y[i]*y[i]<=D*D) ans++
      |                                       ^
      |                                       ;
   27 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main(){
    int n,d;
    int b=0;
    long double a
    int x[200000],y[200000];
    cin >> n >> d;
    for(int i=0;i<n;i++){
        cin >> x[i] >> y[i];
    }
    for(int f=0;f<n;f++){
        a=sqrt(x[f]*x[f]+y[f]*y[f]);
        //cout << a << endl ;
        if(a<=d){
            b=b+1;
        }
    }
    cout << b;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'int'
    8 |     int x[200000],y[200000];
      |     ^~~
a.cc:11:16: error: 'x' was not declared in this scope
   11 |         cin >> x[i] >> y[i];
      |                ^
a.cc:11:24: error: 'y' was not declared in this scope
   11 |         cin >> x[i] >> y[i];
      |                        ^
a.cc:14:9: error: 'a' was not declared in this scope
   14 |         a=sqrt(x[f]*x[f]+y[f]*y[f]);
      |         ^
a.cc:14:16: error: 'x' was not declared in this scope
   14 |         a=sqrt(x[f]*x[f]+y[f]*y[f]);
      |                ^
a.cc:14:26: error: 'y' was not declared in this scope
   14 |         a=sqrt(x[f]*x[f]+y[f]*y[f]);
      |                          ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include<bits/stdc++.h>
usning namespace std;
int main(){
int n,d;
cin>>n>>d;
int count=0;
while(n--)
{
int a,b;
int ans=sqrt((a*a)+(b*b));
if(ans==d&&ans==d-1){
   count++;
   }
}
cout<<count;

Compiler output:
a.cc:2:1: error: 'usning' does not name a type
    2 | usning namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>n>>d;
      | ^~~
      | 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:15:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 | cout<<count;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:13: error: expected '}' at end of input
   15 | cout<<count;
      |             ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
#define MAX INT_MAX
#define ll long long int
#define M 1000000007;
 
int main(){
    int n,d;
    int count=0;
    cin>>n>>d;
    while(n--){
        int p,q;
        float r;
        cin>>p>>q;
        r=sqrt(pow(p,2)+pow(q,2));
        if(r<=d) count++;
    }

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

#include <bits/stdc++.h>

using namespace std;

int main(){
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	int n,d;
	int count=0;
	cin >> n >> d;
	while(n--){
		int x,y;
		cin >> x >> y;
		int s = x*x + y*y;
		s=sqrt(s);
		if(s<=d){
			count++
		}
	}
	cout << count << "\n";
	return 0;
}

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

using namespace std;
int main() 
{
  int N , D , count = 0 ;
  cin >> N >> D ;
  
  for ( int i = N ; i == 0 ; i-- )
  {
    int X , Y ;
    cin >> X >> Y ;
    //cout << X << "and" << Y << endl ;
    
    if ( sqrt ( (X * X) + (Y * Y) ) <= D )
    {
      count ++ ;
      if ( i == 1 )
        cout << count << endl ;
      else
      continue ;
    }
      else
      {
        if ( i == 1 )
          cout << count << endl ;
        else
          continue ;
      }
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> N >> D ;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:13:10: error: 'sqrt' was not declared in this scope
   13 |     if ( sqrt ( (X * X) + (Y * Y) ) <= D )
      |          ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << count << endl ;
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:26: error: 'endl' was not declared in this scope
   17 |         cout << count << endl ;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:24:11: error: 'cout' was not declared in this scope
   24 |           cout << count << endl ;
      |           ^~~~
a.cc:24:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:28: error: 'endl' was not declared in this scope
   24 |           cout << count << endl ;
      |                            ^~~~
a.cc:24:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
   freopen("input.txt","r",stdin);
   freopen("output.txt","w",stdout);
   int num,d;
   scanf("%d",&num);
   scanf("%d",&d);
   int arr[num][2];

   for (int i = 0; i < num; i++)
   {
      for (int j = 0; j < 2; j++)
      {
         scanf("%d",&arr[i][j]);
      }
      
   }
   int count=0;
   for (int i = 0; i < num; i++)
   {
      for (int j = 0; j < 1; j++)
      {
         int check = sqrt( (arr[i][j] * arr[i][j]) + (arr[i][j+1] * 2487
         arr[i][j+1]) );
         // printf(" %d %d %d \n",arr[i][j],arr[i][j+1],check);
         if(d == check)
         {
            count++;
         }
      }
      
   }
   printf("%d",count);
   

   
}

Compiler output:
main.c: In function 'main':
main.c:25:73: error: expected ')' before 'arr'
   25 |          int check = sqrt( (arr[i][j] * arr[i][j]) + (arr[i][j+1] * 2487
      |                                                      ~                  ^
      |                                                                         )
   26 |          arr[i][j+1]) );
      |          ~~~
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main() {
	int N, D, count = 0;
	int N;
	cin >> N >> D;
	vector <int> X(N); //Xに関しての数列を生成
	vector <int> Y(N);// Yに関しての数列を生成
	for (N > 0; N--;) {
		int loop = 0;
		cin >> X[loop] >> Y[loop];
		if (sqrt(X[loop] * X[loop] + Y[loop] * Y[loop]) <= D) {
			count++;
		}
		loop++;
	}
	cout << count;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: redeclaration of 'int N'
    7 |         int N;
      |             ^
a.cc:6:13: note: 'int N' previously declared here
    6 |         int N, D, count = 0;
      |             ^
Language: C++

using namespace std;
int main() 
{
  int N , D , count = 0 ;
  cin >> N >> D ;
  
  for ( int i = N ; i == 0 ; i-- )
  {
    int X , Y ;
    cin >> X >> Y ;
    //cout << X << "and" << Y << endl ;
    
    if ( sqrt ( (X * X) + (Y * Y) ) <= D )
    {
      count ++ ;
      if ( i == 1 )
        cout << count << endl ;
      continue ;
    }
      else
        if ( i == 1 )
          cout << count << endl ;
      continue ;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> N >> D ;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:13:10: error: 'sqrt' was not declared in this scope
   13 |     if ( sqrt ( (X * X) + (Y * Y) ) <= D )
      |          ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << count << endl ;
      |         ^~~~
a.cc:17:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:26: error: 'endl' was not declared in this scope
   17 |         cout << count << endl ;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:22:11: error: 'cout' was not declared in this scope
   22 |           cout << count << endl ;
      |           ^~~~
a.cc:22:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:28: error: 'endl' was not declared in this scope
   22 |           cout << count << endl ;
      |                            ^~~~
a.cc:22:28: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N; 
  cin >> N;
  for ( int i = 0; i <= N; i++ ) {
    int p;
    int q;
    cin >> p >> q;
    
    int L = sqrt ( p*p+q*q );
    int D;
    cin >> D;
    
    for ( int n = 0; L <= D; n++ ) {
      cout << n++ << endl; } 
    }


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

bkjbaeiufebuvizvsbdizudvjbdkugbzskdjvgrios

Compiler output:
a.cc:1:1: error: 'bkjbaeiufebuvizvsbdizudvjbdkugbzskdjvgrios' does not name a type
    1 | bkjbaeiufebuvizvsbdizudvjbdkugbzskdjvgrios
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
   freopen("input.txt","r",stdin);
   freopen("output.txt","w",stdout);
   int num,d;
   scanf("%d",&num);
   scanf("%d",&d);
   int arr[num][2];

   for (int i = 0; i < num; i++)
   {
      for (int j = 0; j < 2; j++)
      {
         scanf("%d",&arr[i][j]);
      }
      
   }
   int count=0;
   for (int i = 0; i < num; i++)
   {
      for (int j = 0; j < 1; j++)
      {
         int check = sqrt( (arr[i][j] * arr[i][j]) + (arr[i][j+1] * 2487
         arr[i][j+1]) );
         // printf(" %d %d %d \n",arr[i][j],arr[i][j+1],check);
         if(d == check)
         {
            count++;
         }
      }
      
   }
    printf("%d\n",count);
   

   
}

Compiler output:
main.c: In function 'main':
main.c:25:73: error: expected ')' before 'arr'
   25 |          int check = sqrt( (arr[i][j] * arr[i][j]) + (arr[i][j+1] * 2487
      |                                                      ~                  ^
      |                                                                         )
   26 |          arr[i][j+1]) );
      |          ~~~
Language: C++

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

int main(){
 int N, D;
 cin >> N >> D;

 int x[] ={}, y[]= {};
 int d;

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

 int count = 0;

 for(int i=0; i<N;i++){
  d = sqrt(pow(x[i], 2) + pow(y[i], 2))

  if(d>D) count+=1;
} 

 cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:40: error: expected ';' before 'if'
   19 |   d = sqrt(pow(x[i], 2) + pow(y[i], 2))
      |                                        ^
      |                                        ;
   20 | 
   21 |   if(d>D) count+=1;
      |   ~~
Language: C++

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

int main(){
 int N, D;
 cin >> N >> D;

 int x[] ={}, y[]= {}
 int d;

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

 int count = 0;

 for(int i=0; i<N;i++){
  d = sqrt(pow(x[i], 2) + pow(y[i], 2))

  if(d>D) count+=1;
} 

 cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:2: error: expected ',' or ';' before 'int'
   10 |  int d;
      |  ^~~
a.cc:19:3: error: 'd' was not declared in this scope
   19 |   d = sqrt(pow(x[i], 2) + pow(y[i], 2))
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N; 
  cin >> N;
  for ( int i = 0; , i <= N; , i++ ) {
    int p;
    int q;
    cin >> p >> q;
    
    int L = sqrt ( p*p+q*q );
    int D;
    cin >> D;
    
    for ( int n = 0; , L <= D; , n++ ) {
      cout << n++ << endl; } 
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before ',' token
    7 |   for ( int i = 0; , i <= N; , i++ ) {
      |                    ^
a.cc:7:30: error: expected primary-expression before ',' token
    7 |   for ( int i = 0; , i <= N; , i++ ) {
      |                              ^
a.cc:16:22: error: expected primary-expression before ',' token
   16 |     for ( int n = 0; , L <= D; , n++ ) {
      |                      ^
a.cc:16:32: error: expected primary-expression before ',' token
   16 |     for ( int n = 0; , L <= D; , n++ ) {
      |                                ^
a.cc:18:6: error: expected '}' at end of input
   18 |     }
      |      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N; 
  cin >> N;
  for ( int i = 0; , i <= N; , i++; ) {
    int p;
    int q;
    cin >> p >> q;
    
    int L = sqrt ( p*p+q*q );
    int D;
    cin >> D;
    
    for ( int n = 0; , L <= D; , n++; ) {
      cout << n++ << endl; } 
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before ',' token
    7 |   for ( int i = 0; , i <= N; , i++; ) {
      |                    ^
a.cc:7:30: error: expected primary-expression before ',' token
    7 |   for ( int i = 0; , i <= N; , i++; ) {
      |                              ^
a.cc:7:35: error: expected ')' before ';' token
    7 |   for ( int i = 0; , i <= N; , i++; ) {
      |       ~                           ^
      |                                   )
a.cc:7:37: error: expected primary-expression before ')' token
    7 |   for ( int i = 0; , i <= N; , i++; ) {
      |                                     ^
a.cc:18:6: error: expected '}' at end of input
   18 |     }
      |      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:8: error: 'i' was not declared in this scope
   22 |   if ( i == 0 )
      |        ^
Language: C++

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

int main(){
 int N, D;
 cin >> N >> D;

 int x[], y[], d[];

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

 int count = 0;

 for(int i=0; i<N;i++){
  d = sqrt(pow(x[i], 2) + pow(y[i], 2))

  if(d>D) count+=1;
} 

 cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: storage size of 'x' isn't known
    9 |  int x[], y[], d[];
      |      ^
a.cc:9:11: error: storage size of 'y' isn't known
    9 |  int x[], y[], d[];
      |           ^
a.cc:9:16: error: storage size of 'd' isn't known
    9 |  int x[], y[], d[];
      |                ^
Language: C++

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

int main(){
 int N, D;
 cin >> N >> D;

 int x[], y[], d[];

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

 int count = 0;

 for(int i=0; i<N;i++){
  d = sqrt(pow(x[i], 2) + pow(y[i], 2))

  if(d>D) count+=1;
} 

 cout << count << endl;
}


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

#include<math>
using namespace std;

int main(){
 int N, D;
 cin >> N >> D;

 int x[], y[], d[i];

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

 int count = 0;

 for(int i=0; i<N;i++){
  d = sqrt(pow(x[i], 2) + pow(y[i], 2))

  if(d>D) count+=1;
} 

 cout << count << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N; 
  cin >> N;
  for ( int i = 0 , i <= N , i++ ) {
    int p;
    int q;
    cin >> p >> q;
    
    int D1 = sqrt ( p*p+q*q );
    int D;
    cin >> D;
    
    for ( int n = 0 , D1 <= D , n++ ) {
      cout << n++ << endl; } 
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before '<=' token
    7 |   for ( int i = 0 , i <= N , i++ ) {
      |                      ^~~
      |                      ;
a.cc:7:23: error: expected primary-expression before '<=' token
    7 |   for ( int i = 0 , i <= N , i++ ) {
      |                       ^~
a.cc:7:33: error: expected ';' before ')' token
    7 |   for ( int i = 0 , i <= N , i++ ) {
      |                                 ^~
      |                                 ;
a.cc:16:25: error: expected ';' before '<=' token
   16 |     for ( int n = 0 , D1 <= D , n++ ) {
      |                         ^~~
      |                         ;
a.cc:16:26: error: expected primary-expression before '<=' token
   16 |     for ( int n = 0 , D1 <= D , n++ ) {
      |                          ^~
a.cc:16:36: error: expected ';' before ')' token
   16 |     for ( int n = 0 , D1 <= D , n++ ) {
      |                                    ^~
      |                                    ;
a.cc:18:6: error: expected '}' at end of input
   18 |     }
      |      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

typedef long long ll;
typedef vector<ll> vll;
typedef vector<int> vz;
typedef vector<vz> vvz;
typedef pair<ll, ll> pll;
#define sz(x) int((x).size())
#define fo(i,n) for(ll i=0; i<(n); i++)
#define FO(i,a,b) for(ll i=(a); i!=(b); i+=(b)>(a)?1:-1)
#define pb push_back
#define lb lower_bound
#define ub upper_bound
#define all(c) c.begin(), c.end()
#define F first
#define S second
#define os(x) cout<<x<<' '
#define on(x) cout<<x<<"\n"
#define nl cout<<"\n"
#define maxe(x) max_element(all(x))-(x).begin()
#define mine(x) min_element(all(x))-(x).begin()

int main()
{
	ios::sync_with_stdio(false);
	cin.tie(NULL);
#ifndef ONLINE_JUDGE
	freopen("C:\\Users\\ASISH\\Desktop\\coding\\input1.txt", "r", stdin);
	freopen("C:\\Users\\ASISH\\Desktop\\coding\\output1.txt", "w", stdout);
#endif

	int tc=1;
	// cin>>tc;
	fo(q, tc)
	{
		ll n, d, cnt=0;
      	cin>>n>>d;
      	vll p(n), q(n);
      	fo(i, n) cin>>p[i]>>q[i];
      	fo(i, n){
          if(p[i]*p[i] + q[i]*q[i] <= d*d) cnt++;
        }
      	on(cnt);
	}
	cerr << "Time : " << ((double)clock()) / (double)CLOCKS_PER_SEC << "s\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:19: error: redeclaration of 'vll q'
   39 |         vll p(n), q(n);
      |                   ^
a.cc:35:12: note: 'll q' previously declared here
   35 |         fo(q, tc)
      |            ^
a.cc:10:24: note: in definition of macro 'fo'
   10 | #define fo(i,n) for(ll i=0; i<(n); i++)
      |                        ^
Language: C++

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

using ll = long long;

int main(){
    int n,m; int count=0;
    cin>>n>>m;
    vector<int> v1(n);
    vector<int> v(n);

    for(int i=0; i<n; ++i){
        for(int j =0; j<n; ++j){
            cin>>v1[i]>>v[j];
            float l = v1[i]*v1[i] + v[j]*v[j];
            float k = sqrtf(l)
            if(k>=m) count++;
        }
    }
    cout<<count<<"\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: expected ',' or ';' before 'if'
   18 |             if(k>=m) count++;
      |             ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'D' was not declared in this scope
   10 |    long long A=a*a,B=b*b;D=d*d;
      |                          ^
Language: C

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

int main() {

	int N = 0, D = 0, i = 0, score = 0, c = 0;
	float a = 0, b = 0;
	float loot = 0;
	float d = 0, e = 0;

	scanf_s("%d", &N);
	scanf_s("%d", &D);

	if (N == EOF || D == EOF) {
		return -1;
	}

	for (i = 0; i < N; i++) {

		scanf_s("%f", &a);
		scanf_s("%f", &b);

		//scanf("%f%f", &a, &b);

		// 2乗
		d = a * a;
		e = b * b;

		// ルート計算
		loot = pow(d + e, 0.5);

		if (loot <= D) {

			c++;

		}
	}


	printf("%d\n", c);

	return 0;
}

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

//#include<iostream>
#include <bits/stdc++.h>
//#include<cmath>
using namespace std;
int count(long long, long long);
int main()
{
    long long n, d, a[200200], b[200200];
    cin >> n >> d;
    for (long long i = 1; i <= n; i++)
    {
        cin >> a[i] >> b[i];
    }
    long long sum = 0, j = 0;
    for (long long i = 1; i <= n; i++)
    {
        sum = count(a[i], b[i]);
        if (sum > d || sum == d)
        {
            j++;
        }
    }
    cout << j << endl;
    return 0;
}
long long count(long long x, long long y)
{
    long long add = 0;
    add = sqrt(x * x + y * y);
    return add;
}

Compiler output:
a.cc:26:11: error: ambiguating new declaration of 'long long int count(long long int, long long int)'
   26 | long long count(long long x, long long y)
      |           ^~~~~
a.cc:5:5: note: old declaration 'int count(long long int, long long int)'
    5 | int count(long long, long long);
      |     ^~~~~
Language: C++

//#include<iostream>
#include <bits/stdc++.h>
//#include<cmath>
using namespace std;
int count(int, int);
int main()
{
    long long n, d, a[200200], b[200200];
    cin >> n >> d;
    for (long long i = 1; i <= n; i++)
    {
        cin >> a[i] >> b[i];
    }
    long long sum = 0, j = 0;
    for (long long i = 1; i <= n; i++)
    {
        sum = count(a[i], b[i]);
        if (sum > d || sum == d)
        {
            j++;
        }
    }
    cout << j << endl;
    return 0;
}
long long count(long long x, long long y)
{
    long long add = 0;
    add = sqrt(x * x + y * y);
    return add;
}

Compiler output:
/usr/bin/ld: /tmp/ccrEgYdz.o: in function `main':
a.cc:(.text+0xc9): undefined reference to `count(int, int)'
collect2: error: ld returned 1 exit status
Language: C++

//#include<iostream>
#include <bits/stdc++.h>
//#include<cmath>
using namespace std;
int count(int, int);
int main()
{
    longlong n, d, a[200200], b[200200];
    cin >> n >> d;
    for (longlong i = 1; i <= n; i++)
    {
        cin >> a[i] >> b[i];
    }
    int sum = 0, j = 0;
    for (longlong i = 1; i <= n; i++)
    {
        sum = count(a[i], b[i]);
        if (sum > d || sum == d)
        {
            j++;
        }
    }
    cout << j << endl;
    return 0;
}
int count(int x, int y)
{
    longlong add = 0;
    add = sqrt(x * x + y * y);
    return add;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'longlong' was not declared in this scope
    8 |     longlong n, d, a[200200], b[200200];
      |     ^~~~~~~~
a.cc:9:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |     cin >> n >> d;
      |            ^
      |            yn
a.cc:9:17: error: 'd' was not declared in this scope
    9 |     cin >> n >> d;
      |                 ^
a.cc:10:18: error: expected ';' before 'i'
   10 |     for (longlong i = 1; i <= n; i++)
      |                  ^~
      |                  ;
a.cc:10:26: error: 'i' was not declared in this scope
   10 |     for (longlong i = 1; i <= n; i++)
      |                          ^
a.cc:12:16: error: 'a' was not declared in this scope
   12 |         cin >> a[i] >> b[i];
      |                ^
a.cc:12:24: error: 'b' was not declared in this scope
   12 |         cin >> a[i] >> b[i];
      |                        ^
a.cc:15:18: error: expected ';' before 'i'
   15 |     for (longlong i = 1; i <= n; i++)
      |                  ^~
      |                  ;
a.cc:15:26: error: 'i' was not declared in this scope
   15 |     for (longlong i = 1; i <= n; i++)
      |                          ^
a.cc:17:21: error: 'a' was not declared in this scope
   17 |         sum = count(a[i], b[i]);
      |                     ^
a.cc:17:27: error: 'b' was not declared in this scope
   17 |         sum = count(a[i], b[i]);
      |                           ^
a.cc: In function 'int count(int, int)':
a.cc:28:5: error: 'longlong' was not declared in this scope
   28 |     longlong add = 0;
      |     ^~~~~~~~
a.cc:29:5: error: 'add' was not declared in this scope; did you mean 'std::filesystem::perm_options::add'?
   29 |     add = sqrt(x * x + y * y);
      |     ^~~
      |     std::filesystem::perm_options::add
In file included from /usr/include/c++/14/filesystem:51,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200,
                 from a.cc:2:
/usr/include/c++/14/bits/fs_fwd.h:219:7: note: 'std::filesystem::perm_options::add' declared here
  219 |       add       = 0x2,
      |       ^~~
Language: Java

import java.util.*;

public class main {

    public static void Main (String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong(), d = sc.nextLong(), count  = 0;
        while (n-->0){
            long a = sc.nextLong(), b = sc.nextLong();
            if(((a*a)+(b*b)) <= (d*d)){
                count++;
            }
        }
        System.out.println(count);
    }
}

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

#include <iostream>
#include <vector>
using namespace std;
int main() {
	int N, D, count = 0;
	cin >> N >> D;
	vector <int> X(N); //Xに関しての数列を生成
	vector <int> Y(N);// Yに関しての数列を生成
	for (N > 0; N--;) {
		int loop = 0;
		cin >> X[loop] >> Y[loop];
		if (sqrt(X[loop] * X[loop] + Y[loop] * Y[loop]) <= D) {
			count++;
		}
		loop++;
	}
	cout << count;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: 'sqrt' was not declared in this scope
   12 |                 if (sqrt(X[loop] * X[loop] + Y[loop] * Y[loop]) <= D) {
      |                     ^~~~
Language: Java

import java.util.Scanner;

public class al2020707 {
	 public static void main(String args[]){
	Scanner scanner = new Scanner(System.in);

	int n=scanner.nextInt();
    double d=scanner.nextDouble();
	Integer[][] m=new Integer[n][2];
	int t=0;


	for(int j=0;j<n;j++) {
      for(int i=0;i<2;i++)
		int a=scanner.nextInt();
		m[j][i]=a;
	}

       for(int k=0;k<n;k++){
       int f=(m[k][0]*m[k][0])+(m[k][1]*m[k][1]);
        double s=Math.sqrt(f)
          if(s<=d){
          t=t+1;
          }
       }

	System.out.println(t);


	 }
}

Compiler output:
Main.java:15: error: variable declaration not allowed here
		int a=scanner.nextInt();
		    ^
Main.java:21: error: ';' expected
        double s=Math.sqrt(f)
                             ^
2 errors
Language: C++

#include<stdio.h>
main(){
  int i,k=0;
  long long a[N],b[N];
  long long A,D,N;
  scanf("%lld",&N);
  scanf("%lld",&D);
  for(i=0;i<N;i++){
   scanf("%lld",a[i]);
   scanf("%lld",b[i]);
   A=a[i]^2+b[i]^2;
   if(A<=D^2) k=k+1;
 }
printf("%d",k);
}

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:15: error: 'N' was not declared in this scope
    4 |   long long a[N],b[N];
      |               ^
a.cc:9:17: error: 'a' was not declared in this scope
    9 |    scanf("%lld",a[i]);
      |                 ^
a.cc:10:17: error: 'b' was not declared in this scope
   10 |    scanf("%lld",b[i]);
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
  int n,d,f=0;
long long int x,y;
 double h;
  cin >> n >> d ;

  for(int i=0;i<n;i++)
    {
        cin >> x >> y;
        h=(float)sqrt((float)(x*x)+(float)(y*y));
        
      if(h<=d)
        {
            f++ ;
        }
      
        
    }
    cout << f ;

  return 0;

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
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,f=0;
long long int x,y;
 double h;
  cin >> n >> d ;

  for(int i=0;i<n;i++)
    {
        cin >> x >> y;
        h=(float)sqrt((float)(x*x)+(float)(y*y));
        
      if(h<=d)
        {
            f++ ;
        }
      
        
    }
    cout << f ;

  return 0;

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

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

int main(){
  int n,d;
  int i;
  int64_t x,y;
  int64_t tmp_x,tmp_y;
  long double tmp_2,tmp;
  int cnt=0;
  scanf("%d %d",&n,&d);

  for(i=0;i<n;i++){
    scanf("%lld %lld",&x,&y);
    tmp_x = x*x;
    tmp_y = y*y;
    tmp = (double)tmp_x + tmp_y;
    tmp_2 = sqrt(tmp);
    /*printf("tmp_x = %lld\n",tmp_x);
    printf("tmp_y = %lld\n",tmp_y);
    printf("tmp=%Lf\n",tmp);
    printf("tmp_2=%Lf\n",tmp_2);*/
    if(tmp_2 <= d){
      cnt++;
    }
  }
  /*printf("tmp_x = %d\n",tmp_x);
  printf("tmp_y = %d\n",tmp_y);
  printf("tmp=%f\n",tmp);
  printf("tmp_2=%f\n",tmp_2);
*/
  printf("%d\n",cnt);

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: unknown type name 'int64_t'
    7 |   int64_t x,y;
      |   ^~~~~~~
main.c:3:1: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
    2 | #include <math.h>
  +++ |+#include <stdint.h>
    3 | 
main.c:8:3: error: unknown type name 'int64_t'
    8 |   int64_t tmp_x,tmp_y;
      |   ^~~~~~~
main.c:8:3: note: 'int64_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define fl(i,from,to) for(ll i=from;i<to;i++)
#define dd double 

int main()
{
	inp(n);inp(d);ll cnt=0;
	fl(i,0,n)
	{
		inp(x);inp(y);
		ll ans=((x*x)+(y*y));
		dd res=sqrt(ans);
		if(res<=d)cnt++;
	}
	cout<<cnt<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |         inp(n);inp(d);ll cnt=0;
      |             ^
      |             yn
a.cc:9:9: error: 'inp' was not declared in this scope; did you mean 'int'?
    9 |         inp(n);inp(d);ll cnt=0;
      |         ^~~
      |         int
a.cc:9:20: error: 'd' was not declared in this scope; did you mean 'dd'?
    9 |         inp(n);inp(d);ll cnt=0;
      |                    ^
      |                    dd
a.cc:12:21: error: 'x' was not declared in this scope
   12 |                 inp(x);inp(y);
      |                     ^
a.cc:12:28: error: 'y' was not declared in this scope
   12 |                 inp(x);inp(y);
      |                            ^
Language: C++

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

int main() {
  int n, d, d2, answer;
  answer = 0;
  cin >> n >> d;
  vector<int> x(n);
  vector<int> y(n);
  vector<int> d2(n);
  for (int i = 0;i < n;i++) {
    cin >> x.at(i) >> y.at(i);
    d2.at(i) = x.at(i) * x.at(i) + y.at(i) * y.at(i);
    if (d2.at(i) <= d * d) {
      answer++;
    }
  }
  cout << answer << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: conflicting declaration 'std::vector<int> d2'
   10 |   vector<int> d2(n);
      |               ^~
a.cc:5:13: note: previous declaration as 'int d2'
    5 |   int n, d, d2, answer;
      |             ^~
a.cc:13:8: error: request for member 'at' in 'd2', which is of non-class type 'int'
   13 |     d2.at(i) = x.at(i) * x.at(i) + y.at(i) * y.at(i);
      |        ^~
a.cc:14:12: error: request for member 'at' in 'd2', which is of non-class type 'int'
   14 |     if (d2.at(i) <= d * d) {
      |            ^~
Language: Java

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		long d = scan.nextInt();
		int count = 0;
		for(int i = 0; i < n; i++) {
			long x = scan.nextLong();
			long y = scan.nextLong();
			long xx;
			long yy;
			xx = (long)Math.pow(x,2);
			yy = (long)Math.pow(y,2);

			if(d>=Math.sqrt(xx+yy)) {
				count = count + 1;
			}
		}
		System.out.println(count);
	}

Compiler output:
Main.java:24: error: reached end of file while parsing
	}
	 ^
1 error
Language: Java

import java.util.*;

public class Main{
    public static int calculatePoints(int n,int d,int[] a,int[] b){
        int ret = 0;
        for(int i=0;i<n;i++){
            if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;
        }
        return ret;
    }

    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N,D;
        int[] X;
        int[] Y;

        while(sc.hasNext()){
            N = sc.nextInt();
            D = sc.nextInt();
            X = new int[N];
            Y = new int[N];
            for(int i=0;i<N;i++){
                X[i] = sc.nextInt();;
                Y[i] = sc.nextInt();
            }
        }
        sc.close();
        System.out.println(calculatePoints(N,D,X,Y));
        
        /*int N = 12;
        int D = 3;
        int[] X = {1,1,1,1,1,1,2,2,2,3,3,3};
        int[] Y = {1,1,1,1,2,3,1,2,3,1,2,3};
        System.out.println(calculatePoints(N,D,X,Y));*/
    }
}

Compiler output:
Main.java:29: error: variable N might not have been initialized
        System.out.println(calculatePoints(N,D,X,Y));
                                           ^
Main.java:29: error: variable D might not have been initialized
        System.out.println(calculatePoints(N,D,X,Y));
                                             ^
Main.java:29: error: variable X might not have been initialized
        System.out.println(calculatePoints(N,D,X,Y));
                                               ^
Main.java:29: error: variable Y might not have been initialized
        System.out.println(calculatePoints(N,D,X,Y));
                                                 ^
4 errors
Language: C++

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

int main() {
  int n, d, d2, answer;
  answer = 0;
  cin >> n >> d;
  vector<int> x(n);
  vector<int> y(n);
  vector(int) d2(n);
  for (int i = 0;i < n;i++) {
    cin >> x.at(i) >> y.at(i);
    d2.at(i) = x.at(i) * x.at(i) + y.at(i) * y.at(i);
    if (d2.at(i) <= d * d) {
      answer++;
    }
  }
  cout << answer << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: missing template arguments before '(' token
   10 |   vector(int) d2(n);
      |         ^
a.cc:10:10: error: expected primary-expression before 'int'
   10 |   vector(int) d2(n);
      |          ^~~
a.cc:13:8: error: request for member 'at' in 'd2', which is of non-class type 'int'
   13 |     d2.at(i) = x.at(i) * x.at(i) + y.at(i) * y.at(i);
      |        ^~
a.cc:14:12: error: request for member 'at' in 'd2', which is of non-class type 'int'
   14 |     if (d2.at(i) <= d * d) {
      |            ^~
Language: C++

#include <iostream>
using namespace std;

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

	cin >> N >> D;

	for (int i = 0; i <= N; i++) {
		cin >> X >> Y;
		T = (X * X) + (Y * Y);
		A = T / (X + Y);

		if (D >= A){
			int C = 0;
			C = C + 1;
		}else {
			continue;
		}
		
	}
	
	cout << C << endl;
	



}

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

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

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


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

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

int main() {
  int n, d, d2, answer;
  answer = 0;
  cin >> n >> d;
  vector<int> x(n);
  vector<int> y(n);
  for (int i = 0;i < n;i++) {
    cin >> x.at(i) >> y.at(i);
    vector(int) d2(n) = x.at(i) * x.at(i) + y.at(i) * y.at(i);
    if (d2.at(i) <= d * d) {
      answer++;
    }
  }
  cout << answer << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: missing template arguments before '(' token
   12 |     vector(int) d2(n) = x.at(i) * x.at(i) + y.at(i) * y.at(i);
      |           ^
a.cc:12:12: error: expected primary-expression before 'int'
   12 |     vector(int) d2(n) = x.at(i) * x.at(i) + y.at(i) * y.at(i);
      |            ^~~
a.cc:13:12: error: request for member 'at' in 'd2', which is of non-class type 'int'
   13 |     if (d2.at(i) <= d * d) {
      |            ^~
Language: C++

using namespace std;
 
int main(){
 long n,d;
 cin >> n >> d;
 long long x,y;
 long double l1,l;
 
 int cnt=0;
  
 while(cin){
 cin >> x >> y;
 l1=x*x+y*y;
 l=sqrt(l1);
 if(l<=d) cnt++;
 }
 
 cout << cnt << endl;
return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope
    5 |  cin >> n >> d;
      |  ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:14:4: error: 'sqrt' was not declared in this scope
   14 |  l=sqrt(l1);
      |    ^~~~
a.cc:18:2: error: 'cout' was not declared in this scope
   18 |  cout << cnt << endl;
      |  ^~~~
a.cc:18:2: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:17: error: 'endl' was not declared in this scope
   18 |  cout << cnt << endl;
      |                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;