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

/// You just can't beat the person who never gives up
/// ICPC next year


#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define sz(x) ((long long)(x).size())
#define all(x)  x.begin(),x.end()
#define rall(x) (x).rbegin(), (x).rend()
#define endl "\n"
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
#define setbits(x)      __builtin_popcountll(x)
#define zrobits(x)      __builtin_ctzll(x)
#define leastsigbit(x)     __builtin_ffs(x)
#define mod             1000000007
#define vi vector<ll>
#define vvi vector<vector<ll>>
#define pii pair<ll,ll>
#define vpii vector<pii>
#define tt ll tt;cin >> tt;while(tt--)
#define  fio ios::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL);
#define D1(x) { cerr << " [" << #x << ": " << x << "]\n"; }
#define D2(x) { cerr << " [" << #x << ": "; for(auto it:x) cerr << it << " "; cerr << "]\n";}
const double PI = acos(-1);
ll power(ll a,ll b,ll m=mod){ ll ans=1; a=a%m;  while(b>0) {  if(b&1)  ans=(1ll*a*ans)%m; b>>=1;a=(1ll*a*a)%m;}return ans;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
ll lcm( ll x, ll y) { return (x*y)/gcd(x,y);}
bool isprime(ll n){if(n < 2) return 0; ll i = 2; while(i*i <= n){if(n%i == 0) return 0; i++;} return 1;}
bool isPowerOfTwo(int x)
{
    /* First x in the below expression is for the case when x is 0 */
    return x && (!(x&(x-1)));
}
void offset(vector<int>&a,int x) {
    for(int i = 0; i < sz(a);i++) {
        a[i] = x;
    }
}
struct cmp {
    bool operator() (const pair<int,int>& lhs, const pair<int,int>& rhs) const {
        return lhs.ff * rhs.ss < lhs.ss * rhs.ff;
    }
//for map<pii,int>
};


// auto cmp = [](pair<int,int>a,pair<int,int>b) {if(a.first==b.first)return a.second>b.second;
//      else return a.first > b.first;
//  };
//  multiset<pair<int,int>,decltype(cmp)>fc(cmp);
double distform(int x, int y, int z, int w) {//(x1,y1,x2,y2)
    return sqrt(1. * pow(x-z,2) + 1. * pow(y-w,2));
}
struct custom_hash {
    static uint64_t splitmix64(uint64_t x) {
        // http://xorshift.di.unimi.it/splitmix64.c
        x += 0x9e3779b97f4a7c15;
        x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
        x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
        return x ^ (x >> 31);
    }

    size_t operator()(uint64_t x) const {
        static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
        return splitmix64(x + FIXED_RANDOM);
    }
    //unordered_map<long long, int, custom_hash> safe_map;
};

const int MAXN = 2e5+ 10;

#define int long long
bool cmps(pair<int,int>p1,pair<int,int>p2) {
    return p1.ss > p2.ss;
}
int32_t main() {
    fio
    int x;
    cin >> x;
    if(x >= 30) {
        cout << "Yes" << endl;
    }
    esle {
        cout << "No" << endl;
    };

    cerr <<endl <<"[ Time : " << (float)clock() / CLOCKS_PER_SEC << " secs ]" << endl;


}






Compiler output:
a.cc: In function 'int32_t main()':
a.cc:87:5: error: 'esle' was not declared in this scope
   87 |     esle {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define END '\n'
#define int long long
#define pb push_back
#define pii pair<int, int>
#define ff first
#define ss second
#define trace(x) cerr<<x<<END;
#define loop(i, a, b) for(int i = (a); i < (b); i++)
#define loopb(i, b, a) for(int i = (b); i > (a); --i) 
const int mod = 1e9+7;
const int mod1 = 998244353;
const int inf = 1e18;

void solve()
 {
  int x;
  cin>>x;
  cout<<(x>=30 ? "Yes" :"No");5
  
 }  
signed main()
 {   
  ios_base::sync_with_stdio(false);
  cin.tie(0); 
  cout.tie(0); 
   /*int t;
   cin>>t;
   loop(i,1,t+1)*/
      solve();
      
  //cerr<<END<<1.0*clock();
  return 0;
} 


Compiler output:
a.cc: In function 'void solve()':
a.cc:20:32: error: expected ';' before '}' token
   20 |   cout<<(x>=30 ? "Yes" :"No");5
      |                                ^
      |                                ;
   21 | 
   22 |  }
      |  ~
Language: C++

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

int main() {
  int a,b,c,d,e;
  cin>>a>>b>>c>>d>>e;
  if(a>=30){
    cout<<"Yes" <<endl;
  }
  else{
    cout<<"No" <<endl;
}



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

#include "../library/header.hpp"

class AAirConditioner {
public:
    static constexpr int kStressCount = 0;
    static void generateTest(ostream& test) {}
	void solve(istream& cin, ostream& cout) {
int n;
cin>>n;
if (n>=30){
    cout << "Yes";
} else cout << "No";
	}
};

Compiler output:
a.cc:1:10: fatal error: ../library/header.hpp: No such file or directory
    1 | #include "../library/header.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
constexpr ll mod=1e9+7;

int main()
{
  int x;
  cin>>x;
  if(x>=30) cout<"Yes"<<endl;
  else cout<<"No";  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   if(x>=30) cout<"Yes"<<endl;
      |                  ~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define TRACE(x) x
#define WATCH(x) TRACE( cout << #x" = " << x << endl)
#define PRINT(x) TRACE(printf(x))
#define WATCHR(a, b) TRACE( for(auto c = a; c != b;) cout << *(c++) << " "; cout << endl)
#define WATCHC(V) TRACE({cout << #V" = "; WATCHR(V.begin(), V.end()); } )
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(x) (int)(x).size()
#define mp make_pair
#define fi first
#define se second

using ll = long long;
using pii = pair<int, int>;
using vi = vector<int>;
using ld = long double;
using pll = pair<ll, ll>;
using vll = vector<ll>;
using pll = pair<ll, ll>;
constexpr ll MOD = 1e9 + 7;

inline ll pow_mod( ll a, ll b, ll mod = MOD) {
    ll res = 1; a %= mod; assert(b >= 0);
    for(;b;b>>=1) {
        if(b&1) res = (res * a) % mod;
        a = (a * a) % mod;
    }
    return res;
}

template<typename T>
inline void remax(T& x, T y) { x = max(x, y); }

template<typename T>
inline void remin(T& x, T y) { x = min(x, y); }

int main() 
{
    ios::sync_with_stdio(false); cin.tie(nullptr);
    int x;
    cin >> x;
    if(c >= 30) cout << "Yes\n";
    else cout << "No\n";
    return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:45:8: error: 'c' was not declared in this scope
   45 |     if(c >= 30) cout << "Yes\n";
      |        ^
Language: C++

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

#define endl '\n'

void solvetask(){
    int n; cin >> n;
    if (n >= 30) cout << "Yes\n";
    else cout << "No\n"
}

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int t=1; //cin >> t;
    while(t--) solvetask();
}

Compiler output:
a.cc: In function 'void solvetask()':
a.cc:9:24: error: expected ';' before '}' token
    9 |     else cout << "No\n"
      |                        ^
      |                        ;
   10 | }
      | ~
Language: C++

//Littleboy123 Template 1.7
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;

//pragmas

// #pragma comment(linker, "/stack:200000000")
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
// #pragma GCC target ("avx2")
// #pragma GCC optimization ("O3")
// #pragma GCC optimization ("unroll-loops")


typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef long long int ll;
typedef pair<ll, ll> pll;
typedef unsigned long long int ull;
typedef long double ld;
typedef unsigned long long ull;

const long double pi = acos(-1.0);

#define FOR(a,b,c) for(ll (a)=(b);(a)<(c);++(a))
#define FORE(a,b,c) for(ll (a)=(b);(a)<=(c);++(a))
#define FORN(a,b,c) for(ll (a)=(b);(a)>(c);--(a))
#define FORNE(a,b,c) for(ll (a)=(b);(a)>=(c);--(a))
#define TC(n) cout << "Case #" << (n) << ": "
#define DEBUG(x) cout << "DEBUG " << #x << ' ' << x << '\n';
#define MEM(a,b) memset((a), (b), sizeof((a)))
#define MAX(a,b) (a) = max((a), (b))
#define MIN(a,b) (a) = min((a), (b))
#define nl '\n'
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define ordered_set tree<ll, null_type,less_equal<ll>, rb_tree_tag,tree_order_statistics_node_update>

void init(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
}

void infile(){
    freopen("output.out", "r", stdin);
}

void outfile(){
    freopen("output.out", "w", stdout);
}

ll modex(ll a, ll b, ll mod){
    if(b == 0)
        return 1;
    if(b == 1)
        return a;
    ll tmp = modex(a, b/2, mod);
    tmp = (tmp * tmp) % mod;
    if(b & 1)
        tmp = (tmp * a) % mod;
    return tmp;
}

//End of template

int main(){
    init();

`   ll x;
    cin >> x;
    if(x >= 30){
        cout << "Yes\n";
    }
    else{
        cout << "No\n";
    }
    return 0;
}


Compiler output:
a.cc:76:1: error: stray '`' in program
   76 | `   ll x;
      | ^
Language: C++

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

#define IOS {ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);}
#define ll long long 

int main(){
    IOS;
    ll n;
    cin>>n;
    if(n>=30) cout<<"Yes\n";
    else cout<<"No\n"    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: expected ';' before '}' token
   12 |     else cout<<"No\n"
      |                      ^
      |                      ;
   13 | }
      | ~
Language: C

#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define mp make_pair
#define pb push_back
#define x first
#define y second
#define xx return
using namespace std;
int main(){
    int x;
    cin>>x;
    cout<<(x>=30?"YES":"NO");
}

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<cstdio>
#include<iostream>
#include<string>
#include<algorithm>
#include<stdio.h>
#include<locale.h>
#include<math.h>
#include<set>
#include<stack>
#include<queue>
using namespace std;
int main()
{
int n,d,x,y,ans=0;
scanf("%d %d",&n,&d);
for(int i=0;i<n;i++)
{
 scanf("%d %d",&x,&y);
 if(x(*x+y*y)<=d*d){ans++;}
}
printf("%d",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:7: error: invalid type argument of unary '*' (have 'int')
   19 |  if(x(*x+y*y)<=d*d){ans++;}
      |       ^~
a.cc:19:13: error: 'x' cannot be used as a function
   19 |  if(x(*x+y*y)<=d*d){ans++;}
      |             ^
Language: C++

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



int main() {

	int n,d; cin >> n>>d;
	vector<int>v; int count = 0; double sum=0;
	for (int i = 0; i < n; i++) {
		int input1, input2; cin >> input1 >> input2;
		v.push_back(input1); v.push_back(input2);
		sum = sqrt(pow(input1, 2) + pow(input2, 2));
		if(sum <= d)
			count++;
		sum = 0;
		v.clear();
	}
	cout << count;



}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:28: error: 'pow' was not declared in this scope
   14 |                 sum = sqrt(pow(input1, 2) + pow(input2, 2));
      |                            ^~~
a.cc:14:23: error: 'sqrt' was not declared in this scope
   14 |                 sum = sqrt(pow(input1, 2) + pow(input2, 2));
      |                       ^~~~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
 
int main() {
  int N, D res = 0;
  long long x, y;
  cin >> N >> D;
  for (int i = 0; i < N; ++i) {
    cin >> x >> y;
    res += (sqrt(x*x + y*y) <= D);
  }
  cout << res << '\n';
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected initializer before 'res'
    6 |   int N, D res = 0;
      |            ^~~
a.cc:8:15: error: 'D' was not declared in this scope
    8 |   cin >> N >> D;
      |               ^
a.cc:11:5: error: 'res' was not declared in this scope
   11 |     res += (sqrt(x*x + y*y) <= D);
      |     ^~~
a.cc:13:11: error: 'res' was not declared in this scope
   13 |   cout << res << '\n';
      |           ^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:26: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d %d",&N &D);
      |                       ~~ ^
      |                       |
      |                       int *
Language: C

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

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


#include <iostream> 
#include <cmath> 
using namespace std; 
  
int main() 
{ 
  int t,d;
  cin >> t >> d;
  while(t--){
  
    double a = -2 ,  answer,a,b;
  	cin >> a >> b;
  	if(a<0) 	a = -a;  
  	if(b<0) 	b = -b;

    int count =0 ;      
    answer = sqrt((a*a)+(b*b)); 
  	if(answer>=d) 	count++;
  	
  }
  cout << count << endl;
    return 0; 
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: redeclaration of 'double a'
   12 |     double a = -2 ,  answer,a,b;
      |                             ^
a.cc:12:12: note: 'double a' previously declared here
   12 |     double a = -2 ,  answer,a,b;
      |            ^
a.cc:22:11: error: 'count' was not declared in this scope
   22 |   cout << count << endl;
      |           ^~~~~
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'll' was not declared in this scope
    5 |         ll d2;
      |         ^~
a.cc:6:9: 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:7:9: error: 'd2' was not declared in this scope; did you mean 'd'?
    7 |         d2 = d*d;
      |         ^~
      |         d
a.cc:11:11: error: expected ';' before 'dist2'
   11 |         ll dist2 = x*x + y*y;
      |           ^~~~~~
      |           ;
a.cc:12:12: error: 'dist2' was not declared in this scope
   12 |         if(dist2 <= d2) ans++;
      |            ^~~~~
a.cc:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         cout << ans << 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:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         cout << ans << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

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

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

#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
int main(void){
  long long N,D;
  cin >> N >> D;
  
  vector<vector<ilong long>>p(N,vector<long long>(2));
  
  for(int i=0;i<N;i++){
    cin >> p[i][0] >> p[i][1];
  }
  
  int ans = 0;
  
  for(int i=0;i<N;i++){
    double distance = sqrt(p[i][0] * p[i][0] + p[i][1] * p[i][1]);
    if(distance <= D) ans++;
  }

  cout << ans << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'ilong' was not declared in this scope; did you mean 'ulong'?
    9 |   vector<vector<ilong long>>p(N,vector<long long>(2));
      |                 ^~~~~
      |                 ulong
a.cc:9:27: error: template argument 1 is invalid
    9 |   vector<vector<ilong long>>p(N,vector<long long>(2));
      |                           ^~
a.cc:9:27: error: template argument 2 is invalid
a.cc:9:53: error: template argument 1 is invalid
    9 |   vector<vector<ilong long>>p(N,vector<long long>(2));
      |                                                     ^
a.cc:9:53: error: template argument 2 is invalid
a.cc:12:12: error: 'p' was not declared in this scope
   12 |     cin >> p[i][0] >> p[i][1];
      |            ^
a.cc:18:28: error: 'p' was not declared in this scope
   18 |     double distance = sqrt(p[i][0] * p[i][0] + p[i][1] * p[i][1]);
      |                            ^
Language: C

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

int main(){
    int N,D;
    int x,y;
    int count=0;
    scanf("%d %d",&N,&D);
    while(N--){
        scanf("%d %d",&x,&y);
        if(sqrt(pow(x)+pow(y))<D)
            count++;
    }
    printf("%d\n",count);
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: too few arguments to function 'pow'
   11 |         if(sqrt(pow(x)+pow(y))<D)
      |                 ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
main.c:11:24: error: too few arguments to function 'pow'
   11 |         if(sqrt(pow(x)+pow(y))<D)
      |                        ^~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
Language: C

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

int main(){
    int N,D;
    int x,y;
    int count=0;
    scanf("%d %d",&N,&D)
    while(N--){
        scanf("%d %d",&x,&y);
        if(sqrt(pow(x)+pow(y))<D)
            count++;
    }
    printf("%d\n",count);
}

Compiler output:
main.c: In function 'main':
main.c:8:25: error: expected ';' before 'while'
    8 |     scanf("%d %d",&N,&D)
      |                         ^
      |                         ;
    9 |     while(N--){
      |     ~~~~~
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
using namespace std;
int main(int argc, const char* argv[]) {
    // cinを高速にするためのおまじない
    cin.tie(0);
    ios::sync_with_stdio(false);

    /////////////////////
    // Write code below /
    int N, D;
    cin >> N >> D;

    double p, q;
    int Count = 0;

    for (int i = 0; i < N; i++) {
        cin >> p >> q;
        if (pow(pow(p, 2) + pow(q, 2), 0.5) <= D) {
            Count++;
        }
    }
    cout << Count << endl;
    /////////////////////

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:21:17: error: 'pow' was not declared in this scope
   21 |         if (pow(pow(p, 2) + pow(q, 2), 0.5) <= D) {
      |                 ^~~
a.cc:21:13: error: 'pow' was not declared in this scope
   21 |         if (pow(pow(p, 2) + pow(q, 2), 0.5) <= D) {
      |             ^~~
Language: C++

#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n,d,sum=0,c=0;
cin >> n >> d;
int a[n],b[n];
for(int i=0; i<n;i++)
{
cin >> a[i] >> b[i];
}
for(int i=0;i<n;i++)
{
sum +=(a[i]*a[i])+(b[i]*b[i]);
int x=sqrt(sum);
if(x==d){
c+=1;
}
x=0;
}
cout << c;
return 0;


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

#include<bits/stdc++.h>
using namespace std;
#define int  long long int
#define fi first
#define se second
#define pb push_back
#define soo(v) sort(v.rbegin(),v.rend())
#define so(v) sort(v.begin(),v.end())
#define lb(v,x) lower_bound(v.begin(),v.end(),x)
#define ub(v,x) upper_bound(v.begin(),v.end(),x)
//#define endl '\n'
#define dbv(v) cout<<endl;cout<<#v<<"-->> ";for(auto it:v){cout<<it<<" ";}cout<<endl;
#define dbm(m)cout<<endl;cout<<#m<<"-->> ";for(auto it:m){cout<<it.fi<<" "<<it.se<<endl;}
#define dbs(s)cout<<endl;cout<<#s<<"-->> ";for(auto it:s){cout<<it<<" ";}cout<<endl;
#define mod 1000000007
#define db1(x) cout<<#x<<"="<<x<<endl;
#define db2(x,y) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<endl;
#define db3(x,y,z) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<","<<#z<<"="<<z<<endl;
#define mx 1e18
#define mxe(v) *max_element(v.begin(),v.end())
#define mne(v)  *min_element(v.begin(),v.end())
#define double long double
#define io std::ios::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL);

int32_t main()
{
  io
int n,d;
cin>>n>>d;
int x[n],y[n];int cc=0;
for(int i=0;i<n;i++){cin>>x[i]>>y[i];if(D*D>=x[i]*x[i]+y[i]*y[i])cc++;}
  cout<<cc<<endl;

}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:31:41: error: 'D' was not declared in this scope
   31 | for(int i=0;i<n;i++){cin>>x[i]>>y[i];if(D*D>=x[i]*x[i]+y[i]*y[i])cc++;}
      |                                         ^
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
    	Scanner x =new Scanner(System.in);
      	int size=x.nextInt();
      	int max=x.nextInt();
      	int count=0;
      	while(size-->0)
        {
          int a=x.nextInt();
          int b=x.nextInt();
          if(a^2+b^2<=max^2){
            count++;
          }
        }
      	System.out.println(count);
	}
}

Compiler output:
Main.java:12: error: bad operand types for binary operator '^'
          if(a^2+b^2<=max^2){
                  ^
  first type:  int
  second type: boolean
1 error
Language: Java

import java.util.*;
public class Distance{
	public static void main(String[] args){
    	Scanner x =new Scanner(System.in);
      	int size=x.nextInt();
      	int max=x.nextInt();
      	int count=0;
      	while(size-->0)
        {
          int a=x.nextInt();
          int b=x.nextInt();
          if(a*a+b*b<=max*max){
            count++;
          }
        }
      	System.out.println(count);
	}
}

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

import java.util.*;
public class Distance{
	public static void main(String[] args){
    	Scanner x =new Scanner(System.in);
      	int size=x.nextInt();
      	int max=x.nextInt();
      	int count=0;
      	while(size-->0)
        {
          int a=x.nextInt();
          int b=x.nextInt();
          if(a^2+b^2<=max^2){
            count++;
          }
        }
      	System.out.println(count);
	}
}

Compiler output:
Main.java:2: error: class Distance is public, should be declared in a file named Distance.java
public class Distance{
       ^
Main.java:12: error: bad operand types for binary operator '^'
          if(a^2+b^2<=max^2){
                  ^
  first type:  int
  second type: boolean
2 errors
Language: C++

#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

int main()
{
    int N, D;
    int ans = 0;
    vector<int> X(200000);
    vector<int> Y(200000);

    for (int i = 0; i < N; i++)
    {
        if (sqrt(X[i] * X[i] + Y[i] * y[i] <= D))
        {
            ans++;
        }
    }

    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:39: error: 'y' was not declared in this scope
   16 |         if (sqrt(X[i] * X[i] + Y[i] * y[i] <= D))
      |                                       ^
Language: C++

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

int main(){
  int D,N,count=0;
  cin >> D >> N;
  cout << endl;
  
  vector<int> x(N);
  vector<int> y(N);
  
  
  
  rep(i,N){
    cin >> x.at(i) >> y.at(i);
     long long a=D*D-x.at(i)*x.at(i)+y.at(i)*y.at(i)
    if(a>=0) count++;
  }
  
  cout << count << endl;

}
  


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

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

int main(){
  int D,N,count=0;
  cin >> D >> N;
  cout << endl;
  
  vector<int> x(N);
  vector<int> y(N);
  
  long long a=D*D-x.at(i)*x.at(i)+y.at(i)*y.at(i)
  
  rep(i,N){
    cin >> x.at(i) >> y.at(i);
    if(a>=0) count++;
  }
  
  cout << count << endl;

}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: 'i' was not declared in this scope
   14 |   long long a=D*D-x.at(i)*x.at(i)+y.at(i)*y.at(i)
      |                        ^
Language: C++

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

int main(){
  int D,N,count=0;
  cin >> D >> N;
  cout << endl;
  
  vector<ll> x(n);
  vector<ll> y(n);
  
  rep(i,n){
    cin >> x.at(i) >> y.at(i);
    if(x.at(i)*x.at(i)+y.at(i)*y.at(i)=<D*D) count++;
  }
  
  cout << count << endl;

}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: 'n' was not declared in this scope
   11 |   vector<ll> x(n);
      |                ^
a.cc:16:40: error: expected primary-expression before '<' token
   16 |     if(x.at(i)*x.at(i)+y.at(i)*y.at(i)=<D*D) count++;
      |                                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() { 
  int n,d,ans=0;
  cin>>n>>d;
  for(int i=0;i<n;i++) { 
    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:7:10: error: 'x' was not declared in this scope
    7 |     cin>>x>>y;
      |          ^
a.cc:7:13: error: 'y' was not declared in this scope
    7 |     cin>>x>>y;
      |             ^
Language: C++

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



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

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int num = sc.nextLong();
    long d = sc.nextLong();
    long count = 0;
    for(int i = 0;i < num;i++){
      long p = sc.nextLong();
      long q = sc.nextLong();
      long dis = Math.sqrt(p * p + q * q);
      if(dis <= d){
        count++;
      }
    }
    System.out.println(count);
  }
}

Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from long to int
    int num = sc.nextLong();
                         ^
Main.java:12: error: incompatible types: possible lossy conversion from double to long
      long dis = Math.sqrt(p * p + q * q);
                          ^
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,x,y) for(ll i=x;i<=y;i++)
#define imin INT_MIN
#define imax INT_MAX
int mod =1e9+7;
 
int main(){
	cin.tie(NULL);
    ios_base::sync_with_stdio();
    int t,d; cin>>t>>d;
  int cnt=0;
    for(int i=0; i<n; i++){
     	int x,y; cin>>x>>y;
      	if(sqrt(x*x + y*y) == d){
          cnt++;
        }
    }
  cout<<cnt;
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,x,y) for(ll i=x;i<=y;i++)
#define imin INT_MIN
#define imax INT_MAX
int mod =1e9+7;

int main(){
	cin.tie(NULL);
    ios_base::sync_with_stdio();
    int t,d; cin>>t>>d;
  int cnt=0;
    for(int =0; i<n; i++){
     	int x,y; cin>>x>>y;
      	if(sqrt(x*x + y*y) == d){
          cnt++;
        }
    }
  cout<<cnt;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: expected unqualified-id before '=' token
   14 |     for(int =0; i<n; i++){
      |             ^
a.cc:14:12: error: expected ';' before '=' token
   14 |     for(int =0; i<n; i++){
      |            ^~
      |            ;
a.cc:14:13: error: expected primary-expression before '=' token
   14 |     for(int =0; i<n; i++){
      |             ^
a.cc:14:17: error: 'i' was not declared in this scope
   14 |     for(int =0; i<n; i++){
      |                 ^
a.cc:14:19: error: 'n' was not declared in this scope
   14 |     for(int =0; i<n; i++){
      |                   ^
a.cc:14:20: error: expected ')' before ';' token
   14 |     for(int =0; i<n; i++){
      |        ~           ^
      |                    )
a.cc:14:22: error: 'i' was not declared in this scope
   14 |     for(int =0; i<n; i++){
      |                      ^
Language: C

#include<stdio.h>
 
int main(void){
  int N;
  long long int D
  scanf("%d %lld",&N,&D);
  
  long long int A[N],B[N];
  int c=0;
  for(int i=0;i<N;i++){
    scanf("%lld %lld",&A[i],&B[i]);
    if((A[i]*A[i]+B[i]*B[i])<=D*D){
      c++;
    }
  }
  printf("%d",c);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |   scanf("%d %lld",&N,&D);
      |   ^~~~~
main.c:6:23: error: 'D' undeclared (first use in this function)
    6 |   scanf("%d %lld",&N,&D);
      |                       ^
main.c:6:23: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<bits/stdc++.h>

using namespace std;

class Distance {
	int x, y;
	public:
	void getData() {
		cin >> x >> y;
	}
	int square() {
		return (sqrt(x * x + y * y));
};


int main() {
	int n, d, count = 0;
	vector<Distance> coordinates;
	cin >> n >> d;
	for(int i = 0; i < n; i++) {
		coordinates[i].getData();
	}
	for(int i = 0; i < n; i++) {
		if( coordinates[i].square() >= d) {
			count++;
		}
	}
	cout << count;
	return 0;
}

Compiler output:
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:5:16: note: to match this '{'
    5 | class Distance {
      |                ^
a.cc:30:2: error: expected unqualified-id at end of input
   30 | }
      |  ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#define rep(i,n) for(int i = 0; i , (n); ++i)
using ll = long long;
using namespace std;
int sum(int n) {
    if (n == 0) {
        return 0;
    }

    int s = sum(n - 1);
    return s + n;
}
int main() {
    int N, D, a, b, count=0;
    double c;
    cin >> N >> D;
    vector<int>x(N);
    vector<int>y(N);
    for (int i = 0;i < N;i++) {
        cin >> x.at(i) >> y.at(i);
    }
    
    for (int i = 0;i < N;i++) {
        a = x.at(i);
        a *= a;
        b = y.at(i);
        b *= b;
        c = sqrt(a + b);
        if (c <= D) {
            count++;
        }
    }
    cout << count;
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define infin ll (pow(10,9)+7);
int main()
{
    int n,d,x,y;
    cin>>n>>d;
    int count=0
    for(int i=0;i<n;i++)
    {
        cin>>x>>y;
        if(x*x+y*y<=d*d)
          count+=1;
    }
    cout<<count<<endl;
}

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

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

int main(){
	int N, D;
  cin >> N >> D;
  vector<int> X(N);
  vector<int> Y(N);
  for(int i = 0; i<N;i++){
  	cin >> X.at(i) >> Y.at(i);
  }
  D *= D;
  int res=0;
  for(int i=0;i<N;i++){
  	X.at(i) *= X.at(i);
    Y.at(i) *= Y.at(i);
    if(X.at(i) + Y.at(i) <= D) res++
  }
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:37: error: expected ';' before '}' token
   17 |     if(X.at(i) + Y.at(i) <= D) res++
      |                                     ^
      |                                     ;
   18 |   }
      |   ~
Language: C++

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

int main(){
	int a, b, c, d, jumlah = 0;
	cin >> a >> b;
	for (int h = 0; h < a; h++){
		cin >> c >> d;
		int hihi = c * c + d * d;
		double akar = sqrt(hihi);
		if (akar 2 <= b){
			jumlah += 1;
		}
	}cout << jumlah;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected ')' before numeric constant
   12 |                 if (akar 2 <= b){
      |                    ~    ^~
      |                         )
Language: C++

// g++ -std=c++11 test.cpp && ./a.out
// g++ -std=c++11 bfs.cpp && cat bfs.txt | ./a.out

#include <algorithm>
#include <iostream>
#include <queue>
#include <functional>
#include <numeric>

using namespace std;

#define PRINT(A) {for (int i = 0; i < A.size(); i++) { cout << A[i] << " ";} cout << endl;}
#define SUM(A) accumulate(A.begin(), A.end(), 0)
#define MAX(A) *max_element(A.begin(), A.end())
#define REP(I, N) for (int I = 0; I < (N); ++I)
#define REPP(I, A, B) for (int I = (A); I < (B); ++I)
#define FOR(I, A, B) for (int I = (A); I <= (B); ++I)
#define FORS(I, S) for (int I = 0; S[I]; ++I

typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<vector<int>> VVI;

int main() {
    int N, D;
    cin >> N >> D;
    VVI points;
    int ans = 0;
    REP(i, N) {
        int x, y;
        cin >> x >> y;
        if (sqrt((pow(x,2) + pow(y,2))) <= D) {
            ans += 1; 
        }
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:19: error: 'pow' was not declared in this scope
   32 |         if (sqrt((pow(x,2) + pow(y,2))) <= D) {
      |                   ^~~
a.cc:32:13: error: 'sqrt' was not declared in this scope
   32 |         if (sqrt((pow(x,2) + pow(y,2))) <= D) {
      |             ^~~~
Language: C++

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

int main(){
  int n, d, x, y, c;
  float a;
  std::cin >> n >> d;
  for(int i=0; i<n; i++){
    std::cin >> x >> y;
    a = sqrt(x*x+y*y);
    if(a <= d) c++;
  }
  std::cout << c << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   std::cout << c << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<stdio.h>
#include<bits/stdc++.h>
using namespace std;
int main()
{	
	int n,d;
	cin>>n>>d;
	int x,y;
	int count =0;
	for (int i = 0; i < n; ++i)	{
		if (sqrt(pow(x, 2) + pow(y, 2)) <= d)
			count ++;
		}
	}
	cout<<count<<"\n";
	return 0;
}

Compiler output:
a.cc:15:9: error: 'cout' does not name a type
   15 |         cout<<count<<"\n";
      |         ^~~~
a.cc:16:9: error: expected unqualified-id before 'return'
   16 |         return 0;
      |         ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include <iosream>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;
 
 
int main() {
  int n;
  ll d;
  cin >> n >> d;
  
  ll a = 0,b = 0;
  
  int ans = 0;
  REP(i,n){
    cin >> a >> b;
    if(d*d >= a*a + b*b){
      ans++;
    }
  }
  
  cout << ans << endl;
}

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

#include <iosream>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(i, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;
 
 
int main() {
  int n;
  ll d;
  cin >> n >> d;
  
  ll a = 0,b = 0;
  
  int ans = 0;
  REP(i,n){
    cin >> a >> b;
    if(d*d >= a*a + b*b){
      ans++;
    }
  }
  
  cout << ans << endl;
  

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:23: error: expected '}' at end of input
   23 |   cout << ans << endl;
      |                       ^
a.cc:8:12: note: to match this '{'
    8 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main(){
	ll N,D;
  	cin >> N >> D;
	int count=0;	
	for(ll i=0;i<N;i++){
    	ll x,y;
	    cin >> x >> y;
    	if(x**2 + y**2 <= D**2){
        	count+=1;
        }
    }
	cout << count << endl;
}

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

#pragma GCC optimize(2)
#pragma GCC optimize(3)
#include<bits/stdc++.h>
using namespace std;
#define rint register int
#define rep(i,l,r) for(rint i=l;i<=r;i++)
#define per(i,l,r) for(rint i=l;i>=r;i--)
#define ll long long
#define ull unsigned long long
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pb push_back 
#define fir first
#define sec second
template<typename T1,typename T2>void ckmin(T1 &a,T2 b){if(a>b)a=b;}
template<typename T1,typename T2>void ckmax(T1 &a,T2 b){if(a<b)a=b;}
template<typename T>T gcd(T a,T b){return b?gcd(b,a%b):a;}
int read(){
  int x=0,f=0;
  char ch=getchar();
  while(!isdigit(ch))f|=ch=='-',ch=getchar();
  while(isdigit(ch))x=10*x+ch-'0',ch=getchar();
  return f?-x:x;
}
int ans=0;
int n,d;
int x[N],y[N];
int main(){
  n=read(),d=read();
  for(int i=1;i<=n;i++)x[i]=read(),y[i]=read();
  for(int i=1;i<=n;i++){
    if(1ll*x[i]*x[i]+1ll*y[i]*y[i]<=1ll*d*d)ans++;
  }
  printf("%d\n",ans);
  return 0;
}

Compiler output:
a.cc:27:7: error: 'N' was not declared in this scope
   27 | int x[N],y[N];
      |       ^
a.cc:27:12: error: 'N' was not declared in this scope
   27 | int x[N],y[N];
      |            ^
a.cc: In function 'int main()':
a.cc:30:24: error: 'x' was not declared in this scope
   30 |   for(int i=1;i<=n;i++)x[i]=read(),y[i]=read();
      |                        ^
a.cc:30:36: error: 'y' was not declared in this scope
   30 |   for(int i=1;i<=n;i++)x[i]=read(),y[i]=read();
      |                                    ^
a.cc:32:12: error: 'x' was not declared in this scope
   32 |     if(1ll*x[i]*x[i]+1ll*y[i]*y[i]<=1ll*d*d)ans++;
      |            ^
a.cc:32:26: error: 'y' was not declared in this scope
   32 |     if(1ll*x[i]*x[i]+1ll*y[i]*y[i]<=1ll*d*d)ans++;
      |                          ^
Language: C++

N,D = map(int,input().split())
A=[[int(i) for i in input().split()] for _ in range(N)]
ans=int()

for i in range(N):
  if A[i][0]*A[i][0]+A[i][1]*A[i][1]<=D*D:
    ans+=1
print(ans)
  


Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N,D = map(int,input().split())
      | ^
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main(){
  int n, d;
  cin >> n >> d;
  int x, y, f=0;
  for(int x=0;x<n;x++){
    cin >> x, y;
    double z = sqrt(pow(x,2),pow(y,2));
    if(z>=d){
      f++;
    }
  }
  cout << f;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: no matching function for call to 'sqrt(__gnu_cxx::__promote<double>::__type, __gnu_cxx::__promote<double>::__type)'
   12 |     double z = sqrt(pow(x,2),pow(y,2));
      |                ~~~~^~~~~~~~~~~~~~~~~~~
In file included from a.cc:2:
/usr/include/c++/14/cmath:454:5: note: candidate: 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::sqrt(_Tp)'
  454 |     sqrt(_Tp __x)
      |     ^~~~
/usr/include/c++/14/cmath:454:5: note:   candidate expects 1 argument, 2 provided
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/iostream:38,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note: candidate: 'double sqrt(double)'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:446:3: note: candidate: 'constexpr long double std::sqrt(long double)'
  446 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/14/cmath:446:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:442:3: note: candidate: 'constexpr float std::sqrt(float)'
  442 |   sqrt(float __x)
      |   ^~~~
/usr/include/c++/14/cmath:442:3: note:   candidate expects 1 argument, 2 provided
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	long long n,d,x,y,ans=0;
	scanf("%lld",&n);
	scanf("%d",&d)d*=d;
//	assert(n<=200000);
	for(int i=0;i<n;i++){
		scanf("%lld%lld",&x,&y);
		ans+=(x*x+y*y<=d);
	}
	printf("%d",ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: expected ';' before 'd'
    6 |         scanf("%d",&d)d*=d;
      |                       ^
      |                       ;
Language: Java

import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)k++;}}}

Compiler output:
Main.java:1: error: variable k might not have been initialized
import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt(),2)+Math.pow(s.nextInt(),2))<=d)k++;}}}
                                                                                                                                                                                                                                  ^
1 error
Language: Java

import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt())+Math.pow(s.nextInt()))<=d)k++;}}}

Compiler output:
Main.java:1: error: method pow in class Math cannot be applied to given types;
import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt())+Math.pow(s.nextInt()))<=d)k++;}}}
                                                                                                                                                                                  ^
  required: double,double
  found:    int
  reason: actual and formal argument lists differ in length
Main.java:1: error: method pow in class Math cannot be applied to given types;
import java.util.Scanner;class Main{public static void main(String[] a){Scanner s=new Scanner(System.in);int n=s.nextInt();int d=s.nextInt();int k;for(;n>0;n--){if(Math.sqrt(Math.pow(s.nextInt())+Math.pow(s.nextInt()))<=d)k++;}}}
                                                                                                                                                                                                        ^
  required: double,double
  found:    int
  reason: actual and formal argument lists differ in length
2 errors
Language: C++

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

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

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

#include<bits/stdc++.h>
using namespace std;
using namespace std;
using boost::rational;
using boost::integer::gcd; // for C++14 or for cpp_int
using boost::integer::lcm; // for C++14 or for cpp_int
using boost::multiprecision::cpp_int;
using ll = long long;
using ld = long double;
template <typename T>
using max_heap = priority_queue<T>;
template <typename T>
using min_heap = priority_queue<T, vector<T>, greater<T>>;
int main()
{
  int n,d;
  cin >> n >> d;
  int ans=0;
  for (i=0; i < n; ++i)
  {
    int x, y;
    cin >> x >> y;
    if (x * x + y * y <= d * d)
    {
      ans=+1;
    }
  }
  cout << ans << endl;
} 


Compiler output:
a.cc:4:7: error: 'boost' has not been declared
    4 | using boost::rational;
      |       ^~~~~
a.cc:5:7: error: 'boost' has not been declared
    5 | using boost::integer::gcd; // for C++14 or for cpp_int
      |       ^~~~~
a.cc:6:7: error: 'boost' has not been declared
    6 | using boost::integer::lcm; // for C++14 or for cpp_int
      |       ^~~~~
a.cc:7:7: error: 'boost' has not been declared
    7 | using boost::multiprecision::cpp_int;
      |       ^~~~~
a.cc: In function 'int main()':
a.cc:19:8: error: 'i' was not declared in this scope
   19 |   for (i=0; i < n; ++i)
      |        ^
Language: C++

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


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

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


Compiler output:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^