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

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
ll n,d;
cin >> n >> d;
ll a[n],b[n];
for(ll i=0;i<n;i++){
cin >> a[i];
cin >> b[i];
}
ll cnt=0;
for(ll i=0;i<n;i++){
double k=(double)sqrt((double)(pow(abs(a[i]),2)+pow(abs(b[i]),2)))
if(k==d)
cnt++;
}
cout << cnt << endl;
return 0;
}

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

#include <iostream>
#include <string>
#include <cstdio>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <functional>
#include <queue>
#include <math.h>
#include <cmath>
#include <unordered_map>

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



void solve(long long N, long long D, std::vector<long long> X, std::vector<long long> Y){
    long long cnt=0;
    rep(i,N){
        long float ditance=sqrt((X[i]*X[i])+(Y[i]*Y[i]));
        if(ditance<=D)cnt++;
    }
    cout<<cnt<<endl;
}

// Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    long long N;
    scanf("%lld",&N);
    long long D;
    scanf("%lld",&D);
    std::vector<long long> X(N);
    std::vector<long long> Y(N);
    for(int i = 0 ; i < N ; i++){
        scanf("%lld",&X[i]);
        scanf("%lld",&Y[i]);
    }
    solve(N, D, std::move(X), std::move(Y));
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int, std::vector<long long int>, std::vector<long long int>)':
a.cc:21:9: error: 'long' specified with 'float'
   21 |         long float ditance=sqrt((X[i]*X[i])+(Y[i]*Y[i]));
      |         ^~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'sqrt' was not declared in this scope
   18 |     if (sqrt(x[j] * x[j] + x[j+1] * x[j+1]) <= d) {
      |         ^~~~
Language: C++

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

int main()
{
	size_t nof, d;
  	cin>>nof>>d;
  	size_t tot = 0;
  	size_t p1, p2;
  	for(size_t i{0}; i!=nof; ++i)
    {
      cin>>p1>>p2;
      if(sqrt(p1*p1+p2*p2) <= d)
        ++tot
    }
}

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

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

int main() {
  int n,d,c=0;
  int x1,y1,a、ｂ;
  cin >> n >> d;
  
  vector<int> x(n);
  vector<int> y(n);
  
  for(int i; i<n;i++)a{
    cin >> x.at(i) >> y.at(i);
    x1 = x.at(i) * x.at(i);
    y1 = y.at(i) * y.at(i);
    a = x1 + y1 ;
    if(sqrt(a)<=d) c++;
  }
  sort(a.begin(), a.end());
  b = -1;
  for(int i; i<n;i++)a{
    if(b != a.at(i)){
      b = a.at(i);
      c++;
    }
  }
  cout << c;
}


Compiler output:
a.cc:6:13: error: extended character 、 is not valid in an identifier
    6 |   int x1,y1,a、ｂ;
      |             ^
a.cc: In function 'int main()':
a.cc:12:22: error: 'a' was not declared in this scope
   12 |   for(int i; i<n;i++)a{
      |                      ^
a.cc:19:8: error: 'a' was not declared in this scope
   19 |   sort(a.begin(), a.end());
      |        ^
a.cc:20:3: error: 'b' was not declared in this scope
   20 |   b = -1;
      |   ^
a.cc:21:23: error: expected ';' before '{' token
   21 |   for(int i; i<n;i++)a{
      |                       ^
      |                       ;
Language: C++

#include <bits/stdc++.h>

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

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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: invalid type argument of unary '*' (have 'int')
   12 |     int res = ((x**2) + (y**2));
      |                   ^~
a.cc:12:28: error: invalid type argument of unary '*' (have 'int')
   12 |     int res = ((x**2) + (y**2));
      |                            ^~
a.cc:13:31: error: expected ')' before '{' token
   13 |     if((res <= m && res > m-1){
      |       ~                       ^
      |                               )
a.cc:15:8: error: expected primary-expression before '}' token
   15 |        }
      |        ^
a.cc:16:15: error: 'res' was not declared in this scope
   16 |        return res;}
      |               ^~~
Language: C

#include<stdio.h>
{
  int X, Y, D, N;
  scanf("%d",&N);
  scanf("%d",&X);
  scanf("%d",&Y);
  D=sqrt((X-0)*(X-0)+(Y-0)*(Y-0));
  printf("%d",D);
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '{' token
    2 | {
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: expected ',' or ';' before 'long'
   10 |     long dist, x, y;
      |     ^~~~
a.cc:11:13: error: 'dist' was not declared in this scope
   11 |     cin>>n>>dist;
      |             ^~~~
a.cc:13:14: error: 'x' was not declared in this scope
   13 |         cin>>x>>y;
      |              ^
a.cc:13:17: error: 'y' was not declared in this scope
   13 |         cin>>x>>y;
      |                 ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'd' was not declared in this scope
    5 |   d=D*D;
      |   ^
Language: C++

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

#define ll long long
#define ar array

void solve(){
	int n,d,ans=0;
	cin>>n>>d;
  	double x[n],y[n];
  	for(int i=0;i<n;i++){
      	cin>>x[i]>>y[i];
    }
  	for(int i=0;i<n;i++){
      	if(sqrt(x*x+y*y)<=d){
         	ans++; 
        }
    }
  	cout<<ans<<endl;
}

int main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
    solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:15:18: error: invalid operands of types 'double [n]' and 'double [n]' to binary 'operator*'
   15 |         if(sqrt(x*x+y*y)<=d){
      |                 ~^~
      |                 | |
      |                 | double [n]
      |                 double [n]
a.cc:15:22: error: invalid operands of types 'double [n]' and 'double [n]' to binary 'operator*'
   15 |         if(sqrt(x*x+y*y)<=d){
      |                     ~^~
      |                     | |
      |                     | double [n]
      |                     double [n]
Language: C++

#include <iostream>
#include <string>
#include <vector>
#define ll long long
using namespace std;
int main()
{
    int n, d;
    cin >> n >> d;
    ll x, y;
    int cnt = 0;
    for (int i = 0; i < n; i++) {
        cin >> x >> y;
        float sqrt_result = sqrtf((x * x) + (y * y));
        if (sqrt_result <= (float)d) {
            cnt++;
        }
    }
    cout << cnt << endl;

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:29: error: 'sqrtf' was not declared in this scope; did you mean 'strtof'?
   14 |         float sqrt_result = sqrtf((x * x) + (y * y));
      |                             ^~~~~
      |                             strtof
Language: C++

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

double distance(double x,y){
	return pow((pow(x,2) + pow(y,2)),0.5);
}
int main(){
	double n,d,dist,count=0;
  	cin >> n >> d;
  	while(n--){
    	int x1,y1;
        cin >> x1 >> y1;
        dist = distance(x1,y1);
      	if(dist <= d){
        	count++;
        }
     }
     cout << count;
}

Compiler output:
a.cc:5:26: error: 'y' has not been declared
    5 | double distance(double x,y){
      |                          ^
a.cc: In function 'double distance(double, int)':
a.cc:6:36: error: 'y' was not declared in this scope
    6 |         return pow((pow(x,2) + pow(y,2)),0.5);
      |                                    ^
Language: C++

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

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


Compiler output:
a.cc:18:9: warning: missing terminating " character
   18 |         "cout << cnt << endl;
      |         ^
a.cc:18:9: error: missing terminating " character
   18 |         "cout << cnt << endl;
      |         ^~~~~~~~~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'i' was not declared in this scope
    9 |         rep(i, n) {
      |             ^
a.cc:9:9: error: 'rep' was not declared in this scope
    9 |         rep(i, n) {
      |         ^~~
Language: Java

import java.io.*;
import java.util.*;
public class Main
    static class FastReader{
        BufferedReader br;
        StringTokenizer st;
        public FastReader(){br = new BufferedReader(new InputStreamReader(System.in));}
        String next(){while (st == null || !st.hasMoreElements()){try{st = new StringTokenizer(br.readLine());}catch (IOException  e){e.printStackTrace();}}return st.nextToken();}
        int nextInt(){return Integer.parseInt(next());}
        long nextLong(){return Long.parseLong(next());}
        double nextDouble(){return Double.parseDouble(next());}
        int[] readArray(int n){int[] a=new int[n];for (int i=0; i<n; i++) a[i]=nextInt();return a;}
        long[] readLongArray(int n){long[] a=new long[n];for (int i=0; i<n; i++) a[i]=nextLong();return a;}
        String nextLine(){String str = "";try{str = br.readLine();}catch (IOException e){e.printStackTrace();}return str;}
    }
    static int getGcd(int n1,int n2){
        while(n1 != n2){
            if(n1 > n2) n1 -= n2;
            else n2 -= n1;
        }
        return n1;
    }
    static boolean isSorted(int[] arr, int n){
        for(int i=1;i<n;i++){
            if(arr[i]<arr[i-1]) return false;
        }
        return true;
    }
    static boolean isPrime(long n){
        if(n==2) return true;
        else if(n%2==0) return false;
        for(int i=3;i<=n/2;i+=2){
            if(n%i==0) return false;
        }
        return true;
    }
    static boolean isPrime(int n){
        if(n==2) return true;
        else if(n%2==0) return false;
        for(int i=3;i<=n/2;i+=2){
            if(n%i==0) return false;
        }
        return true;
    }
    static void printArray(int[] arr){
        for(int x:arr){
            System.out.print(x+" ");
        }
        //System.out.println();
    }
    public static void main(String[] args) throws NumberFormatException, IOException {
        FastReader s=new FastReader();
        int t = s.nextInt();
        double d=s.nextInt();
//        int n;
//        String str;
//        while(t-- > 0){
//
//        }
        d=Math.pow(d,2);
        int count=0;
        int x,y;
        while(t-- > 0){
            x=s.nextInt();y=s.nextInt();
            if(((Math.pow(x,2))+(Math.pow(y,2)))<=d) count++;
        }
        System.out.println(count);
    }
}

Compiler output:
Main.java:3: error: '{' expected
public class Main
                 ^
Main.java:16: error: unnamed classes are a preview feature and are disabled by default.
    static int getGcd(int n1,int n2){
           ^
  (use --enable-preview to enable unnamed classes)
Main.java:69: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

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

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

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

Compiler output:
Main.java:16: error: ';' expected
      double val=(x*x)+(y*y)
                            ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected ';' before ')' token
    9 |       for (int i=0; i<N, i++){
      |                             ^
      |                             ;
a.cc:11:24: error: expected primary-expression before '<' token
   11 |         if (X*X + Y*Y =< D*D){
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
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 <int> destance (N);
    int result=0;
    for(int i=0;i<N;i++){
        distance.at(i)=vec.at(i).at(0)*vec.at(i).at(1);
        if(diatance.at(i)<=D){
            result++;
        }
    }
    cout<<result<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: overloaded function with no contextual type information
   13 |         distance.at(i)=vec.at(i).at(0)*vec.at(i).at(1);
      |                  ^~
a.cc:14:12: error: 'diatance' was not declared in this scope; did you mean 'destance'?
   14 |         if(diatance.at(i)<=D){
      |            ^~~~~~~~
      |            destance
Language: C++

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

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

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: invalid operands of types 'int [n]' and 'int [n]' to binary 'operator*'
   14 |     if(x*x+y*y=d*d)
      |        ~^~
      |        | |
      |        | int [n]
      |        int [n]
a.cc:14:13: error: invalid operands of types 'int [n]' and 'int [n]' to binary 'operator*'
   14 |     if(x*x+y*y=d*d)
      |            ~^~
      |            | |
      |            | int [n]
      |            int [n]
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back
#define ff first
#define ss second

bool isvalid(int x,int y,int n,int m)
{
    return (x>=0 && x<n && y>=0 && y<m);
}

int cx[]={0,0,1,1,1,-1,-1,-1};
int cy[]={1,-1,1,0,-1,1,0,-1};

int32_t main()
{
    IOS;
	int t=1;
//	cin>>t;
	while(t--)
	{
	    int n,d;
	    cin>>n>>d;
      int sum=0;
      	while(n--)
        {
          	int p,q;
          cin>>p>>q;
            if(sqrt((p*p + q*q)>=d)
               sum++;
        }
	    cout<<sum<<endl;
	
	
	
	}
	return 0;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:31:36: error: expected ';' before 'sum'
   31 |             if(sqrt((p*p + q*q)>=d)
      |                                    ^
      |                                    ;
   32 |                sum++;
      |                ~~~                  
a.cc:33:9: error: expected primary-expression before '}' token
   33 |         }
      |         ^
a.cc:32:22: error: expected ')' before '}' token
   32 |                sum++;
      |                      ^
      |                      )
   33 |         }
      |         ~             
a.cc:31:15: note: to match this '('
   31 |             if(sqrt((p*p + q*q)>=d)
      |               ^
a.cc:33:9: error: expected primary-expression before '}' token
   33 |         }
      |         ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

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

//
// Created by yozaam on 23/06/20.
//

//
// Created by yozaam on 12/06/20.
//

//
// Created by yozaam on 04/06/20.
//



/********   All Required Header Files ********/
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <sstream>
#include <queue>
#include <deque>
#include <bitset>
#include <iterator>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <functional>
#include <numeric>
#include <utility>
#include <limits>
#include <time.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#include <unordered_map>
#include <unordered_set>




#define fo(start,n) for(size_t i = start; i < n; ++i)


// unordered_map<int,int>mp;
// mp.reserve(1024);            //FAST UMAP
// mp.max_load_factor(0.25);
typedef long long ll;



using namespace std;



int main() {
    // your code goes here
    
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);

    int n , d;

    cin>>n>>d;int c = 0;

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

        if(sqrt(x*x + y*y) <=D)c++;
    }

    cout<<c;
    
    return 0;
}
//
// Created by yozaam on 13/06/20.
//



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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:32: error: no matching function for call to 'std::vector<int>::at()'
   11 |     if (d*d>=vec1.at(i)*vec1.at()+vec2.at(i)*vec2.at(i)){
      |                         ~~~~~~~^~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: candidate: 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]'
 1180 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/stl_vector.h:1180:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_vector.h:1199:7: note: candidate: 'std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::at(size_type) const [with _Tp = int; _Alloc = std::allocator<int>; const_reference = const int&; size_type = long unsigned int]'
 1199 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/stl_vector.h:1199:7: note:   candidate expects 1 argument, 0 provided
Language: C++

#include <bits/stdc++.h>
#include <algorithm>
#include <eigen3/Eigen/Dense>
using namespace std;
using namespace Eigen;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvec;
typedef vector<vector<bool>> vveb;
typedef vector<vector<string>> vves;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define rev(v) reverse(v.begin(), v.end())
#define fs first
#define sc second
#define pb push_back
#define pp pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
typedef long long int64;
//const int64 INF = 1LL << 58;
#define dame { puts("-1"); return 0;}
#define YES { cout << "YES" << endl; return 0; }
#define NO { cout << "NO" << endl; return 0; }
#define Yes { cout << "Yes" << endl; return 0; }
#define No { cout << "No" << endl; return 0; }
#define uniq(a) sort(all(a));(a).resize(unique(all(a)) - a.begin());
#define dab(v) for(auto i:v) cout << i << ' ' << endl;
#define vin(v) for (ll i = 0; i < v.size(); ++i) cin >> v[i];
#define vin2(v, w) for (ll i = 0; i < v.size(); ++i) cin >> v[i] >> w[i];
template<class T> bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> bool chmin(T& a, const T& b) { if (a > b) { a = b; return 1; } return 0; }
int dx[] = { 0, 0, -1, 1 };
int dy[] = { 1, -1, 0, 0 };
int gcd(int a, int b) { if (a % b == 0) { return(b); } else { return(gcd(b, a % b)); } }

int main()
{
	//printf("使用可能な最大スレッド数：%d\n", omp_get_max_threads());

	long long int N, D;
	cin >> N >> D;
	vector<long long int> X(N), Y(N);
	vin2(X, Y);
	int cnt = 0;
	rep(i, N){
		if(X.at(i)* X.at(i) + Y.at(i)* Y.at(i) <= D * D){
			cnt++;
		}
	}
	cout << cnt;
}

Compiler output:
a.cc:3:10: fatal error: eigen3/Eigen/Dense: No such file or directory
    3 | #include <eigen3/Eigen/Dense>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#define int long long
using namespace std;
main(){
  int n,k,ic(0);
  cin >> n >> k;
  while(n--){
    int x,y;
    cin >> x >> y;
    if((int)sqrt(x*x+y*y) == k) ic++;
  }
  cout << ic;
}

Compiler output:
a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:13: error: 'sqrt' was not declared in this scope
   10 |     if((int)sqrt(x*x+y*y) == k) ic++;
      |             ^~~~
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 a,b;
    cin>>a>>b;
    if(sqrt(a*a+b*b)<=d) ans++;
  }
  cout<<ans<<endl;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: 'ii' was not declared in this scope; did you mean 'i'?
   10 |     cin>>vec1.at(i)>>vec2.at(ii);
      |                              ^~
      |                              i
a.cc:11:32: error: no matching function for call to 'std::vector<int>::at()'
   11 |     if (d*d>=vec1.at(i)*vec1.at()+vec2.at(i)*vec2.at(i)){
      |                         ~~~~~~~^~
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:1180:7: note: candidate: 'std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::at(size_type) [with _Tp = int; _Alloc = std::allocator<int>; reference = int&; size_type = long unsigned int]'
 1180 |       at(size_type __n)
      |       ^~
/usr/include/c++/14/bits/stl_vector.h:1180:7: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/bits/stl_vector.h:1199:7: note: candidate: 'std::vector<_Tp, _Alloc>::const_reference std::vector<_Tp, _Alloc>::at(size_type) const [with _Tp = int; _Alloc = std::allocator<int>; const_reference = const int&; size_type = long unsigned int]'
 1199 |       at(size_type __n) const
      |       ^~
/usr/include/c++/14/bits/stl_vector.h:1199:7: note:   candidate expects 1 argument, 0 provided
Language: C++

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

#define pb push_back
#define pf push_front

using namespace std;	
typedef long long int lli;

lli n,k,l,m,t,a,b,r,c,temp1,temp2,x,y,temp,q,mod=1e9+7,w;

long double dist(lli a,lli b)
{
	return sqrt(a*a +b*b);
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    long double d;
    cin>>n>>d;
    lli cnt=0;
    for(int i =0;i<n;i++)
    {
    	cin>>a>>b;
    	
    	if(dist(a,b)-d<=0)cnt++;
    }
	
	cout<<cnt<<endl;
}

Compiler output:
a.cc: In function 'long double dist(lli, lli)':
a.cc:17:16: error: 'sqrt' was not declared in this scope
   17 |         return sqrt(a*a +b*b);
      |                ^~~~
Language: C++

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

int32_t main() {

	int n, d;
	cin >> n >> d;

	int count = 0;

	for(int i = 1; i <= n; i ++) {

		int x, y; scanf("%d %d")

		if(x * x + y * y <= d * d)
			count ++;
	}	
	cout << count << endl;
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:14:41: error: expected ';' before 'if'
   14 |                 int x, y; scanf("%d %d")
      |                                         ^
      |                                         ;
   15 | 
   16 |                 if(x * x + y * y <= d * d)
      |                 ~~
Language: C++

#include<iostream>
#define int long long 

using namespace std;

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

cout<<count<<endl;

return 0;
}
  

Compiler output:
a.cc:2:13: error: expected initializer before 'long'
    2 | #define int long long
      |             ^~~~
a.cc:8:1: note: in expansion of macro 'int'
    8 | int n,d;
      | ^~~
a.cc:10:1: error: 'cin' does not name a type
   10 | cin>>n>>d;
      | ^~~
a.cc:12:1: error: expected unqualified-id before 'while'
   12 | while(n--)
      | ^~~~~
a.cc:18:1: error: 'cout' does not name a type
   18 | cout<<count<<endl;
      | ^~~~
a.cc:20:1: error: expected unqualified-id before 'return'
   20 | return 0;
      | ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

using namespace std;
int main () {
  int N, D;
  cin >> N >> D;
  vector<long long> A(N); 
  vector<long long> B(N);
  for(int i = 0; i < N; i++) {
    cin >> A.at(i) >> B.at(i);
  }
  int ans = 0;
  for(int i = 0; i < N; i++) {
    if(sqrt(A.at(i) * A.at(i) + B.at(i) * B.at(i)) <= D) {
      ans++;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   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:5:3: error: 'vector' was not declared in this scope
    5 |   vector<long long> A(N);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | using namespace std;
a.cc:5:10: error: expected primary-expression before 'long'
    5 |   vector<long long> A(N);
      |          ^~~~
a.cc:6:10: error: expected primary-expression before 'long'
    6 |   vector<long long> B(N);
      |          ^~~~
a.cc:8:12: error: 'A' was not declared in this scope
    8 |     cin >> A.at(i) >> B.at(i);
      |            ^
a.cc:8:23: error: 'B' was not declared in this scope
    8 |     cin >> A.at(i) >> B.at(i);
      |                       ^
a.cc:12:13: error: 'A' was not declared in this scope
   12 |     if(sqrt(A.at(i) * A.at(i) + B.at(i) * B.at(i)) <= D) {
      |             ^
a.cc:12:33: error: 'B' was not declared in this scope
   12 |     if(sqrt(A.at(i) * A.at(i) + B.at(i) * B.at(i)) <= D) {
      |                                 ^
a.cc:12:8: error: 'sqrt' was not declared in this scope
   12 |     if(sqrt(A.at(i) * A.at(i) + B.at(i) * B.at(i)) <= D) {
      |        ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << ans << endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |   cout << ans << endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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


Compiler output:
a.cc:1:30: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h>using namespace std;
      |                              ^~~~~~~~~
a.cc:1:9: fatal error: bits/stdc++.h>usin: No such file or directory
    1 | #include<bits/stdc++.h>using namespace std;
      |         ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#define int long long
using namespace std;
int main(){
  int n,k,ic(0);
  cin >> n >> k;
  while(n--){
    int x,y;
    cin >> x >> y;
    if((int)sqrt(x*x+y*y) == k) ic++;
  }
  cout << ic;
}

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

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: 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:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>vec1 (n);
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>vec1 (n);
      |          ^~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int>vec2(n);
      |          ^~~
a.cc:10:10: error: 'vec1' was not declared in this scope
   10 |     cin>>vec1.at(i)>>vec2.at(ii);
      |          ^~~~
a.cc:10:22: error: 'vec2' was not declared in this scope
   10 |     cin>>vec1.at(i)>>vec2.at(ii);
      |                      ^~~~
a.cc:10:30: error: 'ii' was not declared in this scope; did you mean 'i'?
   10 |     cin>>vec1.at(i)>>vec2.at(ii);
      |                              ^~
      |                              i
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout<<x<<endl;}
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout<<x<<endl;}
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

public class B {
	
	public static void main(String[] args) throws InterruptedException {
		FastScanner fs=new FastScanner();
		int n=fs.nextInt();
		long d=fs.nextLong();
		d*=d;
		int c=0;
		for (int i=0; i<n; i++) {
			long x=fs.nextInt(), y=fs.nextInt();
			if (x*x+y*y<=d) c++;
		}
		System.out.println(c);
	}
	
	void sort(int[] a) {
		ArrayList<Integer> list=new ArrayList<>();
		for (int i:a) list.add(i);
		Collections.sort(list);
		for (int i=0; i<a.length; i++) a[i]=list.get(i);
	}
	
	
	static class FastScanner {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st=new StringTokenizer("");
		
		public String next() {
			while (!st.hasMoreTokens())
				try {
					st=new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			return st.nextToken();
			
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
		
		public int[] readArray(int n) {
			int[] a=new int[n];
			for (int i=0; i<n; i++) a[i]=nextInt();
			return a;
		}
		
		public long nextLong() {
			return Long.parseLong(next());
		}
		
		public long[] readLongArray(int n) {
			long[] a=new long[n];
			for (int i=0; i<n; i++) a[i]=nextLong();
			return a;
		}
	}

}


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

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

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

    int cnt=0;

    for (int i =1;i<N;i++){
        cin >> a >> b;
        if(sqrt(a*a+b*b)<=D){
            cnt++;
        }
    }

    cout << cnt << endl;

    return 0;

}

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

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

#define pb push_back
#define pf push_front

using namespace std;	
typedef long long int lli;

lli n,k,l,m,t,a,b,r,c,temp1,temp2,x,y,temp,q,d,mod=1e9+7,w;

long double dist(lli a,lli b)
{
	return sqrt(a*a +b*b);
}

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    
    cin>>n>>d;
    lli cnt=0;
    for(int i =0;i<n;i++)
    {
    	cin>>a>>b;
    	
    	if(dist(a,b)-d<=0)cnt++;
    }
	
	cout<<cnt<<endl;
}

Compiler output:
a.cc: In function 'long double dist(lli, lli)':
a.cc:17:16: error: 'sqrt' was not declared in this scope
   17 |         return sqrt(a*a +b*b);
      |                ^~~~
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: 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:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int>vec1 (n);
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int>vec1 (n);
      |          ^~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int>vec2(n);
      |          ^~~
a.cc:10:10: error: 'vec1' was not declared in this scope
   10 |     cin>>vec1.at(i)>>vec2.at(ii);
      |          ^~~~
a.cc:10:22: error: 'vec2' was not declared in this scope
   10 |     cin>>vec1.at(i)>>vec2.at(ii);
      |                      ^~~~
a.cc:10:30: error: 'ii' was not declared in this scope; did you mean 'i'?
   10 |     cin>>vec1.at(i)>>vec2.at(ii);
      |                              ^~
      |                              i
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout<<x<<endl;}
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:12: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout<<x<<endl;}
      |            ^~~~
      |            std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
 
using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define fileio freopen("http://in.in", "r", stdin),freopen("out.out", "w", stdout);
#define ll long long
#define pb push_back
#define pll pair<ll,ll>
#define ff first
#define ss second
#define N 2000001
#define M 1000000007
#define INF 1000000000000000
 
 
int main()
{
  ll n,d,ans=0;
  cin>>n>>d;
  d=d*d;
  ll i;
  for(i=0;i<n;i++)
  {
  	cin>>x>>y;
  	if(x*x+y*y<=d)ans++;
 
  }
  cout<<ans;
}
#include <bits/stdc++.h>

using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define fileio freopen("http://in.in", "r", stdin),freopen("out.out", "w", stdout);
#define ll long long
#define pb push_back
#define pll pair<ll,ll>
#define ff first
#define ss second
#define N 2000001
#define M 1000000007
#define INF 1000000000000000


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

  }
  cout<<ans;
}
Submission Info

Compiler output:
a.cc: In function 'int main()':
a.cc:24:14: error: 'x' was not declared in this scope
   24 |         cin>>x>>y;
      |              ^
a.cc:24:17: error: 'y' was not declared in this scope
   24 |         cin>>x>>y;
      |                 ^
a.cc: At global scope:
a.cc:45:5: error: redefinition of 'int main()'
   45 | int main()
      |     ^~~~
a.cc:16:5: note: 'int main()' previously defined here
   16 | int main()
      |     ^~~~
a.cc:60:1: error: 'Submission' does not name a type
   60 | Submission Info
      | ^~~~~~~~~~
Language: C++


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

#define int long long int

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

Compiler output:
a.cc:5:23: error: '::main' must return 'int'
    5 | #define int long long int
      |                       ^~~
a.cc:7:1: note: in expansion of macro 'int'
    7 | int main() {
      | ^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected ';' before 'for'
    8 |   d *= d
      |         ^
      |         ;
    9 |   for(int i = 0;i < n;i++) {
      |   ~~~    
a.cc:9:17: 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;
#define rep(i, n) for(int i = 0; i < n; ++i)

void solve(){
  int N, D; cin >> N >> D;
  pair<double, double> r[N];
  rep(i, N) cin >> r[i].first >> r[i].second;
  int cnt = 0;
  for(int i = 0; i < N;++i){
    if((double)D >= sqrt(r[i].first * r[i].first + r[i].second * r[i].second)) cnt++;
  }
  cout << cnt << endl;4 5
0 5
-2 4
3 4
4 -4
}

int main(){
  solve();
  return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:13:24: error: expected ';' before numeric constant
   13 |   cout << cnt << endl;4 5
      |                        ^~
      |                        ;
Language: C++

#include <iostream>
#define int long long
using namespace std;
int main(){
  int n,k,ic(0);
  cin >> n >> k;
  while(n--){
    int x,y;
    cin >> x >> y;
    if((int)sqrt(x*x+y*y) == k) ic++;
  }
  cout << ic;

Compiler output:
cc1plus: error: '::main' must return 'int'
a.cc: In function 'int main()':
a.cc:10:13: error: 'sqrt' was not declared in this scope
   10 |     if((int)sqrt(x*x+y*y) == k) ic++;
      |             ^~~~
a.cc:12:14: error: expected '}' at end of input
   12 |   cout << ic;
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
typedef long long int ll;
typedef float f;
int main()
{
  ll n,d,x,y,l=0;
  f z;
  cin>>n>>d;
  while(n--)
  {
    cin>>x>>y;
    z=sqrt((x*x)+(y*y));
    if(z>=d)
      l++:;
  } 
  return 0;
}  

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

/*
h s, d't skp th si tll i's sved
 * ABC141 E
 * ABC145 D
 * ABC147 F
*/
#include<bits/stdc++.h>
#define ll long long
#define mod 1000000007
using namespace std;
int main()
{
ll n,d;
cin>>n>>d;
ll ans=0;
ll a,b;
for(ll i=0;i<n;i++)
{
cin>>a>>b;
long double k=(long double)sqrt(a*a+b*b);
if(k<=d)
{
ans++;
}
st.insert({a,b});
}
cout<<ans<<endl;
}




/*
 * ||||


 */

Compiler output:
a.cc: In function 'int main()':
a.cc:25:1: error: 'st' was not declared in this scope; did you mean 'std'?
   25 | st.insert({a,b});
      | ^~
      | std
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define fileio freopen("http://in.in", "r", stdin),freopen("out.out", "w", stdout);
#define ll long long
#define pb push_back
#define pll pair<ll,ll>
#define ff first
#define ss second
#define N 2000001
#define M 1000000007
#define INF 1000000000000000


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

  }
  cout<<ans;
}

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

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#define _GLIBCXX_DEBUG
#define INF 100000010
 #define PI 3.14159265359

using namespace std;
const int64_t mod = 1000000007;
const int64_t tmpMod = 998244353;


int main() {
 
  int64_t N,ans=0,d;
  cin>>N>>d;
  vector<int64_t> A(N),B(N),;
  for(int i=0; i<N; i++){cin>>A[i]>>B[i];
                        if(A[i]*A[i]+B[i]*B[i]>=d)ans++;
                        }
  //vector<vector<int> > A(N,vector<int>(M));
  //for(int i=0; i<N; i++){for(int j=0; j<M; j++){cin>>A[i][j];}}
  //sort(A.begin(),A.end());
  //for (int i = 0; i < N; i++) { maximum = max(maximum , A[i]);}
  //for (int i = 0; i < N; i++) { minimum = min(minimum , A[i]);}
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:48:29: error: expected unqualified-id before ';' token
   48 |   vector<int64_t> A(N),B(N),;
      |                             ^