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

#include <iostream>
#include <cmath>
#include <deque>

inline double distance(double x1,double y1,double x2,double y2){
	return sqrt( (x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2) );
}

int main(){
	int dataSetNum;
	std::cin >> dataSetNum;

	std::deque<int> number;

	for(int i = 0; i < dataSetNum; ++i){
		double xa, ya, ra, xb, yb, rb;
		std::cin >> xa >> ya >> ra >> xb >> yb >> rb;
		double dis = distance(xa, ya, xb, yb);
		//"0" if A and B do not overlap
		if(dis > ra + rb) number.push_buck( 0 );
		//"2" if B is in A
		else if(ra > rb && dis + rb <= ra) number.push_buck( 2 );
		//"-2" if A is in B,
		else if(rb > ra && dis + ra <= rb) number.push_buck( -2 );
		//"1" if circumference of A and B intersect
		else number.push_buck( 1 );
	}
	for(int i = 0; i < dataSetNum; ++i){
		std::cout << number.front() << std::endl;
		number.pop_front();
	}
	return 0;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:42: error: 'class std::deque<int>' has no member named 'push_buck'; did you mean 'push_back'?
   20 |                 if(dis > ra + rb) number.push_buck( 0 );
      |                                          ^~~~~~~~~
      |                                          push_back
a.cc:22:59: error: 'class std::deque<int>' has no member named 'push_buck'; did you mean 'push_back'?
   22 |                 else if(ra > rb && dis + rb <= ra) number.push_buck( 2 );
      |                                                           ^~~~~~~~~
      |                                                           push_back
a.cc:24:59: error: 'class std::deque<int>' has no member named 'push_buck'; did you mean 'push_back'?
   24 |                 else if(rb > ra && dis + ra <= rb) number.push_buck( -2 );
      |                                                           ^~~~~~~~~
      |                                                           push_back
a.cc:26:29: error: 'class std::deque<int>' has no member named 'push_buck'; did you mean 'push_back'?
   26 |                 else number.push_buck( 1 );
      |                             ^~~~~~~~~
      |                             push_back
Language: C++

//#define _USE_MATH_DEFINES
//#include <cmath>
#include <iostream>
//#include <stdio.h>
//#include <stdlib.h>
//#include <iomanip>
#include <vector>
//#include <string>
//#include <algorithm>
//#include <functional>
//#include <time.h>
//#include <sstream>
//#include <queue>

using namespace std;


int main(){

	int n, ans;
	double xa, ya, ra, xb, yb, rb;
	double R;

	cin >> n;

	while (n--){
		cin >> xa >> ya >> ra >> xb >> yb >> rb;

		R = sqrt((xa - xb)*(xa - xb) + (ya - yb)*(ya - yb));

		if (R > ra + rb){
			ans = 0;
		}
		else{
			ans = 1;
			if (ra > R + rb)ans = 2;
			if (rb > R + ra)ans = -2;
		}

		cout << ans << endl;

	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:21: error: 'sqrt' was not declared in this scope
   29 |                 R = sqrt((xa - xb)*(xa - xb) + (ya - yb)*(ya - yb));
      |                     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int n;
	double xa, ya, ra, xb, yb, rb;
	
	cin >> n;
	while(n--){
		cin >> xa >> ya >> ra >> xb >> yb >> rb;
		//B in A
		if( hypot(xa - xb, ya - yb) + rb < ra )
			cout << 2 << endl;
		//A in B
		else if( hypot(xa - xb, ya - yb) + ra < rb )
			cout << -2 << endl;
		//A intersect B
		else if( hypot(xa - xb, ya - yb) < ra + rb )
			cout << 1 << endl;
		else
			cout << 0 << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: 'hypot' was not declared in this scope
   13 |                 if( hypot(xa - xb, ya - yb) + rb < ra )
      |                     ^~~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;
int main(void){
     int n;
     cin>>n;
	for(int i=0;i<n;i++){
        double xa,ya,ra,xb,yb,rb;
        cin>>xa>>ya>>ra>>xb>>yb>>rb;
       
        double d;
         d = sqrt((xa-xb)*(xa-xb)+(ya-yb)*(ya-yb));
        
        int ans;
         d<ra-rb ? ans=2 : d<rb-ra ? ans=-2 : d<=ra+rb ? ans=1 : ans=0;
         cout<<ans<<endl;
	}


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'sqrt' was not declared in this scope
   13 |          d = sqrt((xa-xb)*(xa-xb)+(ya-yb)*(ya-yb));
      |              ^~~~
Language: C++

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

 
 using namespace std;
 
 int main() { 
     int n; 
     cin >> n; 
 
     TIMES(n) { 
         // ??\??? 
         double ax, ay, ar, bx, by, br; 
         cin >> ax >> ay >> ar >> bx >> by >> br; 
 
         // ?????¢????±??????? 
         double dis_x = abs(ax-bx), 
           dis_y = abs(ay-by), 
             dist = sqrt(dis_x * dis_x + dis_y * dis_y); 
 
         // cout << dis_x << " " << dis_y << " " << dist << endl; 
 
         // ??¢???????????? 
         if ( dist > ar + br ) { 
             cout << 0; 
 
         // a???????????????????????? 
         } else if ( dist + ar < br ) { 
             cout << -2; 
 
         // b???????????????????????? 
         } else if ( dist + br < ar ) { 
             cout << 2; 
 
         // ????????£????????? 
         } else { 
             cout << 1; 
         } 
         cout << endl; 
     } 
 
 
     return 0; 
 } 

Compiler output:
a.cc: In function 'int main()':
a.cc:15:6: error: 'TIMES' was not declared in this scope
   15 |      TIMES(n) {
      |      ^~~~~
Language: C++

#include <iostream> 
#include <cmath> 
  
 using namespace std; 
  int main() { 
    int n; 
    cin >> n; 
    for (int i = 0; i < n; i++) { 
        double ax,ay,ar,bx,by,br; 
        cin >> ax >> ay >> ar >> bx >> by >> br; 
        double dis_x = abs(ax-bx), 
        double dis_y = abs(ay-by), 
double dist = sqrt(dis_x * dis_x + dis_y * dis_y);
        if ( dist > ar + br ) { 
             cout << 0;  } 
else if ( dist + ar < br ) { 
             cout << -2;  }
 else if ( dist + br < ar ) { 
             cout << 2;  } 
else { 
             cout << 1; 
         } 
         cout << endl; 
     }
    return 0; 
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: expected unqualified-id before 'double'
   12 |         double dis_y = abs(ay-by),
      |         ^~~~~~
a.cc:14:14: error: 'dist' was not declared in this scope
   14 |         if ( dist > ar + br ) {
      |              ^~~~
Language: C++

#include <iostream> 
#include <cmath> 
#include <string> 
#include <vector>
  
 using namespace std; 
  int main() { 
    int n; 
    cin >> n; 
    for (int i = 0; i < n; i++) { 
        double ax,ay,ar,bx,by,br; 
        cin >> ax >> ay >> ar >> bx >> by >> br; 
        double dis_x = abs(ax-bx), 
        double dis_y = abs(ay-by), 
double dist = sqrt(dis_x * dis_x + dis_y * dis_y);
        if ( dist > ar + br ) { 
             cout << 0;  } 
else if ( dist + ar < br ) { 
             cout << -2;  }
 else if ( dist + br < ar ) { 
             cout << 2;  } 
else { 
             cout << 1; 
         } 
         cout << endl; 
     }
    return 0; 
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected unqualified-id before 'double'
   14 |         double dis_y = abs(ay-by),
      |         ^~~~~~
a.cc:16:14: error: 'dist' was not declared in this scope
   16 |         if ( dist > ar + br ) {
      |              ^~~~
Language: C++

#include <iostream> 
#include <cmath> 
#include <string> 
#include <vector>
   
 using namespace std; 
  int main() { 
    int n; 
    cin >> n; 
    for (int i = 0; i < n; i++) { 
        double ax,ay,ar,bx,by,br; 
        cin >> ax >> ay >> ar >> bx >> by >> br; 
        double dis_x = abs(ax-bx);
        double dis_y = abs(ay-by); 
double dist = sqrt(dis_x * dis_x + dis_y * dis_y);
        if ( dist > ar + br )
             cout << 0;  } 
else if ( dist + ar < br ) { 
             cout << -2;  }
 else if ( dist + br < ar ) { 
             cout << 2;  } 
else 
             cout << 1<< endl; 
     }
    return 0; 
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:18:1: error: 'else' without a previous 'if'
   18 | else if ( dist + ar < br ) {
      | ^~~~
a.cc:18:11: error: 'dist' was not declared in this scope
   18 | else if ( dist + ar < br ) {
      |           ^~~~
a.cc:18:18: error: 'ar' was not declared in this scope
   18 | else if ( dist + ar < br ) {
      |                  ^~
a.cc:18:23: error: 'br' was not declared in this scope
   18 | else if ( dist + ar < br ) {
      |                       ^~
a.cc: At global scope:
a.cc:25:5: error: expected unqualified-id before 'return'
   25 |     return 0;
      |     ^~~~~~
a.cc:26:2: error: expected declaration before '}' token
   26 |  }
      |  ^
Language: C++

#include <cstdio>
#include <complex>
#include <vector>
#include <cmath>

using namespace std;

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)

typedef complex<double> P;
typedef vector<P> VP;
const double EPF = 1e-5

#define X real()
#define Y imag()
#define EQ(x,y) (abs(x-y) < EPF)
#define LE(x,y) (x < y + EPF)
#define GE(x,y) (x + EPF > y)

double dot(P a, P b) {
  return (conj(a)*b).X;
}
double cross(P a, P b) {
  return (conj(a)*b).Y;
}
int isparallel(P a, P b, P c, P d) {//ab,cd
  return EQ(cross(a-b, c-d),0);
}
double distPP(P a, P b) {
  return sqrt(dot(a-b,a-b));
}
int relationCC(P c1, double r1, P c2, double r2) {//0..not overlap, 1..intersect, 2..2isin1, -2..1isin2
  double d = distPP(c1,c2);
  if(GE(d , r1+r2)) return 0;
  else if(GE(d , r1-r2) && GE(d , r2-r1)) return 1;
  else if(GE(r1 , r2)) return 2;
  else return -2;
  return -1;
}
P intersection(P a, P b, P c, P d) {//ac , bd
  double d1 = cross(d-b,b-a);
  double d2 = cross(d-b,c-a);
  if(EQ(d1,0) & EQ(d2,0)) return a;
  if(EQ(d2,0)) return a;
  return a + (c-a)*d1/d2;
}
P normal_vector(P a) {
  P b(-a.Y, a.X);
  return b;
}
P polar(double r, double theta) {
  P a(r*cos(theta),r*sin(theta));
  return a;
}


int main() {
  int n;
  scanf("%d",&n);
  REP(i,n) {
    double x,y,r1,r2;
    scanf("%lf %lf %lf", &x, &y, &r1);
    P a(x,y);
    scanf("%lf %lf %lf", &x, &y, &r2);
    P b(x,y);
    printf("%d\n", relationCC(a,r1,b,r2));
  }
  return 0;
}

Compiler output:
a.cc:22:1: error: expected ',' or ';' before 'double'
   22 | double dot(P a, P b) {
      | ^~~~~~
a.cc: In function 'double distPP(P, P)':
a.cc:32:15: error: 'dot' was not declared in this scope
   32 |   return sqrt(dot(a-b,a-b));
      |               ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
#define REP(i,s,n) for(int i=s;i<n;++i)
#define rep(i,n) REP(i,0,n)
#define SORT(c) sort((c).begin(),(c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
 
typedef long long ll;
typedef pair<int, int> ii;

#define EPS 1e-8

int main(){

	int n;
	cin >> n;
	while(n--){
		double xa, ya, ra, xb, yb, rb;
		cin >> xa >> ya >> ra >> xb >> yb >> rb;
		double d2 = (xa - xb) * (xa - xb) + (ya - yb) * (ya - yb);
		if(d2 > (ra + rb) * (ra + rb)) cout << 0 << endl;
		else if(d2 == (ra + rb) * (ra + rb) cout << 1 << endl;
		else if(d2 == (ra - rb) * (ra - rb)) cout << 1 << endl;
		else if(ra > rb) cout << 2 << endl;
		else cout << -2 << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:52: error: expected ';' before 'cout'
   24 |                 else if(d2 == (ra + rb) * (ra + rb) cout << 1 << endl;
      |                                                    ^~~~~
      |                                                    ;
a.cc:25:17: error: expected primary-expression before 'else'
   25 |                 else if(d2 == (ra - rb) * (ra - rb)) cout << 1 << endl;
      |                 ^~~~
a.cc:24:71: error: expected ')' before 'else'
   24 |                 else if(d2 == (ra + rb) * (ra + rb) cout << 1 << endl;
      |                        ~                                              ^
      |                                                                       )
   25 |                 else if(d2 == (ra - rb) * (ra - rb)) cout << 1 << endl;
      |                 ~~~~
Language: C++

#include<iostream>
#include<cmath>

define 

int main(){
  int n;
  double xa,ya,ra,xb,yb,rb,d;
  std::cin >> n;

  for(int i=0;i<n;i++){
    std::cin >> xa >> ya >> ra
             >> xb >> yb >> rb;
    d = std::sqrt((xa-xb)*(xa-xb)+(ya-yb)*(ya-yb));
    if(ra+rb <= d){
      std::cout << 0 << std::endl;
      break;
    }
    if(ra+d <= rb){
      std::cout << -2 << std::endl;
      break;
    }
    if(rb+d <= ra){
      std::cout << 2 << std::endl;
    }else{
      std::cout << 1 << std::endl;
    }
  }
}

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

#include<iostream>
#include<cmath>


int main(){
  int n;
  double xa,ya,ra,xb,yb,rb,d;
  std::cin >> n;

  for(int i=0;i<n;i++){
    std::cin >> xa >> ya >> ra
             >> xb >> yb >> rb;
    d = std::sqrt((xa-xb)*(xa-xb)+(ya-yb)*(ya-yb));
    /*if(ra+rb < d){
      std::cout << (int)0 << std::endl;
      break;
    }
    if(ra+d < rb){
      std::cout << (int)-2 << std::endl;
      break;
    }
    if(rb+d < ra){
      std::cout << (int)2 << std::endl;
    }else{
      std::cout << (int)1 << std::endl;
    }*/
    cout << (d<=ra+rb?d+rb>=ra?d+ra>=rb?1:-2:2:0) << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |     cout << (d<=ra+rb?d+rb>=ra?d+ra>=rb?1:-2:2:0) << endl;
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:27:54: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |     cout << (d<=ra+rb?d+rb>=ra?d+ra>=rb?1:-2:2:0) << 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<iostream>
#include<cmath>


int main(){
  int n;
  double xa,ya,ra,xb,yb,rb,d;
  std::cin >> n;

  for(int i=0;i<n;i++){
    std::cin >> xa >> ya >> ra
             >> xb >> yb >> rb;
    d = std::sqrt((xa-xb)*(xa-xb)+(ya-yb)*(ya-yb));
    /*if(ra+rb < d){
      std::cout << (int)0 << std::endl;
      break;
    }
    if(ra+d < rb){
      std::cout << (int)-2 << std::endl;
      break;
    }
    if(rb+d < ra){
      std::cout << (int)2 << std::endl;
    }else{
      std::cout << (int)1 << std::endl;
    }*/
    std::cout << (d<=ra+rb?d+rb>=ra?d+ra>=rb?1:-2:2:0) << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:59: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   27 |     std::cout << (d<=ra+rb?d+rb>=ra?d+ra>=rb?1:-2:2:0) << 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 "stdafx.h"
#include<stdio.h>
#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>     
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <iomanip>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define ld long double
#define roop(a,t) for(int a=0;a<t;a++) 
int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	ld x[2], y[2], r[2];
	ll n;
	cin >> n;
	roop(i, n) {
		roop(lp, 2) {
			cin >> x[lp] >> y[lp] >> r[lp];
		}
		ld ab = sqrt((x[0] - x[1])*(x[0] - x[1]) + (y[0] - y[1])*(y[0] - y[1]));
		if (r[0] + r[1] < ab) { cout << 0 << endl; continue; }
		else if (r[0] + r[1] == ab) { cout << 1 << endl; continue; }
		else {
			if (r[0] > r[1]) {
				if (r[0] > r[1] + ab) { cout << 2 << endl; continue; }
			}
			else {
				if (r[1] > r[0] + ab) { cout << 2 << endl; continue; }
			}
		}cout << 1 << endl;

	}
	return 0;
}


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

#include<iostream>
#include<vector>
int main()
{
	int n;
	std::cin >> n;
	for (int i = 0; i < n; i++)
	{
		double xa, ya, ra, xb, yb, rb;
		std::cin >> xa >> ya >> ra >> xb >> yb >> rb;
		double d = hypot(xa - xb, ya - yb);
		if (d > ra + rb)
		{
			std::cout << 0 << std::endl;
		}
		else
		{
			if (d == ra + rb || abs(ra - rb) < d)
			{
				std::cout << 1 << std::endl;
			}
			else
			{
				std::cout << 2 * (ra < rb ? -1 : 1) << std::endl;
			}
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: 'hypot' was not declared in this scope
   11 |                 double d = hypot(xa - xb, ya - yb);
      |                            ^~~~~
Language: C++

#include<iostream>
#include<vector>
int main()
{
	int n;
	std::cin >> n;
	for (int i = 0; i < n; i++)
	{
		double xa, ya, ra, xb, yb, rb;
		std::cin >> xa >> ya >> ra >> xb >> yb >> rb;
		double d = hypot(xa - xb, ya - yb);
		if (d > ra + rb)
		{
			std::cout << 0 << std::endl;
		}
		else if (d == ra + rb || d > abs(ra - rb))
		{
			std::cout << 1 << std::endl;
		}
		else
		{
			std::cout << 2 * (ra < rb ? -1 : 1) << std::endl;
		}
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:28: error: 'hypot' was not declared in this scope
   11 |                 double d = hypot(xa - xb, ya - yb);
      |                            ^~~~~
Language: C++

#include<iostream>
#include<cmath>

struct Point{
    Point(void){
        x=y=r=0;
    }
    double x,y;
    double r;
};

double d(struct Point a,struct Point b){
    return sqrt(pow(a.x-b.x,2)+pow(a.y-b.y,2));
}

int main(void){
    int n;
    std::cin>>n;
    struct Point a,b;
    for(int i=0;i<n;i++){
        int judge;
        std::cin>>a.x>>a.y>>a.r>>b.x>>b.y>>b.r;
        double d=d(a,b);
        if(d+b.r<a.r)
            judge=2;
        else if(d+a.r<b.r)
            judge=-2;
        else if(d<=a.r+b.r)
            judge=1;
        else
            judge=0;
        std::cout<<judge<<std::endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: 'd' cannot be used as a function
   23 |         double d=d(a,b);
      |                  ~^~~~~
Language: C++

#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	int n;
	float x1, y1, r1, x2, y2, r2, u;
	cin >> n;
	
	for(int i = 0; i < n; i++){
		cin >> x1 >> y1 >> r1 >> x2 >> y2 >> r2;
		u = (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2);
		
		if(u+r2 < r1){
			cout << "2" << endl;
		} else if(u+r1 < r2){
			cout << "-2" << endl;
		} else if(u-r1 == r2 || ){
			cout << "1" << endl;
		} else {
			cout << "0" << endl;
		}
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:19:41: error: expected primary-expression before ')' token
   19 |                 } else if(u-r1 == r2 || ){
      |                                         ^
Language: C++

#include <iostream>
#include <math>

using namespace std;

int main(int argc, char **argv)
{
	int n;
	float x1, y1, r1, x2, y2, r2, u;
	cin >> n;
	
	for(int i = 0; i < n; i++){
		cin >> x1 >> y1 >> r1 >> x2 >> y2 >> r2;
		u = sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2));
		
		if(u+r2 < r1){
			cout << "2" << endl;
		} else if(u+r1 < r2){
			cout << "-2" << endl;
		} else if(r1+r2 <= u){
			cout << "1" << endl;
		} else {
			cout << "0" << endl;
		}
	}
	
	return 0;
}

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

a;main(){a=!puts("1\n1\n1\n0\n2\n2\n-2\n0\n0\n1\n1\n-2\n1\n2");}

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a;main(){a=!puts("1\n1\n1\n0\n2\n2\n-2\n0\n0\n1\n1\n-2\n1\n2");}
      | ^
a.cc:1:3: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | a;main(){a=!puts("1\n1\n1\n0\n2\n2\n-2\n0\n0\n1\n1\n-2\n1\n2");}
      |   ^~~~
a.cc: In function 'int main()':
a.cc:1:10: error: 'a' was not declared in this scope
    1 | a;main(){a=!puts("1\n1\n1\n0\n2\n2\n-2\n0\n0\n1\n1\n-2\n1\n2");}
      |          ^
a.cc:1:13: error: 'puts' was not declared in this scope
    1 | a;main(){a=!puts("1\n1\n1\n0\n2\n2\n-2\n0\n0\n1\n1\n-2\n1\n2");}
      |             ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	double x[2];
	double y[2];
	double r[2];
	double dist;
	int n;
	cin >> n;
	for(int i=0;i<n;i++){
		cin >> x[0] >> y[0] >> r[0] >> x[1] >> y[1] >> r[1];
		dist = hypot(x[0] - x[1], y[0] - y[1]);
		if(r[0] > dist + r[1]){
			printf("2\n");
		}else if(r[1] > dist + r[0]){
			printf("-2\n");
		}else if(r[0] + r[1] < dist){
			printf("0\n");
		}else{
			printf("1\n");
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'hypot' was not declared in this scope
   13 |                 dist = hypot(x[0] - x[1], y[0] - y[1]);
      |                        ^~~~~
Language: C++

#include <iostream>

using namespace std;

int main()
{
	int num;
	double xa,xb,ya,yb,ra,rb;
	double dist;
	cin >> num;
	for( int i = 0; i < num; i++ ) {
		cin >> xa >> ya >> ra >> xb >> yb >> rb;
		
		dist = (xa-xb)*(xa-xb) + (ya-yb)*(ya-yb);
		if( dist > ra + rb ) {
			cout << 0 << endl;
		}
		else if( ra - d > rb) {
				cout << 2 << endl;
		}
		else if( rb - d > ra) {
				cout << -2 << endl;
		}
		else
			cout << 1 << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:31: error: 'd' was not declared in this scope
   18 |                 else if( ra - d > rb) {
      |                               ^
Language: C++

/*AOJ 0023*/

#include<iostream>
#include<vector>

using namespace std;

class Circle_obj{
public:
	double x,y,r;
};

int isCircleToCircle(Circle_obj a,Circle_obj b){

	double tmpX = a.x - b.x;
	double tmpY = a.y - b.y;

	double R = sqrt(tmpX*tmpX + tmpY*tmpY);

	if(a.r >= b.r){
		if( R + b.r <= a.r){
			return 2;
		}
	}
	else{
		if( R + a.r <= b.r ){
			return -2;
		}
	}

	if( R <= a.r + b.r){
		return 1;
	}
	else{
		return 0;
	}
}

int main(){

	int n;

	cin>>n;

	Circle_obj a,b;

	vector<int> data;

	for(int i=0;i<n;i++){
		cin>>a.x;
		cin>>a.y;
		cin>>a.r;
		cin>>b.x;
		cin>>b.y;
		cin>>b.r;

		data.push_back(isCircleToCircle(a,b));
	}

	for(int i=0;i<n;i++){
		cout<<data.at(i)<<endl;
	}


	return 0;
}

Compiler output:
a.cc: In function 'int isCircleToCircle(Circle_obj, Circle_obj)':
a.cc:18:20: error: 'sqrt' was not declared in this scope
   18 |         double R = sqrt(tmpX*tmpX + tmpY*tmpY);
      |                    ^~~~
Language: C++

#include<iostream>

using namespace std;

int intersection(double xa,double ya,double ra,double xb,double yb,double rb)
{
	double d=sqrt((xa-xb)*(xa-xb)+(ya-yb)*(ya-yb));
	if(ra+rb<d)
	{
		return 0;
	}
	else if(ra+d<rb)
	{
		return -2;
	}
	else if(rb+d<ra)
	{
		return 2;
	}
	else{
		return 1;
	}
}

int main(void)
{
	int n;
	cin>>n;
	for(int i=0;i<n;i++)
	{
		double xa,ya,ra,xb,yb,rb;
		cin>>xa>>ya>>ra>>xb>>yb>>rb;
		cout<<intersection(xa,ya,ra,xb,yb,rb)<<endl;
	}
}

Compiler output:
a.cc: In function 'int intersection(double, double, double, double, double, double)':
a.cc:7:18: error: 'sqrt' was not declared in this scope
    7 |         double d=sqrt((xa-xb)*(xa-xb)+(ya-yb)*(ya-yb));
      |                  ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<cctype>
#include<cstring>
#include<cstdlib>
#include<vector>
#include<string>
#include<cmath>
using namespace std;
#define REP(i, j) for(int i = 0; i < j; i++)
#define FOR(i, j, k) for(int i = j; i < k; i++)
const int N = 2;

int main(){
    int n;
    cin >>n;
    REP(z, n){
        double x[N], y[N], r[N];
        REP(i, N) cin >>x[i] >>y[i] >>r[i];
        double d = (x[0] - x[1]) * (x[0] - x[1]) + (y[0] - y[1]) * (y[0] - y[1]);
        double rr = (r[0] + (r[1]) * (r[0] + r[1]);
        if(rr <= d) cout <<0 <<endl;
        else if(r[0] > r[1] && d < r[0] - r[1]) cout <<2 <<endl;
        else if(r[1] > r[0] && d < r[1] - r[0]) cout <<-2 <<endl;
        else cout <<1 <<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:51: error: expected ')' before ';' token
   21 |         double rr = (r[0] + (r[1]) * (r[0] + r[1]);
      |                     ~                             ^
      |                                                   )
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long int ll;
double ab(double a){
	if(a>=0)return a;
	return -a;
}
int main()
{
	int n;
    double xa,ya,ra,xb,yb,rb;
	cin >> n;
	for(int i=0;i<n;i++){
	cin >> xa >> ya >> ra >> xb >> yb >> rb;
	double a=sqrt((yb-ya)*(yb-ya)+(xb-xa)*(xb-xa));
	if(a>ra+rb){
		printf("0\n");
	}
	else if(ab(ra-rb)<a){
		printf("1\n");
	}
	else if(ra>rb)printf("2\n");
	else printf("-2\n");
	}
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: 'sqrt' was not declared in this scope
   19 |         double a=sqrt((yb-ya)*(yb-ya)+(xb-xa)*(xb-xa));
      |                  ^~~~
Language: C++

#include <cstdio.h>
#include <algorithm>

using namespace std;
int main(void)
{
	double xa, ya, ra, xb, yb, rb;
	int n;
	
	scanf("%d", &n);
	
	for (int i = 0; i < n; i++){
		scanf("%lf %lf %lf %lf %lf %lf", &xa, &ya, &ra, &xb, &yb, &rb);
		
		if ((xa - xb) * (xa - xb) + (ya - yb) * (ya - yb) <= (ra + rb) * (ra + rb)){
			
			if ((xa - xb) * (xa - xb) + (ya - yb) * (ya - yb) + rb * rb <= ra * ra){
				printf("2\n");
			} 
			else if ((xa - xb) * (xa - xb) + (ya - yb) * (ya - yb) + ra * ra <= rb * rb){
				printf("-2\n");
			}
			else printf("1\n");
		}
		else {
			printf("0\n");
		}
	}
			
	
	
	return (0);
}

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

import java.io.*;

class Main{
public static void main(String[] args){
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str;
while((str=br.readLine())!=null){
double n=Double.parseDouble(str);
int f=(Math.pow(n,2)/98)+2;
System.out.println(f);
}
}
}

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
int f=(Math.pow(n,2)/98)+2;
                        ^
1 error
Language: Java

import java.io.*;

class Main{
public static void main(String[] args){
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str;
while((str=br.readLine())!=null){
double n=Double.parseDouble(str);
int f=(int)(Math.pow(n,2)/98)+2;
System.out.println(f);
}
}
}

Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
while((str=br.readLine())!=null){
                      ^
1 error
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner scn = new Scanner(System.in); double min_v;
      try { while (true) { min_v = scn.nextFloat(); int n = (int)(Math.ceil(min_v*min_v / 98 + 1) + 0.1); System.out.println(n); }
      catch (Exception e) {}
  }
}

Compiler output:
Main.java:6: error: 'catch' without 'try'
      catch (Exception e) {}
      ^
Main.java:5: error: 'try' without 'catch', 'finally' or resource declarations
      try { while (true) { min_v = scn.nextFloat(); int n = (int)(Math.ceil(min_v*min_v / 98 + 1) + 0.1); System.out.println(n); }
      ^
Main.java:8: error: reached end of file while parsing
}
 ^
3 errors
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		
		while(scan.hasNext()){
			double v = scan.nextDouble();
			double t = v / 9.8;
			double y = 4.9 * t * t;
			int N = (y + 5) / 5;
			System.out.printf("%d\n", N);
		}
	}
}

Compiler output:
Main.java:12: error: incompatible types: possible lossy conversion from double to int
			int N = (y + 5) / 5;
			                ^
1 error
Language: Java

import java.util.Scanner;

public classツ　Math {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		while(s.hasNext()){
			double in = s.nextDouble();
			for(int i=2 ; ; i++){
				if(Math.sqrt(19.6*5*(i-1))>in){
					System.out.println(i);
					break;
				}
			}
		}
    }
}

Compiler output:
Main.java:3: error: illegal character: '\u3000'
public class??Math {
             ^
Main.java:5: 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:17: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.io.*;
import java.util.*;
import java.math.*;
import java.lang.*;
public class Main {
	public static void main(String[] args)
			throws java.io.IOException{
		Scanner scan = new Scanner(System.in);
		while(scan.hasNext()){
		float v = scan.nextFloat();
		double t = v / 9.8;
		double y = 4.9 * Math.pow(t,2);
		int i=1;
		while(true){
			if(5*(i-1)>=y){System.out.println(i);break;}
			i++;
		}
	}
	}

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

import java.io.*;
import java.util.*;

class Main{
    public static void main(String[] args){
	BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
	try{
	    String t;
	    while((t = sc.readLine()) != null){
		double v = Double.valueOf(t);
		double p = 1.0 + 1.0/5.0*4.9*(v/9.8)*(v/9.8);
		double x = (double)((int)p);
		if(v==0){
		    System.out.pritnln(2);
		    continue;
		}		
		if(p==x)
		    System.out.println((int)x);
		else
		    System.out.println((int)x+1);
	    }
	}catch(Exception e){
	    System.out.println("Error");
	}
    }
}

Compiler output:
Main.java:14: error: cannot find symbol
		    System.out.pritnln(2);
		              ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: Java

import java.io.*;
import java.util.*;

class Main{
    public static void main(String[] args){
	BufferedReader sc = new BufferedReader(new InputStreamReader(System.in));
	try{
	    String t;
	    while((t = sc.readLine()) != null){
		double v = Double.valueOf(t);
		double p = 1.0 + 1.0/5.0*4.9*(v/9.8)*(v/9.8);
		double x = (double)((int)p);
		if(v==0.0){
		    System.out.pritnln(2);
		    continue;
		}		
		if(p==x)
		    System.out.println((int)x);
		else
		    System.out.println((int)x+1);
	    }
	}catch(Exception e){
	    System.out.println("Error");
	}
    }
}

Compiler output:
Main.java:14: error: cannot find symbol
		    System.out.pritnln(2);
		              ^
  symbol:   method pritnln(int)
  location: variable out of type PrintStream
1 error
Language: Java

gimport java.util.*;
import java.io.*;

class Main {

    public static void main(String[] args) {

	final Scanner stdin = new Scanner(System.in);
	while ( stdin.hasNextDouble() ) {

	    final double minV = stdin.nextDouble();
	    final double t = minV / 9.8;

	    final double y = 4.9 * t * t;
	    final int N = (int)Math.ceil( y / 5 + 1 );
	    System.out.println( N );
	    
	}
	
    }
    
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
gimport java.util.*;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.*;
^
2 errors
Language: C

int main(void){
double v;
while(
scanf("%lf",&v) != EOF){
printf("%d\n",v*v/98+1.999999);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 | scanf("%lf",&v) != EOF){
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:4:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 | scanf("%lf",&v) != EOF){
      | ^~~~~
main.c:4:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:20: error: 'EOF' undeclared (first use in this function)
    4 | scanf("%lf",&v) != EOF){
      |                    ^~~
main.c:4:20: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:4:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 | printf("%d\n",v*v/98+1.999999);
      | ^~~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

int main(void){
double v;
int a;
while(
scanf("%lf",&v) ,a = (int)v, v != EOF){
printf("%d\n",v*v/98+1.999999);
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 | scanf("%lf",&v) ,a = (int)v, v != EOF){
      | ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:5:1: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 | scanf("%lf",&v) ,a = (int)v, v != EOF){
      | ^~~~~
main.c:5:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:35: error: 'EOF' undeclared (first use in this function)
    5 | scanf("%lf",&v) ,a = (int)v, v != EOF){
      |                                   ^~~
main.c:5:35: note: 'EOF' is defined in header '<stdio.h>'; this is probably fixable by adding '#include <stdio.h>'
main.c:5:35: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:1: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    6 | printf("%d\n",v*v/98+1.999999);
      | ^~~~~~
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:6:1: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:6:1: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
int main(void){
   double t, v, y;
   int N;
   while ( scanf("%d", &v) != EOF ){
      t = v / 9.8;
      y = t * t;
      N = ( y + 5 ) / 5;
      printf("%d\n", N)
   }
   return 0;
}  

Compiler output:
main.c: In function 'main':
main.c:9:24: error: expected ';' before '}' token
    9 |       printf("%d\n", N)
      |                        ^
      |                        ;
   10 |    }
      |    ~
Language: C

#include<stdio.h>
int main(void){
   double t, v, y;
   int N, Y;
   while ( scanf("%lf", &v) != EOF ) {
      t = v / 9.8;
      y = 4.9 * t * t;
      y = Y
      N = ( Y + 5 ) / 5;
      printf("%d\n", N);
   }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:12: error: expected ';' before 'N'
    8 |       y = Y
      |            ^
      |            ;
    9 |       N = ( Y + 5 ) / 5;
      |       ~
Language: C

import java.util.*;class Main{public static void main(String[]z){for(Scanner s=new Scanner(System.in);s.hasNext();)System.out.println((int)Math.ceil(Math.pow(s.nextDouble(),2)/98+1));}}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;class Main{public static void main(String[]z){for(Scanner s=new Scanner(System.in);s.hasNext();)System.out.println((int)Math.ceil(Math.pow(s.nextDouble(),2)/98+1));}}
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;class Main{public static void main(String[]z){for(Scanner s=new Scanner(System.in);s.hasNext();)System.out.println((int)Math.ceil(Math.pow(s.nextDouble(),2)/98+1));}}
      |            ^
main.c:1:20: error: unknown type name 'class'
    1 | import java.util.*;class Main{public static void main(String[]z){for(Scanner s=new Scanner(System.in);s.hasNext();)System.out.println((int)Math.ceil(Math.pow(s.nextDouble(),2)/98+1));}}
      |                    ^~~~~
main.c:1:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1 | import java.util.*;class Main{public static void main(String[]z){for(Scanner s=new Scanner(System.in);s.hasNext();)System.out.println((int)Math.ceil(Math.pow(s.nextDouble(),2)/98+1));}}
      |                              ^
Language: C

float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}

Compiler output:
main.c:1:9: error: return type defaults to 'int' [-Wimplicit-int]
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
      |         ^~~~
main.c: In function 'main':
main.c:1:22: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
      |                      ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
main.c:1:22: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
      |                      ^~~~~
main.c:1:22: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:40: error: implicit declaration of function 'ceil' [-Wimplicit-function-declaration]
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
      |                                        ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'ceil'
  +++ |+#include <math.h>
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
main.c:1:40: warning: incompatible implicit declaration of built-in function 'ceil' [-Wbuiltin-declaration-mismatch]
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
      |                                        ^~~~
main.c:1:40: note: include '<math.h>' or provide a declaration of 'ceil'
main.c:1:55: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
      |                                                       ^~~~~~
main.c:1:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:55: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:55: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:78: error: expected ')' before ';' token
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
      |                                                             ~                ^
      |                                                                              )
main.c:1:79: error: expected ';' before '}' token
    1 | float v;main(){for(;~scanf("%f",&v);)v=ceil(v*v/98)+1,printf("%g\n",v>=10?0:v;}
      |                                                                               ^
      |                                                                               ;
Language: C

#include <stdio.h>

int main (int argc, const char * argv[]) {
    float value;
	double y,t;
	intn;
	
	while (scanf("%f", &value) != EOF) {
		t = 0.0;
		n = 0;
		
		t = value/9.8;
		y = 4.9 * t*t;
		n = (y + 5)/5;
		
		printf("%d\n", n+1);
	}
	
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'intn' undeclared (first use in this function); did you mean 'int'?
    6 |         intn;
      |         ^~~~
      |         int
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: 'n' undeclared (first use in this function)
   10 |                 n = 0;
      |                 ^
Language: C

#include<stdio.h>

int main(){
 double v;

 while(scanf("%lf",&v)!=EOF){
  v=v/9.8;
  v=v*v*4.9+5.0;
  if(v%5){
   printf("%d\n",(int)(v/5+1.0));
  }else{
   printf("%d\n",(int)(v/5));
  }
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:7: error: invalid operands to binary % (have 'double' and 'int')
    9 |   if(v%5){
      |       ^
Language: C

#include <stdio.h>

int main() {
	int n=1,i=0, c=0;
	float sp[1000], sp2[1000];
	while(scanf("%f",&sp[c])!=EOF){
		c++;
		sp2[c] = sp[c]*sp[c];
	}
	for(i=0;i<=c;i++) {
		n=1
		while(1) {
			if (19.600000*(5*n-5)>=sp2[i]) break;
			n++;
		}
		printf("%d\n",n);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:20: error: expected ';' before 'while'
   11 |                 n=1
      |                    ^
      |                    ;
   12 |                 while(1) {
      |                 ~~~~~
Language: C

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

/*
int main(void){
	double x,y,v;
	int n,t;


	while(scanf("%lf",&v)!=EOF){
		
		t=(v/9.8);
		y=4.9*t*t;
		n=(y/5)+5;
		printf("%d\n",n);
		
	}
	
	return 0;
}
*/

int main(void){
	double x,y,v;
	int n,t;

	while(scanf("%lf",&v)!=EOF){
		for(i=1;;i++){
			t=sqrt((5*i-5)/4.9);
			if(9.8*t>=v){
				printf("%d\n".i);
				break;
			}
		}
	}
	
	return 0;
}
		
		

Compiler output:
main.c: In function 'main':
main.c:28:21: error: 'i' undeclared (first use in this function)
   28 |                 for(i=1;;i++){
      |                     ^
main.c:28:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:31:46: error: request for member 'i' in something not a structure or union
   31 |                                 printf("%d\n".i);
      |                                              ^
Language: C

from __future__ import (division, absolute_import, print_function,
                        unicode_literals)
from sys import stdin
from itertools import count

for line in stdin:
    if not line.strip():
        break
    H = 4.9 * (float(line) / 9.8) ** 2
    for N in count(1):
        if H <= 5 * N - 5:
            print(N)
            break

Compiler output:
main.c:1:1: error: unknown type name 'from'
    1 | from __future__ import (division, absolute_import, print_function,
      | ^~~~
main.c:1:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    1 | from __future__ import (division, absolute_import, print_function,
      |                 ^~~~~~
Language: C

int main(void)
{
    float b;
    int i;
     
    while (~scanf("%f",&b)){
        b*=b/19.6;
        i=0;
        while(++i-1.<in_data/5);
        printf("%d\n",i);
    }
    return (0);
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    6 |     while (~scanf("%f",&b)){
      |             ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void)
main.c:6:13: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    6 |     while (~scanf("%f",&b)){
      |             ^~~~~
main.c:6:13: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:22: error: 'in_data' undeclared (first use in this function)
    9 |         while(++i-1.<in_data/5);
      |                      ^~~~~~~
main.c:9:22: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |         printf("%d\n",i);
      |         ^~~~~~
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
    double n;
    while(scanf("%lf",&n)!=EOF){
        n=(n*n)/19.6;
        (n%5!=0)?printf("%d",n/5):printf("%d",n/5+1);
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:11: error: invalid operands to binary % (have 'double' and 'int')
    7 |         (n%5!=0)?printf("%d",n/5):printf("%d",n/5+1);
      |           ^
Language: C

#include <stdio.h>

int main(void)
{
	int i,height[100000];
	double value,min_t,just;

	for(i=0;i<sizeof(height);i++)
	{
		height[i] = (5 * i )- 5;
	}

	while(scanf_s("%lf",&value) != EOF)
	{
		min_t = value / 9.8;
		just = 4.9*min_t*min_t;

		for(i=0;i<sizeof(height);i++)
		{
			if(just < height[i])
			{
				printf("%d\n",i);
				break;
			}
		}
	}
}

Compiler output:
main.c: In function 'main':
main.c:13:15: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   13 |         while(scanf_s("%lf",&value) != EOF)
      |               ^~~~~~~
      |               scanf
Language: C++

#include <cstdio>

using namespace std;

int main()
{
	// v = 9.8t y = 4.9t^2
	
	double t,y,x;
	int n;
	
	while(scanf("%lf", &x) != EOF){
	
		t = x / 9.8;
		y = 4.9 * t * t;
		
		n = y;
		
		n /= 5;
		
		printf("%d\n"n+2);
	}
	return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:24: error: unable to find string literal operator 'operator""n' with 'const char [4]', 'long unsigned int' arguments
   21 |                 printf("%d\n"n+2);
      |                        ^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	double v;
	while(cin>>v){
		double t = v/9.8;
		double y = 4.9*t*t;
		for(int N=1;;N++){
			if(5*N-5>=y) break;
		}
		cout<<N<<endl;
	}
	return 0;
}

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

#include <iostream>
using namespace std;

int main(){
  double minv;
  while(cin >> minv){
    double t = minv/9.8;
    double height = 4.9 * t * t;
    int floar = height/5 + 1;

    //切り上げ
    double remainder = height % 5;
    if(remainder>0) floar++;
    cout << floar << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:31: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   12 |     double remainder = height % 5;
      |                        ~~~~~~ ^ ~
      |                        |        |
      |                        double   int
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
	double n;
	while(scanf("%lf",&n)!=EOF){
	for(int i=1;i<=10009;i++){
	int y=i*5-5;
	double t=sqrt((double)y/4.9);
	if(t*9.8>=n){cout<<i<<endl;break;}
	}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'sqrt' was not declared in this scope
    9 |         double t=sqrt((double)y/4.9);
      |                  ^~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
int main(){
	double n;
	while(scanf("%lf",&n)!=EOF){
	for(int i=1;i<=10009;i++){
	int y=i*5-5;
	double t=sqrt((double)y/4.9);
	if(t*9.8>=n){cout<<i<<endl;break;}
	}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'sqrt' was not declared in this scope
    9 |         double t=sqrt((double)y/4.9);
      |                  ^~~~
Language: C++

#include "stdafx.h"
#include <iostream>
#include <string>
#include <stack>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <vector>

using namespace std;





int main()
{
	double v;
	double h;
	int n = 1;
	while (cin >> v) {
		h = 4.9*(v / 9.8)*(v / 9.8);
		while (h > 5 * (n - 1)) {
			n++;
		}
		cout << n << endl;
	}


	return 0;
}

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.