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

#include <bits/stdc++.h>
using namespace std;
#define ll          long long
#define vl          vector<ll>
#define vi          vector<int>
#define pi          pair<int,int>
#define pl          pair<ll,ll>
#define all(a)      a.begin(),a.end()
#define mem(a,x)    memset(a,x,sizeof(a))
#define pb          push_back
#define mp          make_pair
#define F           first
#define S           second
#define endl 		"\n"
#define rep(i,a,b)  for(int i=a;i<b;i++)
#define fast_io     std::ios::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL)
#define trace(...) ZZ(#__VA_ARGS__, __VA_ARGS__);
template <typename Arg1> void ZZ(const char* name, Arg1&& arg1) {std::cerr << name << " = " << arg1 << endl;}
template <typename Arg1, typename... Args>void ZZ(const char* names, Arg1&& arg1, Args&&... args)
{
	const char* comma = strchr(names + 1, ',');
	std::cerr.write(names, comma - names) << " : " << arg1;
	ZZ(comma, args...);
}

void solve() {
	ll n, d
	cin >> n>>d;
	int cnt = 0;
	rep(i, 0, n){
		ll x, y;
		cin>>x>>y;
		if((x*x + y*y)>=d*d)cnt++;
	}
	cout<<cnt;

}
int main() {
	fast_io;
	int t = 1;
	// cin>>t;
	while (t--) {
		solve();
	}
	// cerr << "Time elapsed: " << 1.0 * clock() / CLOCKS_PER_SEC << " s.\n";
	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:28:9: error: expected initializer before 'cin'
   28 |         cin >> n>>d;
      |         ^~~
a.cc:33:33: error: 'd' was not declared in this scope
   33 |                 if((x*x + y*y)>=d*d)cnt++;
      |                                 ^
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main(){
  long long int n,d,a,b,c,x,y,p,q,i;
  cin>>n>>d;
  for(i=0;i<n;i++){
    cin>>p>>q;
    a=p*p;
    b=q*q;
    x=a+b;
    y=sqrt(x);
    if(y<=d)
      c++;
  }

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

#include<iostream>
#include<math.h>
using namespace std;
void main(){
  long long int n,d,a,b,c,x,y,p,q,i;
  cin>>n>>d;
  for(i=0;i<n;i++){
    cin>>p>>q;
    a=p*p;
    b=q*q;
    x=a+b;
    y=sqrt(x);
    if(y<=d)
      c++;
  }
  cout<<c;
}
    
    
  
   

Compiler output:
a.cc:4:1: error: '::main' must return 'int'
    4 | void main(){
      | ^~~~
Language: C

n,d=input().split()
D=d**2
cnt=0

for _ in range(n):
  x,y=input().split()
  if D>=x**2+y**2:
    cnt += 1
    
print(cnt)


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n,d=input().split()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'd' [-Wimplicit-int]
    1 | n,d=input().split()
      |   ^
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | n,d=input().split()
      |     ^~~~~
main.c:1:12: error: request for member 'split' in something not a structure or union
    1 | n,d=input().split()
      |            ^
main.c:2:1: error: expected ',' or ';' before 'D'
    2 | D=d**2
      | ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
 int N=0,D=0,t=0,m=200000;
  cin>>N>>D;
  if(N>=0 && N<=m && D>=1 && D<=m){
  int i[N],j[N],k[N];
  for(int x=0;i<=N;x++){
    cin>>i[x]>>j[x];
    if(i[x]>m || j[x]>m){continue;}
    k[N]=sqrt(i[x]*i[x]+j[x]*j[x]);
    if(k[N]<=D)
      t++;
  }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   for(int x=0;i<=N;x++){
      |               ~^~~
Language: C++

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

int main()
{
    ll n,d;
    cin>>n>>d;
    ll x[n],y[n];
    int count=0;
    for(int i=0;i<n;i++)
    {
        cin>>x[i]>>y[i];
        ll=(x[i]*x[i]) +(y[i]*y[i]);
        double dis=sqrt(sum);
        if(dis<=d)
        {
        count++;
        }
    
    }
    cout<<count<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: expected unqualified-id before '=' token
   14 |         ll=(x[i]*x[i]) +(y[i]*y[i]);
      |           ^
a.cc:15:25: error: 'sum' was not declared in this scope
   15 |         double dis=sqrt(sum);
      |                         ^~~
Language: C++

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

int main()
{
  long long int N,D;
  cin>>N>>D;
  int x,y;
  float d;
  int count=0;
  for(int i=0;i<N;i++)
  {
    cin>>x>>y;
    d=sqrt(pow(x,2)+pow(y,2));
    if(d>=D)
    {
      count++;
    }
  }
  return 0;
}
    
    

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

#include<stdio.h>

int main(void)
{
  int n, d;
  int x, y;

  scanf("%d %d", &n, &d);

  int ans = 0;

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

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

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:27: error: invalid operands to binary & (have 'int *' and 'int')
   13 |         scanf("%d %d", &x &y);
      |                        ~~ ^
      |                        |
      |                        int *
Language: C++

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

double a,b,c,n,d;

int t;

main (){
  int ans=0;
  cint>>t>>n;
  
  while(t--){
    
    cin>>a>>b;
    
    double r=round(sqrt(a*a+b*b));
    if(r==n) ans++;
  }
cout<<ans;
}

Compiler output:
a.cc:8:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    8 | main (){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:3: error: 'cint' was not declared in this scope; did you mean 'uint'?
   10 |   cint>>t>>n;
      |   ^~~~
      |   uint
Language: Java

import java.util.Scanner;
public class Main
{
  public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
    {
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
    }
  }
  System.out.println(result);
}


Compiler output:
Main.java:20: error: <identifier> expected
  System.out.println(result);
                    ^
Main.java:20: error: <identifier> expected
  System.out.println(result);
                           ^
2 errors
Language: C++

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:21: error: array must be initialized with a brace-enclosed initializer
    4 |   int n,d,x[200000]=0,y[200000]=0,count;
      |                     ^
a.cc:4:33: error: array must be initialized with a brace-enclosed initializer
    4 |   int n,d,x[200000]=0,y[200000]=0,count;
      |                                 ^
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0;i<n;i++){
      |       ^
a.cc:12:4: error: expected '}' at end of input
   12 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

nclude <iostream>
#include <array>
#include <functional>
#include <utility>
#include <regex>

int main()
{
    int64_t N, D;
    std::cin >> N >> D;
    size_t c = 0;
    for (int64_t n = 0; n < N; ++n)
    {
        int64_t X, Y;
        std::cin >> X >> Y;
        if ((D * D) >= (X * X + Y * Y)) ++c;
    }

    std::cout << c << std::endl;

    return 0;
}



Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <iostream>
      | ^~~~~~
In file included from /usr/include/c++/14/array:39,
                 from a.cc:2:
/usr/include/c++/14/initializer_list:51:15: error: 'size_t' does not name a type
   51 |       typedef size_t            size_type;
      |               ^~~~~~
/usr/include/c++/14/initializer_list:1:1: note: 'size_t' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | // std::initializer_list support -*- C++ -*-
/usr/include/c++/14/initializer_list:57:7: error: 'size_type' does not name a type
   57 |       size_type                 _M_len;
      |       ^~~~~~~~~
/usr/include/c++/14/initializer_list:60:54: error: 'size_type' has not been declared
   60 |       constexpr initializer_list(const_iterator __a, size_type __l)
      |                                                      ^~~~~~~~~
/usr/include/c++/14/initializer_list:68:17: error: 'size_type' does not name a type
   68 |       constexpr size_type
      |                 ^~~~~~~~~
/usr/include/c++/14/initializer_list:45:11: fatal error: definition of 'class std::initializer_list<_E>' does not match '#include <initializer_list>'
   45 |     class initializer_list
      |           ^~~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
public class Main
{
  public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
  }
  System.out.println(result);
}


Compiler output:
Main.java:12: error: variable declaration not allowed here
      double x1 = sc.nextDouble();
             ^
Main.java:18: error: <identifier> expected
  System.out.println(result);
                    ^
Main.java:18: error: <identifier> expected
  System.out.println(result);
                           ^
3 errors
Language: Java

java.util.Scanner;
public class Main
{
  public static void main (String[] args)
  {
    Scanner sc = new Scanner(System.in);
    int p = sc.nextInt();
    int q = sc.nextInt();
    int result = 0;
    
    for(int i = 0; i < p; i++)
      double x1 = sc.nextDouble();
      double x2 = sc.nextDouble();
      double dis = Math.sqrt(Math.pow(x1,2) + Math.pow(x2,2));
    if(dis <= q)
      result++;
  }
  System.out.println(result);
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
java.util.Scanner;
^
Main.java:12: error: variable declaration not allowed here
      double x1 = sc.nextDouble();
             ^
Main.java:18: error: <identifier> expected
  System.out.println(result);
                    ^
Main.java:18: error: <identifier> expected
  System.out.println(result);
                           ^
4 errors
Language: Java


package javaapplication227;
import java.util.*;

 Class JavaApplication227 {

  
    public static void main(String[] args) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    }
    
}


Compiler output:
Main.java:5: error: class, interface, enum, or record expected
 Class JavaApplication227 {
 ^
Main.java:8: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:31: error: class, interface, enum, or record expected
}
^
Main.java:2: error: unnamed class should not have package declaration
package javaapplication227;
^
4 errors
Language: Java


import java.util.*;

 class  {

  
    public static void main(String[] args) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    }
    
}


Compiler output:
Main.java:4: error: <identifier> expected
 class  {
      ^
1 error
Language: Java


package javaapplication227;
import java.util.*;

 public class JavaApplication227 {

  
    public static void main(String[] args) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    }
    
}


Compiler output:
Main.java:5: error: class JavaApplication227 is public, should be declared in a file named JavaApplication227.java
 public class JavaApplication227 {
        ^
1 error
Language: Java



import java.util.*;

public class JavaApplication227 {

  
    public static void main(String[] args) {
      Scanner x= new Scanner(System.in);
      int n = x.nextInt();
      int d = x.nextInt();
      double[]nums = new double[n];
      for(int i = 0 ; i < n;i++){
      double a = x.nextDouble();
      double b = x.nextDouble();
      a = Math.pow(a,2);
      b= Math.pow(b,2);
      double c = Math.sqrt(a+b);
      nums[i] = c;
      }
      int count = 0;
          for(int i = 0 ; i<n;i++){
          if(nums[i] <=d){
          count++;
          }
          }
          System.out.println(count);
          
    }
    
}


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

#include <iostream>
#include <math.h>
typedef long long ll;
int main()
{
  ll n,d;
  cin>>n>>d;
  ll c=0;
  for(ll i=1;i<=n;i++)
  {
    ll x,y;
    cin>>x>>y;
    ll dis=sqrt((x*x)+(y*y));
    if(dis<=d)
      c++;
  }
  cout<<c;
  return 0;
}
      
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin>>n>>d;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   cout<<c;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>
int main()
{
 int N,D,X,Y,i,t=0;
  scanf("%d %d",&N,&D);
  for(i=0;i<N;i++)
  {
    scanf("%d %d", &X, &Y);
    if(x*x+y*y<=D*D)
  {
    t=t+1;
  }
  }
  
  printf("%d",t);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:8: error: 'x' undeclared (first use in this function)
    9 |     if(x*x+y*y<=D*D)
      |        ^
main.c:9:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:12: error: 'y' undeclared (first use in this function)
    9 |     if(x*x+y*y<=D*D)
      |            ^
Language: C

#include<stdio.h>
int main()
{
 int N,D;
  scanf("%d %d",&N,&D);
 int X[N],Y[N],i,t=0,k;
  for(i=0;i<N;i++)
  {
    scanf("%d %d", &X[i], &Y[i]);
  }
  for(i=0;i<N;i++)
  {
    k=X[i]*X[i]+Y[i]*Y[i]
  if(k<=D*D)
  {
    t=t+1;
  }
  }
  printf("%d",t);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:26: error: expected ';' before 'if'
   13 |     k=X[i]*X[i]+Y[i]*Y[i]
      |                          ^
      |                          ;
   14 |   if(k<=D*D)
      |   ~~
Language: C

#include<stdio.h>
int main()
{
 int N,D;
  scanf("%d %d",&N,&D);
 int X[N],Y[N],i,t=0;
  for(i=0;i<N;i++)
  {
    scanf("%d %d",X[i],Y[i]);
  }
  for(i=0;i<N;i++){
  if(X[i]*X[i]+Y[i]*Y[i]=<D*D)
  {
    t=t+1;
  }
  }
  printf("%d",t);
  return 0;
}
  
#include<stdio.h>
int main()
{
 int N,D;
  scanf("%d %d",&N,&D);
 int X[N],Y[N],i,t=0;
  for(i=0;i<N;i++)
  {
    scanf("%d %d",&X[i],&Y[i]);
  }
  for(i=0;i<N;i++){
  if(X[i]*X[i]+Y[i]*Y[i]<=D*D)
  {
    t=t+1;
  }
  }
  printf("%d",t);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:26: error: expected expression before '<' token
   12 |   if(X[i]*X[i]+Y[i]*Y[i]=<D*D)
      |                          ^
main.c: At top level:
main.c:22:5: error: redefinition of 'main'
   22 | int main()
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int()'
    2 | int main()
      |     ^~~~
Language: C

#include<stdio.h>
int main()
{
 int N,D;
  scanf("%d %d",&N,&D);
 int X[N],Y[N],i,t=0;
  for(i=0;i<N;i++)
  {
    scanf("%d %d",X[i],Y[i]);
  }
  for(i=0;i<N;i++){
  if(X[i]*X[i]+Y[i]*Y[i]=<D*D)
  {
    t=t+1;
  }
  }
  printf("%d",t);
  return 0;
}
  
#include<stdio.h>
int main()
{
 int N,D;
  scanf("%d %d",&N,&D);
 int X[N],Y[N],i,t=0;
  for(i=0;i<N;i++)
  {
    scanf("%d %d",&X[i],&Y[i]);
  }
  for(i=0;i<N;i++){
  if(X[i]*X[i]+Y[i]*Y[i]=<D*D)
  {
    t=t+1;
  }
  }
  printf("%d",t);
  return 0;
}
  
提出情報
提出日時

Compiler output:
main.c: In function 'main':
main.c:12:26: error: expected expression before '<' token
   12 |   if(X[i]*X[i]+Y[i]*Y[i]=<D*D)
      |                          ^
main.c: At top level:
main.c:22:5: error: redefinition of 'main'
   22 | int main()
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int()'
    2 | int main()
      |     ^~~~
main.c: In function 'main':
main.c:32:26: error: expected expression before '<' token
   32 |   if(X[i]*X[i]+Y[i]*Y[i]=<D*D)
      |                          ^
main.c: At top level:
main.c:41:1: error: unknown type name '\U000063d0\U000051fa\U000060c5\U00005831'
   41 | 提出情報
      | ^~~~~~~~
main.c:42:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   42 | 提出日時
      | ^~~~~~~~
Language: C

#include<stdio.h>
int main()
{
 int N,D;
  scanf("%d %d",&N,&D);
 int X[N],Y[N],i,t=0;
  for(i=0;i<N;i++)
  {
    scanf("%d %d",X[i],Y[i]);
  }
  for(i=0;i<N;i++){
  if(X[i]*X[i]+Y[i]*Y[i]=<D*D)
  {
    t=t+1;
  }
  }
  printf("%d",t);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:12:26: error: expected expression before '<' token
   12 |   if(X[i]*X[i]+Y[i]*Y[i]=<D*D)
      |                          ^
Language: Java

public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        double D = scan.nextDouble();

        int overCount = 0;

        for (int i = N; i > 0; i--) {
            double X = scan.nextDouble();
            double Y = scan.nextDouble();
            double dis = Math.sqrt(Math.pow(X, 2) + Math.pow(Y, 2));
            if (dis <= D) {
                overCount++;
            }
        }
        System.out.println(overCount);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n,d;
  int x[21000];
  int y[21000];
  int cnt=0;

  cin >> n >>d;

  int i;
  for(i=1;i>n,i++){
      cin >> x[i] >> y[i] ;
      if(d*d > x[i]*x[i] + y[i] * y[i]){
          cnt++;
      }
  }

  cout << cnt << endl;

}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected ';' before ')' token
   13 |   for(i=1;i>n,i++){
      |                  ^
      |                  ;
Language: C++

using namespace std;
 
int main(){
    long long n,d,Count=0,x,y,sum;
    cin >> n >> d;
    for (long long i=0;i<n;i++){
        cin >> x >> y;
        sum=sqrt(pow(x,2)+pow(y,2));
        if (sum<=d){
            Count++;
        }
    }
    cout << Count;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: 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:8:18: error: 'pow' was not declared in this scope
    8 |         sum=sqrt(pow(x,2)+pow(y,2));
      |                  ^~~
a.cc:8:13: error: 'sqrt' was not declared in this scope
    8 |         sum=sqrt(pow(x,2)+pow(y,2));
      |             ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << Count;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<iostream>
using namespace std;
using ll = Long Long;

int main(){
    int n;
    ll d;
    int counter =  0;
    cin >> n >> d;
    
    
    for (int i = 0; i < n; ++i){
        
        if(x * x + y * y >= d * d){
            counter += 1;
            }
    }
    cout << counter << endl;
    return 0;
}

Compiler output:
a.cc:3:12: error: 'Long' does not name a type; did you mean 'long'?
    3 | using ll = Long Long;
      |            ^~~~
      |            long
a.cc: In function 'int main()':
a.cc:7:5: error: 'll' was not declared in this scope
    7 |     ll d;
      |     ^~
a.cc:9:17: error: 'd' was not declared in this scope
    9 |     cin >> n >> d;
      |                 ^
a.cc:14:12: error: 'x' was not declared in this scope
   14 |         if(x * x + y * y >= d * d){
      |            ^
a.cc:14:20: error: 'y' was not declared in this scope
   14 |         if(x * x + y * y >= d * d){
      |                    ^
Language: C++

20 100000
14309 -32939
-56855 100340
151364 25430
103789 -113141
147404 -136977
-37006 -30929
188810 -49557
13419 70401
-88280 165170
-196399 137941
-176527 -61904
46659 115261
-153551 114185
98784 -6820
94111 -86268
-30401 61477
-55056 7872
5901 -163796
138819 -185986
-69848 -96669

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 20 100000
      | ^~
Language: C

#include<stdio.h>
int main(){
  int n,d;
  int ans =0;
  scanf("%d%d",&n,&d);
  
  int x,y;
  for (int i=0;i<n;i++){
    scanf("%d%d",&x,&y);
    if(x*x+y*y<=d*d){
      ans++;
    }
  }
  
  printr("%d",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:3: error: implicit declaration of function 'printr'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |   printr("%d",ans);
      |   ^~~~~~
      |   printf
Language: C

#include<stdio.h>
int main(){
  int n,d;
  int ans =0;
  scanf("%d%d",&n,&d);
  
  int x,y;
  for (int i=0;i<n;i++){
    scanf("%d%d",x,y);
    if(x*x+y*y<=d*d){
      ans++;
    }
  }
  
  printr("%d",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:3: error: implicit declaration of function 'printr'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |   printr("%d",ans);
      |   ^~~~~~
      |   printf
Language: C++

#include <iostream>
#include <math>

using namespace std;

int main() {

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

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

#include<stdio.h>
int main(){
  int n,d;
  int ans =0;
  scanf("%d%d",&n,&d);
  
  int x[n],y[n];
  for (int i=0;i<n;i++){
    scanf("%d%d",x[i],y[i]);
    if(x[i]*x[i]+y[i]*y[i]<=d*d){
      ans++;
    }
  }
  
  printr("%d",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:3: error: implicit declaration of function 'printr'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |   printr("%d",ans);
      |   ^~~~~~
      |   printf
Language: C++

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

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

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

Compiler output:
a.cc:12:2: error: '\U0000200b' does not name a type
   12 | }​
      |
Language: C++

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

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

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

int main ()
{
	long long n, d, x, y, s=0;
	cin >> n >> d;
	
	for (int i=0; i<n; i++)
	{
		cin >> x >> y;
		if (x*x+y*y<=d*d) s++;
	}
	cout << s;
	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 <bits/stdc++.h>
using namespace std;
   int a[10+1],b[10+1];
int main ()
{
	long long n,d,y,s=0;
	cin>>n>>d;
	    
    for ( int i=0;i<n;i++){
    	cinn>>x>>y;
    	if (x*x+y*y<=d*d) s++
	}
	cout << s   	
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cinn' was not declared in this scope
   10 |         cinn>>x>>y;
      |         ^~~~
a.cc:10:15: error: 'x' was not declared in this scope
   10 |         cinn>>x>>y;
      |               ^
a.cc:11:30: error: expected ';' before '}' token
   11 |         if (x*x+y*y<=d*d) s++
      |                              ^
      |                              ;
   12 |         }
      |         ~                     
a.cc:13:18: error: expected ';' before 'return'
   13 |         cout << s
      |                  ^
      |                  ;
   14 |     return 0;
      |     ~~~~~~
Language: C

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

int main ()
{
	long long  n, d, x, y, s=0;
	
	cin >> n >> d;
	
	for (int i=0; i<n; i++){
		cin >> x >> y;
		if (x*x+y*y<=d*d)s++;
	}
	
	cout << s;
	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 <bits/stdc++.h>
using namespace std;
   int a[10+1],b[10+1];
int main ()
{
	int n,d,y,s=0;
	cin>>n>>d;
	    
    for ( int i=0;i<n;i++){
    	cinn>>x>>y;
    	if (x*x+y*y<=d*d) s++
	}
	cout << s   	
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'cinn' was not declared in this scope
   10 |         cinn>>x>>y;
      |         ^~~~
a.cc:10:15: error: 'x' was not declared in this scope
   10 |         cinn>>x>>y;
      |               ^
a.cc:11:30: error: expected ';' before '}' token
   11 |         if (x*x+y*y<=d*d) s++
      |                              ^
      |                              ;
   12 |         }
      |         ~                     
a.cc:13:18: error: expected ';' before 'return'
   13 |         cout << s
      |                  ^
      |                  ;
   14 |     return 0;
      |     ~~~~~~
Language: C++

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

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

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

int main ()
{
	int n, d, x, y, s=0;
	cin >> n >> d;
	
	for (int i=0; i<n; i++)
	{
		cin >> x >> y;
		if (x*x+y*y<=d*d) s++;
	}
	cout << s;
	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 <iostream>
using namespace std;
int main()
{
int a,b,x,y,s=0;
cin>>a>>b;
for(int i=0;i<a;i++){
cin>>x>>y;
if(x*x+y*y<=b*b) s++；
}
 cout<<s;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '\U0000ff1b'
    9 | if(x*x+y*y<=b*b) s++；
      |                     ^~
      |                     ;
Language: C

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

int main ()
{
	int  n, d, x, y, s=0;
	
	cin >>n >> d;
	
	for (int i=0; i<n; i++){
		cin >> x >> y;
		if (x*x+y*y<=d*d)s++;
	}
	
	cout << s;
	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 <iostream>
using namespace std;
int main()
{
int a,b,x,y,s=0;
cin>>a>>b;
for(int i=0;i<a;i++){
cin>>x>>y;
if(x*x+y*y<=b*b) s++
}
 cout<<s;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected ';' before '}' token
    9 | if(x*x+y*y<=b*b) s++
      |                     ^
      |                     ;
   10 | }
      | ~
Language: Java

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

Compiler output:
Main.java:14: error: ';' expected
          	double ans=(x*x)+(y*y)
          	                      ^
1 error
Language: Java

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

Compiler output:
Main.java:9: error: ';' expected
    int count=0l
                ^
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
   11 |     cin>>x[i]>>y[i]
      |                    ^
      |                    ;
   12 |   }
      |   ~
Language: C++

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

#define sc(a) scanf("%d",&a)
#define scm(a,b) scanf("%d%d",&a,&b)
#define fl(c,i,n) for(int i=c;i<n;i++)
#define f(i,n) for(int i=0;i<n;i++)
#define mem(a) memset(a,0,sizeof(a))
#define ll long long int
#define ull unsigned long long int
#define inf INT_MAX
#define linf LLONG_MAX
#define pb push_back
#define pp pop_back()
#define aov(a) a.begin(),a.end()
//#define mp make_pair
#define nl printf("\n")
#define PI 2.0*acos(0.0) //#define PI acos(-1.0)
#define xx first
#define yy second
#define mxv(a) *max_element(aov(a))
#define mnv(a) *min_element(aov(a))
#define LB(a,x) (lower_bound(aov(a),x)-a.begin())
#define UB(a,x) (upper_bound(aov(a),x)-a.begin())
#define to_c_string(a) a.c_str()
#define strtoint(c) atoi(&c[0])
#define pii pair<int,int>
#define MAXN 100005
#define MOD 1000000007
 
template <class T> inline T bigmod(T p,T e,T M){
    ll ret = 1;
    for(; e > 0; e >>= 1){
        if(e & 1) ret = (ret * p) % M;
        p = (p * p) % M;
    } return (T)ret;
}
template <class T> inline T gcd(T a,T b){if(b==0)return a;return gcd(b,a%b);}
template <class T> inline T modinverse(T a,T M){return bigmod(a,M-2,M);}
/*int fact[MAXN];
int invfact[MAXN];
int inv(int a, int b){
    if(b==0)
        return 1;
    if(b&1)
        return (long long)a*inv(a, b-1)%MOD;
    else{
        int res = inv(a, b>>1);
        return (long long)res*res%MOD;
    }
}
void init(){
    fact[0] = 1;
    for(int i=1;i<MAXN;i++){
        fact[i] = (long long)fact[i-1]*i%MOD;
    }
    invfact[MAXN-1] = inv(fact[MAXN-1], MOD-2);
    for(int i=MAXN-1;i>0;i--){
        invfact[i-1] = (long long)invfact[i]*i%MOD;
    }
}
int C(int n, int r){
    if(r>n || r<0)
        return 0;
    return (long long)((long long)fact[n]*invfact[r]%MOD)*invfact[n-r]%MOD;
}*/

int n, d, x, y;
void solve(){
    cin>>n>>d;
    ll d2 = (ll)d*d;
    int ans = 0;
    while(n--) {
        cin>>x>>y;
        ll x2y2 = (ll)x*x + (ll)y*y;
        ans += (x2y2<=d2);
    }
    cout<<ans;
}





int main(){
    /*FILE *fin = freopen("C-small-attempt0.in", "r", stdin);
    assert( fin!=NULL );
    FILE *fout = freopen("C-small.out", "w", stdout);*/
    //init();
    solve();
    return 0;
}


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

/*input
 
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int n,D;cin>>n>>D;
  	int ans=0; 
  	for(int i=0;i<n;i++)
    {
      long long int x,y;cin>>x>>y;
      ans+=((x*x+y*y)<=D*D);
    }
  	cout<<ans<<"\n"
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before 'return'
   15 |         cout<<ans<<"\n"
      |                        ^
      |                        ;
   16 |         return 0;
      |         ~~~~~~
Language: C++

/*input
 
*/
#include<bits/stdc++.h>
using namespace std;
int main()
{
	long long int n,D;cin>>n>>D;
  	int ans=0; 
  	for(int i=0;i<n;i++)
    {
      long long int x,y;cin>>x>>y;
      ans+=((x*x+y*y)<=D);
    }
  	cout<<ans<<"\n"
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:24: error: expected ';' before 'return'
   15 |         cout<<ans<<"\n"
      |                        ^
      |                        ;
   16 |         return 0;
      |         ~~~~~~
Language: C++

using namespace std;
#define ll long long
int main(){
  int n,t;
  int ans=0;
  cin>>n>>t;
  for(int i=0;i<n;i++){
    int p1,p2;
    cin>>p1>>p2;
    ll sum=pow(p1,2)+pow(p2,2);
    ll squ=ceil(pow(sum,0.5));
    if(squ<=t)	ans++;
  }
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>n>>t;
      |   ^~~
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:10:12: error: 'pow' was not declared in this scope
   10 |     ll sum=pow(p1,2)+pow(p2,2);
      |            ^~~
a.cc:11:12: error: 'ceil' was not declared in this scope
   11 |     ll squ=ceil(pow(sum,0.5));
      |            ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout<<ans;
      |   ^~~~
a.cc:14:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
  int n,t;
  int ans=0;
  for(int i=0;i<n;i++){
    int p1,p2;
    cin>>p1>>p2;
    ll sum=pow(p1,2)+pow(p2,2);
    double ll squ=pow(sum,0.5);
    if(squ<=t)	ans++;
  }
  cout<<ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:17: error: 'long long' specified with 'double'
    3 | #define ll long long
      |                 ^~~~
a.cc:11:12: note: in expansion of macro 'll'
   11 |     double ll squ=pow(sum,0.5);
      |            ^~
Language: C++

using namespace std;
int main()
{
  long long N,D,count=0;
  cin>>N>>D;
  for(int i=0;i<N;i++)
  {
    long long a,b;
    cin>>a>>b;
    if(a*a+b*b<=D*D)
    {
      count++;
    }
 
  }
  cout<<count<<"\n";
}

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:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<count<<"\n";
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main() {
  int n, d; cin >> n >> d;
  int ans = 0;
  
  for(int i=1; i<=n; i++) {
    double p, q; cin >> p >> q;
    p = abs(p); q = abs(q);
    double distance;
    distance = sqrt(pow(p, 2) + pow(q, 2));
    if (distance >= d) ans++;
  }
  
  cout << ans << endl;
}

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

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

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

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

int main(void){
  long N;
  long D;
  long a[2];
  int cnt = 0;
  for(i = 0; i < N; i++){
    scanf("%ld %ld", &a[0], &a[1]);
    if(D == (sqrt(a[0], a[1])){
       cnt++;
    	}
    }
       printf("%d\n", cnt);
       return 0;
       }

Compiler output:
main.c:2:2: error: invalid preprocessing directive #incluse; did you mean #include?
    2 | #incluse <math.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:9:7: error: 'i' undeclared (first use in this function)
    9 |   for(i = 0; i < N; i++){
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:14: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   11 |     if(D == (sqrt(a[0], a[1])){
      |              ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'sqrt'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | #incluse <math.h>
main.c:11:14: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
   11 |     if(D == (sqrt(a[0], a[1])){
      |              ^~~~
main.c:11:14: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:11:14: error: too many arguments to function 'sqrt'
main.c:11:31: error: expected ')' before '{' token
   11 |     if(D == (sqrt(a[0], a[1])){
      |       ~                       ^
      |                               )
main.c:14:5: error: expected expression before '}' token
   14 |     }
      |     ^
Language: C++

#include<iostream>
using namesspace std;
int main()
{
  int N,D,count=0;
  cin>>N>>D;
  for(int i=0;i<N;i++)
  {
    int a,b;
    cin>>a>>b;
    if(a*a+b*b<=D*D)
    {
      count++;
    }
  }
  cout<<count<<"\n";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesspace'
    2 | using namesspace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>N>>D;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   cout<<count<<"\n";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define FASTIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
bool solve(int t){
	int x,y;
	cin>>x>>y;
	if((int)sqrt(a*a+b*b)==t)return 1;
	else return 0;
}
int main(){
	FASTIO
	int t,target,count=0;
	cin>>t>>target;
	while(t--){
		if(solve(target))count++;
	}
	cout<<count<<"\n";
	return 0;
}


Compiler output:
a.cc: In function 'bool solve(int)':
a.cc:8:22: error: 'a' was not declared in this scope
    8 |         if((int)sqrt(a*a+b*b)==t)return 1;
      |                      ^
a.cc:8:26: error: 'b' was not declared in this scope
    8 |         if((int)sqrt(a*a+b*b)==t)return 1;
      |                          ^
a.cc:10:1: warning: control reaches end of non-void function [-Wreturn-type]
   10 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'long' specified with 'float'
    7 |   long float dist=0;
      |   ^~~~
a.cc:15:1: error: 'count' was not declared in this scope
   15 | count+=1;
      | ^~~~~
a.cc:18:7: error: 'count' was not declared in this scope
   18 | cout<<count;
      |       ^~~~~
Language: C

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

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

#include<bits/stdc++.h>
int main(){
  int counter=0,a;
  double b,c,d;
  cin>>a>>b;
  for(int i=0;i<a;i++){
    cin>>c>>d;
  	if(c*c+d*d<=b*b)counter++;
  }
  cout<<counter<<endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: lvalue required as left operand of assignment
   13 |     if(x*x+y*y=d*d) ans++;
      |        ~~~^~~~
a.cc:13:21: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |     if(x*x+y*y=d*d) ans++;
      |                     ^~~
      |                     abs
a.cc:15:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: expected ';' before 'return'
   18 |   cout<<count<<'\n'
      |                    ^
      |                    ;
   19 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
  int i,n,k,t[3000000][2],s=0;
scanf("%d %d",&n,&k);
for(i=0;i<n;i++){
scanf("%d %d",&t[n][1],&t[n][2]);
  if(k>sqrt(t[n][1]*t[n][1]+t[n][2]*t[n][2]);
     s=s+1;
}
printf("%d",s);
     return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:45: error: expected ')' before ';' token
    8 |   if(k>sqrt(t[n][1]*t[n][1]+t[n][2]*t[n][2]);
      |     ~                                       ^
      |                                             )
main.c:10:1: error: expected expression before '}' token
   10 | }
      | ^
Language: Java

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


Compiler output:
Main.java:2: error: '{' expected
public class Main(){
                 ^
Main.java:19: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

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


Compiler output:
Main.java:2: error: '{' expected
public class Main(){
                 ^
Main.java:3: error: <identifier> expected
  public static void (String[] args){
                    ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

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


Compiler output:
Main.java:2: error: '{' expected
public class Main(){
                 ^
Main.java:3: error: <identifier> expected
  public static void (String[] args){
                    ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

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

Compiler output:
Main.java:2: error: '{' expected
public class main(){
                 ^
Main.java:3: error: <identifier> expected
  public static void (String[] args){
                    ^
Main.java:19: error: reached end of file while parsing
}
 ^
3 errors
Language: C++

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


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