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

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;

typedef long long ll;

int main() {
  ll a, b, x;
  cin >> a >> b >> x;
  double p = a, q = b, y = x;
  ll v = a*a*b;
  double ans = 0;
  double PI=3.14159265358979323846;
  if (v > 2*x) {
    ans = atan((p*p*p)/(2*(p*p*q - x)))*180/PI;
  }
  else if (v == 2*x) {
    ans = 45;
  }
  else {
    ans = atan((2*y)/(p*q*q))*180/PI;
  }
  ans = 90 - ans;
  printf("%.16lf\n", ans);
  cout <<  << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:12: error: expected primary-expression before '<<' token
   28 |   cout <<  << endl;
      |            ^~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int a,b,x;
  double ang, h, r;
  scanf("%d %d %d",&a,&b,&x);
  h=x/a/a/b;
  r=acos(h);
  ang=r*180.0/(atan(1.0)*4)
  printf("%ld",ang);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:28: error: expected ';' before 'printf'
   10 |   ang=r*180.0/(atan(1.0)*4)
      |                            ^
      |                            ;
   11 |   printf("%ld",ang);
      |   ~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <stack>
#include <string>
#include <cctype>
#include <algorithm>
#include <math.h>
cout<<std::fixed<<std::setprecision(10)
using namespace std;

int main(){
  double a,b,x,ans;
  cin >> a >> b >> x;

  if(x >= pow(a,2) * b / 2){
    ans = atan(2 * (pow(a,2) * b - x) / pow(a,3));
  }else{
    ans = atan(pow(x,2) * a / 2 * x);
  }
  ans = ans * (180/M_PI);
  cout << ans;
}


Compiler output:
a.cc:8:1: error: 'cout' does not name a type
    8 | cout<<std::fixed<<std::setprecision(10)
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   13 |   cin >> a >> b >> x;
      |   ^~~
      |   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:21:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   21 |   cout << ans;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>
#include<math.h>
int main()
{
  int a,b,x;
  double ang h r;
  scanf("%d %d %d",&a,&b,&x);
  h=x/a/a/b;
  r=acos(h);
  ang=r*180.0/(atan(1.0)*4)
  printf("%ld",ang);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'h'
    6 |   double ang h r;
      |              ^
main.c:6:14: error: unknown type name 'h'
main.c:8:3: error: 'h' undeclared (first use in this function)
    8 |   h=x/a/a/b;
      |   ^
main.c:8:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:3: error: 'ang' undeclared (first use in this function)
   10 |   ang=r*180.0/(atan(1.0)*4)
      |   ^~~
main.c:10:28: error: expected ';' before 'printf'
   10 |   ang=r*180.0/(atan(1.0)*4)
      |                            ^
      |                            ;
   11 |   printf("%ld",ang);
      |   ~~~~~~
Language: C++



#include <stdio.h>
#include <iostream>
#include <string.h>
#include <limits.h>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <math.h>

typedef unsigned long long ULLONG;
typedef long long LLONG;
static const long long MOD_NUM = 1000000007LL;

template <class _T> static _T tp_abs(const _T& a) {
	return ((a < 0) ? (a * -1) : a);
}
template <class _T> static _T tp_min(_T a, _T b) {
	return a < b ? a : b;
}
template <class _T> static _T tp_max(_T a, _T b) {
	return a > b ? a : b;
}
template<class _T> static void get1int(_T& a) {
	const char* fmt = " %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld";
	}

	if (scanf(fmt, &a) < 0) {
		printf("g1int Error\n");
	}
}
template<class _T> static void get2int(_T& a, _T& b) {
	const char* fmt = " %d %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld %lld";
	}

	if (scanf(fmt, &a, &b) < 0) {
		printf("g2int Error\n");
	}
}

template <class _T> void tp_getPrimes(_T targ, std::map<_T, _T>& primes)
{
	_T target = targ;
	_T i = 2;
	while ((i * i) <= target) {
		if ((target % i) == 0) {
			target /= i;

			if (primes.find(i) == primes.end()) {
				primes[i] = 1;
			}
			else {
				primes[i] = primes[i] + 1;
			}
		}
		else {
			i++;
		}
	}
	if (target == 1) {
		//	なにもしない
	}
	else if (primes.find(target) == primes.end()) {
		primes[target] = 1;
	}
	else {
		primes[target] = primes[target] + 1;
	}
}

static void D_task();

int main()
{
	D_task();
	fflush(stdout);
	return 0;
}

static void D_task()
{
	int A, B, X;
	get3int(A, B, X);

	double rest = (double)(B * A * A) - (double)X;

	double x = ((double)(2.0) * rest) / (double)(A * A);

	double tanx = x / (double)A;

	bool flag = false;
	if (tanx > 1.0) {
		x = (double)(2 * X) / (double)(A * B);
		tanx = x / (double)B;
		flag = true;
	}

	double deg = (atan(tanx) * (double)(180.0)) / (double)(3.141592653589793);

	if (flag) {
		printf("%.08lf\n", 90.0 - deg);

	}
	else {
		printf("%.08lf\n", deg);
	}
}


Compiler output:
a.cc: In function 'void D_task()':
a.cc:90:9: error: 'get3int' was not declared in this scope; did you mean 'get2int'?
   90 |         get3int(A, B, X);
      |         ^~~~~~~
      |         get2int
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0; i < n; i++)
int main(){ 
    double a,b,x;
    cin>>a>>b>>x;
     double c;
    double d;
     double e;
     double f;
     
    if(a*a*b/x<=2.0){
    c=(2*a*a*b-2*x)/(a*a*a);
    d=atan(c);
    e=3.14159265358979323846264338/d;
    f=180/e;
    cout<<setprecision(15) <<f;
    }else{
        c=a*b*b/(2*x);
        d=atan(c);
    e=3.14159265358979323846264338/d;
    f=180/e;
    cout<<setprecision(15) <<f;
    
    return 0;
}


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

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

int main()
{
	double a,b,x;
	cin>>a>>b>>x;

	double y=2.000;

	double ans=1.0000;

	ans=ans*y;
	//ans=ans*(a*a*b-x)/(a*b*b);

	 ans = atan2 (y*(a*a*b-x),(a*b*b)) * 180 / PI;
	 //ans = atan2 (y*,x) * 180 / PI;

	 cout<<ans<<"\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:52: error: 'PI' was not declared in this scope
   19 |          ans = atan2 (y*(a*a*b-x),(a*b*b)) * 180 / PI;
      |                                                    ^~
Language: C++

#include <math.h>
double a,b,x;main(){scanf("%lf%lf%lf",&a,&b,&x);if (x<a*a*b/2){a=(2*x)/(a*b);printf("%.9f",atan(b/a)*180/M_PI);}else{x=a*a*b-x;b=(2*x)/(a*a);printf("%.9f",atan(b/a)*180/M_PI);}}

Compiler output:
a.cc:2:14: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | double a,b,x;main(){scanf("%lf%lf%lf",&a,&b,&x);if (x<a*a*b/2){a=(2*x)/(a*b);printf("%.9f",atan(b/a)*180/M_PI);}else{x=a*a*b-x;b=(2*x)/(a*a);printf("%.9f",atan(b/a)*180/M_PI);}}
      |              ^~~~
a.cc: In function 'int main()':
a.cc:2:21: error: 'scanf' was not declared in this scope
    2 | double a,b,x;main(){scanf("%lf%lf%lf",&a,&b,&x);if (x<a*a*b/2){a=(2*x)/(a*b);printf("%.9f",atan(b/a)*180/M_PI);}else{x=a*a*b-x;b=(2*x)/(a*a);printf("%.9f",atan(b/a)*180/M_PI);}}
      |                     ^~~~~
a.cc:2:78: error: 'printf' was not declared in this scope
    2 | double a,b,x;main(){scanf("%lf%lf%lf",&a,&b,&x);if (x<a*a*b/2){a=(2*x)/(a*b);printf("%.9f",atan(b/a)*180/M_PI);}else{x=a*a*b-x;b=(2*x)/(a*a);printf("%.9f",atan(b/a)*180/M_PI);}}
      |                                                                              ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <math.h>
  +++ |+#include <cstdio>
    2 | double a,b,x;main(){scanf("%lf%lf%lf",&a,&b,&x);if (x<a*a*b/2){a=(2*x)/(a*b);printf("%.9f",atan(b/a)*180/M_PI);}else{x=a*a*b-x;b=(2*x)/(a*a);printf("%.9f",atan(b/a)*180/M_PI);}}
a.cc:2:142: error: 'printf' was not declared in this scope
    2 | double a,b,x;main(){scanf("%lf%lf%lf",&a,&b,&x);if (x<a*a*b/2){a=(2*x)/(a*b);printf("%.9f",atan(b/a)*180/M_PI);}else{x=a*a*b-x;b=(2*x)/(a*a);printf("%.9f",atan(b/a)*180/M_PI);}}
      |                                                                                                                                              ^~~~~~
a.cc:2:142: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <bits/stdc++.h>
#include <math.h>

using namespace std;
 
int main() {
	double a, b, x, unit_r;
	unit_r = 180.0 / pi;
	cin >> a >> b >> x;
	
	if(x < 0.5 * (a * a * b))
	{
		cout << atan((a * b * b)/2 * x) * unit_r << endl;
	}
	else
	{
		cout << atan(2*(x-a*a*b)/(a*a*a))
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: 'pi' was not declared in this scope
    8 |         unit_r = 180.0 / pi;
      |                          ^~
a.cc:17:50: error: expected ';' before '}' token
   17 |                 cout << atan(2*(x-a*a*b)/(a*a*a))
      |                                                  ^
      |                                                  ;
   18 |         }
      |         ~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <list>
#include <map>
#include <stack>
#include <unordered_set>
#include <unordered_map>
#include <queue>
#include <set>
#include <map>
#include <limits>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <numeric>
 
using namespace std;
 
#define ll long long
const double pi = 3.14159265359;
// const int maxn = 1e6+5;
// ll a[maxn], f[maxn];
 
int main() {
 
    ios::sync_with_stdio(false);
    cin.tie(0);

    double a,b,x; cin >> a >> b >> x;

    long double v = a*a*b;

    if (x == (v) / 2) {
        cout << 45.0000000000 << endl; return 0;
    }

    double ans = 0;
    if (x < v / 2) {
        ans = atan(a*b*b/2/x);
    } else {
        ans = atan(2*b/a - 2*x/a/a/a);
    }

    // double ans = acos(x / (a*a*b));
    ans = 180.0 / pi * ans;
    printf("%.15lf\n", ans);
    // cout << acos(0.5) << endl;

}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:41:15: error: 'atan' was not declared in this scope
   41 |         ans = atan(a*b*b/2/x);
      |               ^~~~
a.cc:43:15: error: 'atan' was not declared in this scope
   43 |         ans = atan(2*b/a - 2*x/a/a/a);
      |               ^~~~
Language: C++


#include <stdio.h>
#include <iostream>
#include <string.h>
#include <limits.h>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <math.h>

typedef unsigned long long ULLONG;
typedef long long LLONG;
static const long long MOD_NUM = 1000000007LL;

template <class _T> static _T tp_abs(const _T& a) {
	return ((a < 0) ? (a * -1) : a);
}
template <class _T> static _T tp_min(_T a, _T b) {
	return a < b ? a : b;
}
template <class _T> static _T tp_max(_T a, _T b) {
	return a > b ? a : b;
}
template<class _T> static void get1int(_T& a) {
	const char* fmt = " %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld";
	}

	if (scanf(fmt, &a) < 0) {
		printf("g1int Error\n");
	}
}
template<class _T> static void get2int(_T& a, _T& b) {
	const char* fmt = " %d %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld %lld";
	}

	if (scanf(fmt, &a, &b) < 0) {
		printf("g2int Error\n");
	}
}

template <class _T> void tp_getPrimes(_T targ, std::map<_T, _T>& primes)
{
	_T target = targ;
	_T i = 2;
	while ((i * i) <= target) {
		if ((target % i) == 0) {
			target /= i;

			if (primes.find(i) == primes.end()) {
				primes[i] = 1;
			}
			else {
				primes[i] = primes[i] + 1;
			}
		}
		else {
			i++;
		}
	}
	if (target == 1) {
		//	なにもしない
	}
	else if (primes.find(target) == primes.end()) {
		primes[target] = 1;
	}
	else {
		primes[target] = primes[target] + 1;
	}
}

static void D_task();

int main()
{
	D_task();
	fflush(stdout);
	return 0;
}

static void D_task()
{
	int A, B, X;
	get3int(A, B, X);

	double x = (double)(2 * X) / (double)(A * B);
	double tanx = x / (double)B;

	double tmp = atan(tanx);

	double deg = (atan(tanx) * (double)(180.0)) / (double)(3.141592653589793);

	printf("%.08lf\n", 90.0 - deg);
}


Compiler output:
a.cc: In function 'void D_task()':
a.cc:89:9: error: 'get3int' was not declared in this scope; did you mean 'get2int'?
   89 |         get3int(A, B, X);
      |         ^~~~~~~
      |         get2int
Language: C++

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

int main()
{
  float a,b,x;
  cin>>a>>b>>x;
  float v=a*a*b;
  float s=a*b;
  float y=x/a;
  float tan;
  float ans;
  else if(v>=2*x){
    tan=b*b/(2*y);
    ans=atan(tan);
    ans=ans*180/3.1415926535;
  }
  else{
    y=s-y;
    tan=2*y/(a*a);
    ans=atan(tan);
    ans=ans*180/3.1415926535;
  }
  cout<<setprecision(9)<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if(v>=2*x){
      |   ^~~~
Language: C++

a, b, x = gets.split.map(&:to_f)
v = a ** 2 * b
tv = v - x
if tv <= (v / 2)
  h = tv * 2 / a / a
  puts Math.atan2(h, a) * 180 / Math::PI
else
  h = x * 2 / b / a
  puts 90 - Math.atan2(h, b) * 180 / Math::PI
end



Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, x = gets.split.map(&:to_f)
      | ^
Language: C++

https://atcoder.jp/contests/abc144/tasks/abc144_d##include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define pi 3.1415926535897932384
#define mod 1000000007
#define ff first
#define ss second
#define endl '\n'
using namespace std;
const ll inf=1e18 ;
/*ll power(ll x,ll y)
{
    ll res=1;
    while(y>0)
    {
        if(y%2==1)
            res=(res*x)%mod;
        x=(x*x)%mod;
        y=y/2;
    }
    return res;
}*/
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
	cout.precision(12);
	cout.setf(ios::fixed,ios::floatfield);
	double a,b,c,x,d,y,z,r,k,s;
	cin>>a>>b>>x;
	y=(a*a*b-x)/(a*a);
	z=x/(a*a);
	s=y;
	y=(2.0)*y;
	d=a/y;
	r=b/(2.0);
	if(s>r)
    {
        d=(2.0*x)/(a*b*b);
        c=atan(d);
	c=(180.0 *c)/pi;
	c=90.00000000000000-c;
	cout<<c<<endl;
	return 0;
    }
	//cout<<d;
	c=atan(d);
	c=(180.0 *c)/pi;
	c=90.00000000000-c;
	//c=(pi/(2.0))-c;
	cout<<c<<endl;
}


Compiler output:
a.cc:1:1: error: 'https' does not name a type
    1 | https://atcoder.jp/contests/abc144/tasks/abc144_d##include<bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:25:5: error: 'ios_base' has not been declared
   25 |     ios_base::sync_with_stdio(false);
      |     ^~~~~~~~
a.cc:26:5: error: 'cin' was not declared in this scope
   26 |     cin.tie(0);
      |     ^~~
a.cc:27:5: error: 'cout' was not declared in this scope
   27 |     cout.tie(0);
      |     ^~~~
a.cc:29:19: error: 'ios' has not been declared
   29 |         cout.setf(ios::fixed,ios::floatfield);
      |                   ^~~
a.cc:29:30: error: 'ios' has not been declared
   29 |         cout.setf(ios::fixed,ios::floatfield);
      |                              ^~~
a.cc:41:11: error: 'atan' was not declared in this scope
   41 |         c=atan(d);
      |           ^~~~
a.cc:48:11: error: 'atan' was not declared in this scope
   48 |         c=atan(d);
      |           ^~~~
Language: C++

#include <unordered_map>
#include <functional>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <string>
#include <vector>
#include <queue>
#include <tuple>
#include <set>
#include <map>

#define FOR0(var, max) for (ul (var) = 0; (var) < (max); ++(var))
#define FORi(var, min, max) for (ul (var) = (min); (var) < (max); ++(var))
#define FORi_INV(var, min, max) for (ul (var) = (max) - 1; (var) + 1 > (min); --(var))
#define FORITER(var, iter) for (auto (iter) = (var).begin(); (iter) != (var).end(); (iter)++)
#define FORITER_INV(var, iter) for (auto (iter) = (var).rbegin(); (iter) != (var).rend(); (iter)++)

#define LTLT(a, b, c) (((a) < (b)) && ((b) < (c)))
#define LELT(a, b, c) (((a) <= (b)) && ((b) < (c)))
#define LTLE(a, b, c) (((a) < (b)) && ((b) <= (c)))
#define LELE(a, b, c) (((a) <= (b)) && ((b) <= (c)))

using namespace std;

using uc = unsigned char;
using ui = unsigned int;
using ul = unsigned long long int;

using sc = signed char;
using si = signed int;
using sl = signed long long int;

double A, B, X;

void solve(void) {
  double x = X / A;
  double a, b, c;
  if ((2 * x) / A > B) {
    double d = (2 * x / A) - B;
    // cout << (A * (B + d)) / 2 << ", " << x << endl;
    b = (B - d);
    c = A;
  } else {
    b = B;
    c = (2 * x) / B;
    // cout << ((B * c) / 2) << ", " << x << endl;
  }
  a = sqrt(c * c + b * b);
  cout << setprecision(12) << 90 - acos((a * a + b * b - c * c) / (2 * a * b)) * 180.0 / 3.1415926535 << endl;
}

int main(void) {
  cin >> A >> B >> X;
  solve();
  return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:50:7: error: 'sqrt' was not declared in this scope
   50 |   a = sqrt(c * c + b * b);
      |       ^~~~
a.cc:51:36: error: 'acos' was not declared in this scope
   51 |   cout << setprecision(12) << 90 - acos((a * a + b * b - c * c) / (2 * a * b)) * 180.0 / 3.1415926535 << endl;
      |                                    ^~~~
Language: C++

#include <bits/stdc++.h>
#include <math.h>

using namespace std;

int main(){
  int a,b,x; cin >> a >> b >> x;
  double radian=0;
  double ans=0;
  if(x<=a*a*b/2){
    radian=atan2(b,2*x/(a*b);
    ans=radian*(360/(2*M_PI));
    cout << ans << endl;
  }
  else if(x==a*a*b){
    cout << 0 << endl;
  }
  else
  {
    radian=atan2(a,2b-2*x/(a*a));
    ans=radian*(360/(2*M_PI));
    cout << ans << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: expected ')' before ';' token
   11 |     radian=atan2(b,2*x/(a*b);
      |                 ~           ^
      |                             )
a.cc:20:20: error: unable to find numeric literal operator 'operator""b'
   20 |     radian=atan2(a,2b-2*x/(a*a));
      |                    ^~
Language: C++

from math import atan, pi
a,b,x = [int(i) for i in input().split()]




ocupado = x/(a*a)



if ocupado == b:
    alfa = pi/2

elif ocupado*2 >= b:
    sobra = b - ocupado

    #alfa = atan(sobra/ocupado)
    alfa = atan(a / (2*(b-ocupado)))
else:
    alfa = atan((2*a*ocupado) / (b*b))
print("%.10f" %(90 - alfa*180/pi))

Compiler output:
a.cc:17:6: error: invalid preprocessing directive #alfa
   17 |     #alfa = atan(sobra/ocupado)
      |      ^~~~
a.cc:1:1: error: 'from' does not name a type
    1 | from math import atan, pi
      | ^~~~
Language: C++

#define _USE_MATH_DEFINES
#include<iostream>
#include<string>
#include<vector>
#include <algorithm>
#include<deque>
#include<queue>
#include<set>
#include <functional>

//マクロ
#define REP(i,n) for(int i=0; i<(int)(n); ++i)
#define REPS(i,n) for(int i=1; i<=(int)(n); ++i)
#define RREP(i,n) for(int i=(int)(n)-1; i>=0; --i)
#define RREPS(i,n) for(int i=(int)(n); i>0; --i)
#define FOR(i,s,e) for(int i=(int)(s); i<(int)(e); ++i)
#define RFOR(i,s,e) for(int i=(int)(e)-1; i>=(int)(s); --i)

#define All(a) (a).begin(),(a).end()

//定数
#define INF 1e9
#define MOD (int)(1e9+7)

typedef long long ll;
typedef unsigned long long ull;
using namespace std;

//とりあえず書いておく変数
int dx[4] = { 1,0,-1,0 };
int dy[4] = { 0,1,0,-1 };

//今回の変数
vector<int> l;

//使用する関数
template<class T>bool chmax(T &a, const T &b) {
	if (a < b) { a = b; return 1; }
	return 0;
}
template<class T>bool chmin(T &a, const T &b) {
	if (a > b) { a = b; return 1; }
	return 0;
}


int main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);
	double a,b,x;
	cin >> a >> b >> x;

	double t;
	if (a*a*b/2 == x) {
		cout << "45" << endl;
		return 0;
	}
	else if (a*a*b / 2 > x) {
		t = a*b*b / x /2;
	}
	else {
		t = (2 * b - 2 * x / (a*a))/a;
	}

	//cout << t << endl;
	//cout << atan(t)<< endl;
	//cout << atan(t) * 180 / M_PI << endl;
	printf("%.10f\n", atan(t) * 180 / M_PI);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:69:27: error: 'atan' was not declared in this scope
   69 |         printf("%.10f\n", atan(t) * 180 / M_PI);
      |                           ^~~~
a.cc:69:43: error: 'M_PI' was not declared in this scope
   69 |         printf("%.10f\n", atan(t) * 180 / M_PI);
      |                                           ^~~~
Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
#include<math.h>
#include<string>
#include<map>
#include<queue>
using namespace std;

int main() {
	long float pi = 3.14159265358979;
	long float a, b, x;
	cin >> a >> b >> x;
	long float ans;
	long float u = a * a * b - x;
	long float v = a * a * a;
	if (a * b * a / 2 >= x) {
		long float j = atan(a * b * b / (2 * x));
		ans = (j * 180) / pi;
		cout << ans << endl;
	}
	else {
		long float h = atan((2 * u) / v);
		ans = (h * 180) / pi;
		cout << ans << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'long' specified with 'float'
   11 |         long float pi = 3.14159265358979;
      |         ^~~~
a.cc:12:9: error: 'long' specified with 'float'
   12 |         long float a, b, x;
      |         ^~~~
a.cc:12:9: error: 'long' specified with 'float'
a.cc:12:9: error: 'long' specified with 'float'
a.cc:14:9: error: 'long' specified with 'float'
   14 |         long float ans;
      |         ^~~~
a.cc:15:9: error: 'long' specified with 'float'
   15 |         long float u = a * a * b - x;
      |         ^~~~
a.cc:16:9: error: 'long' specified with 'float'
   16 |         long float v = a * a * a;
      |         ^~~~
a.cc:18:17: error: 'long' specified with 'float'
   18 |                 long float j = atan(a * b * b / (2 * x));
      |                 ^~~~
a.cc:23:17: error: 'long' specified with 'float'
   23 |                 long float h = atan((2 * u) / v);
      |                 ^~~~
Language: C++

#include <iostream>
using namespace std;
 
int main(){
double aci;
int a,b,x;
cin >> a >> b >> x;
double c;
c = a/b;
double limit = a*a*b/3;
double d;

if(limit < x){
	d = (2*x - a*b)/a;
	d = b - d;
	aci = sqrt(a*a+d*d) / d;
	cout << d;
}else{
	d = 2*x/(a*b);
	aci = sqrt(b*b+d*d) / b;
	cout << b;
}
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:15: error: 'sqrt' was not declared in this scope
   16 |         aci = sqrt(a*a+d*d) / d;
      |               ^~~~
a.cc:20:15: error: 'sqrt' was not declared in this scope
   20 |         aci = sqrt(b*b+d*d) / b;
      |               ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const double PI=acos(-1);
int f[100];
int main()
{
    double a,b,x;
    cin >> a>> b >>x;
    double shangdi=x*2/a/a-b;

    if(shangdi<=0){

        shangdi=2*x/a/b;
        printf("%.10f",atan(shangdi)*180.0/PI);
    }else{

        shangdi=b-shangdi;
        printf("%.10f",atan(shangdi/a)*180.0/PI);
    }

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const double PI=acos(-1);
int f[100];
int main()
{
  //  cout << atan(1)*180/PI;
    double a,b,x;
    cin >> a>> b >>x;
    double shangdi=x*2/a/a-b;

    if(shangdi<=0){
        shangdi=2*x/a/b;
        printf("%.10f",atan(bangdi)*180.0/PI);
    }else{

        shangdi=b-shangdi;
        printf("%.10f",atan(shangdi/a)*180.0/PI);
    }


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: 'bangdi' was not declared in this scope; did you mean 'shangdi'?
   15 |         printf("%.10f",atan(bangdi)*180.0/PI);
      |                             ^~~~~~
      |                             shangdi
Language: C++

#include <bits/stdc++.h>
#include <math.h>

using namespace std;

int main(){
  int a,b,x; cin >> a >> b >> x;
  double radian=0;
  double ans=0;
  if(x<=a*a*b/2){
    radian=atan2(1,a*a*b/(2*x));
    ans=radian*(360/(2*pi));
    cout << ans << endl;
  }
  else{
    radian=atan2(1,a*a*a/(2*a*a*b-2*x));
    ans=radian*(360/(2*pi));
    cout << ans << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: 'pi' was not declared in this scope
   12 |     ans=radian*(360/(2*pi));
      |                        ^~
a.cc:17:24: error: 'pi' was not declared in this scope
   17 |     ans=radian*(360/(2*pi));
      |                        ^~
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
#include <math.h>

using namespace std;

int main()
{
  double a, b, x,y;
  double ans;

  cin >> a >> b >> x;

  if(a*a*b/2>=x){
    y = 2 * x / a / b;
    //cout << y << endl;
    ans = 180/M_PI * atan(b / y);
    //cout << atan(b / y) << endl;
    cout << ans << endl;
  }
  else{
    y = (2 * x / a / a);
    //cout << y << endl;
    ans = 180/M_PI*atan((2*b /a)- (y / a);
    cout << ans << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:42: error: expected ')' before ';' token
   25 |     ans = 180/M_PI*atan((2*b /a)- (y / a);
      |                        ~                 ^
      |                                          )
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
  float a,b,x;
   scanf("%d %d %d",&a,&b,&x);
  float c=x/(a*a*b)
  printf("%f",90.0*c);
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected ',' or ';' before 'printf'
    8 |   printf("%f",90.0*c);
      |   ^~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
  int a,b,x;
   scanf("%d %d %d",&a,&b,&x);
  float c=x/(a*a*b)
  printf("%f",90*c);
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected ',' or ';' before 'printf'
    8 |   printf("%f",90*c);
      |   ^~~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
  int a,b,x;
   scanf("%d %d %d",&a,&b,&x);
  int c=x/(a*a*b)
  printf("%f",90*c);
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected ',' or ';' before 'printf'
    8 |   printf("%f",90*c);
      |   ^~~~~~
Language: C++

#include<stdio.h>
#include<math.h>
int main()
{
	double a,b,x,ans,m,n;
	double arctan(double x);
	while(~scanf("%lf%lf%lf",&a,&b,&x))
	{if(a*a*b/2<x)
	 {ans=arctan(a*b*b/(2*x));
	 }
	 else {ans=arctan(2*b/a-2*x/(a*a*a));
	 }
	 printf("%lf\n",ans);
	}
}

Compiler output:
/usr/bin/ld: /tmp/ccDCYutz.o: in function `main':
a.cc:(.text+0x6e): undefined reference to `arctan(double)'
/usr/bin/ld: a.cc:(.text+0xc6): undefined reference to `arctan(double)'
collect2: error: ld returned 1 exit status
Language: C++

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

using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef vector<vi> vvi;

#define INF (1e9)
const double PI = 3.14159265358979323846;

double a, b, x;

int main() {
    cin >> a >> b >> x;

    double ans1, ans2;

    double c = x / a / b * 2;
    ans1 = atan(b / c) / PI * 180;

    double y = a * a * b - x;
    double c = y / a / a * 2;
    ans2 = atan(c / a) / PI * 180;

    cout << fixed << setprecision(10);
    cout << max(ans1, ans2) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: redeclaration of 'double c'
   27 |     double c = y / a / a * 2;
      |            ^
a.cc:23:12: note: 'double c' previously declared here
   23 |     double c = x / a / b * 2;
      |            ^
a.cc:30:22: error: 'setprecision' was not declared in this scope
   30 |     cout << fixed << setprecision(10);
      |                      ^~~~~~~~~~~~
a.cc:7:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    6 | #include <vector>
  +++ |+#include <iomanip>
    7 |
Language: C++

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

using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef vector<vi> vvi;

#define INF (1e9)
const double PI = 3.14159265358979323846;

double a, b, x;

int main() {
    cin >> a >> b >> x;

    double ans1, ans2;

    double c = x / a / b * 2;
    ans1 = atan(b / c) / PI * 180;

    double y = a * a * b - x;
    double c = y / a / a * 2;
    ans2 = atan(c / a) / PI * 180;

    cout << fixed << setprecision(10) << max(ans1, ans2) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: redeclaration of 'double c'
   27 |     double c = y / a / a * 2;
      |            ^
a.cc:23:12: note: 'double c' previously declared here
   23 |     double c = x / a / b * 2;
      |            ^
a.cc:30:22: error: 'setprecision' was not declared in this scope
   30 |     cout << fixed << setprecision(10) << max(ans1, ans2) << endl;
      |                      ^~~~~~~~~~~~
a.cc:7:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    6 | #include <vector>
  +++ |+#include <iomanip>
    7 |
Language: C++

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

using namespace std;
typedef long long int ll;
typedef vector<int> vi;
typedef vector<vi> vvi;

#define INF (1e9)
const double PI = 3.14159265358979323846;

double a, b, x;

int main() {
    cin >> a >> b >> x;

    double ans1, ans2;

    double c = x / a / b * 2;
    ans1 = atan(b / c) / PI * 180;

    double y = a * a * b - x;
    double c = y / a / a * 2;
    ans2 = atan(c / a) / PI * 180;

    cout << setprecision(10) << max(ans1, ans2) << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: redeclaration of 'double c'
   27 |     double c = y / a / a * 2;
      |            ^
a.cc:23:12: note: 'double c' previously declared here
   23 |     double c = x / a / b * 2;
      |            ^
a.cc:30:13: error: 'setprecision' was not declared in this scope
   30 |     cout << setprecision(10) << max(ans1, ans2) << endl;
      |             ^~~~~~~~~~~~
a.cc:7:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    6 | #include <vector>
  +++ |+#include <iomanip>
    7 |
Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
#include<math.h>
#include<string>
#include<map>
#include<queue>
using namespace std;

int main() {
	int a, b, x;
	cin >> a >> b >> x;
	long double ans;
	if (a * b * a / 2 >= x) {
		ans = (atan(a * b * b / (2 * x)) * 180) / 3.141592;
		cout << ans << endl;
	}
	else {
		long double u = long double(a * a * b - x);
		long double v = a * a * a;
		ans = (atan((2 * u) / v) * 180) / 3.141592;
		cout << ans << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:33: error: expected primary-expression before 'long'
   19 |                 long double u = long double(a * a * b - x);
      |                                 ^~~~
Language: C++

#pragma GCC optimize(3,"Ofast","inline")
#include<bits/stdc++.h>
#define in inline
#define reg register
#define int long long
#define MAX 200308
using namespace std;
namespace qwq{
	in void read(int &o) {
		o=0;
		int w=1;
		char c=getchar();
		while(c<'0'||c>'9') {
			if(c=='-')w*=-1;
			c=getchar();
		}
		while(c>='0'&&c<='9') {
			o=(o<<3)+(o<<1)+(c^48);c=getchar();
		}
		o*=w;
	}
	void write(int x){
	   	if(x<0)putchar('-'),x=-x;
    	if(x>9)write(x/10);
		putchar(x%10+48);
	}
	void Write(int x) {
		write(x);putchar('\n');
	}
	in int max(int x,int y){return x>y?x:y;}
	in int min(int x,int y){return x<y?x:y;}
}
using namespace qwq;
const double pi=acos(-1.0);
double a,b,x,h,alpha;
signed main()
{
	scanf("%lf%lf%lf",&a,&b,&x);
	h=2.0*x/(a*b);
	//cout<<h<<endl;
	if(h>a)
	{
		double k=1.0*(2.0*x/(a*a*1.0)-b;
		//cout<<k<<endl;
		alpha=90.0-atan(1.0*a/(b*1.0-k*1.0))*180/pi;
		printf("%.10lf",alpha);
	}
	else 
	{
		alpha=90.0-atan(h/(b*1.0))*180/pi;
		printf("%.10lf",alpha);
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:43:48: error: expected ')' before ';' token
   43 |                 double k=1.0*(2.0*x/(a*a*1.0)-b;
      |                              ~                 ^
      |                                                )
Language: C++

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

int main()
{
  float a,b,x;
  cin>>a>>b>>x;
  float v=a*a*b;
  float s=a*b;
  float y=x/a;
  float tan;
  float ans;
  if(v==2*x)cout<<45<<endl;
  else if(v<2*x){
    tan=b*b/(2*y);
    ans=atan(tan);
    cout<<ans*180/3.1415926535<<endl;
  }
  else{
    y=v-y;
    tan=2*y/(a*a);
    ans=atan(tan);
    cout<<ans*180/3.1415926535<<endl;
  }
}

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

#include <algorithm>
#include <iostream>
#include <vector>
#include <map>
#include <cstdio>
#include <string>
#include <cmath>
#include <queue>
//#include <bits/stdc++.h>
#define maxs(x,y) x = max(x,y)
#define mins(x,y) x = min(x,y)
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define repr(i, n) for (int i = (n) - 1; i >= 0; i--)
#define FOR(i,i0,n) for(int (i)=(i0);(i)<(n);(i)++)
#define FORR(i,i0,n) for(int (i)=(n)-1; (i)>=(i0);(i)--)
#define rn return
#define fi first
#define se second
typedef std::pair<int,int> P;
using namespace std;
using ll = long long;


int mainE(){
    int N;
    ll K;
    cin >> N >> K;
    vector<int> A(N);
    vector<int> F(N);
    rep(i,N) cin >> A[i];
    rep(i,N) cin >> F[i];
    
    
    rn 0;
}

const double pi = std::atan(1.0)*4;

int main(){
    double ans;
    double a,b,x;
    
    cin >> a >> b >> x;
    x = x/a;

    if (abs(x-(a*b)/2) < 1e-12){
        ans = atan(b/a)/pi*180;
        if (a==b){
            printf("%.11f", 45.0);
            rn 0;
        }
        printf("%.11f",ans);
    }
    else if(x - (a*b)/2 < -1*1e-12){
        ans = 90.0 - 180.0*atan(2*x/pow(b,2))/pi;
        printf("%.11f",ans);
    }
    else{
        ans = 180.0*atan(((b*a-x)*2.0)/(pow(a,2)))/pi;
        printf("%.11f",(ans));
    }

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

#include <bits/stdc++.h>
#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
using namespace std;
 
 
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
  
  int a,b,x,z,y,;
  double PI = 3.141592653589793;
  double deg,tan;
  
  cin >> a >> b >> x;
  if(pow(a, 3.0)<=2*x){
    tan = (2*pow(a, 2.0)*b-2*x)/pow(a, 3.0);
  }
  else{
    tan = (pow(a, 2.0)*b)/2*x
  }
  y = atan(tan);
  deg = y*180/PI;
  
  cout << tan << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:17: error: expected unqualified-id before ';' token
   25 |   int a,b,x,z,y,;
      |                 ^
a.cc:34:30: error: expected ';' before '}' token
   34 |     tan = (pow(a, 2.0)*b)/2*x
      |                              ^
      |                              ;
   35 |   }
      |   ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  double a,b,x;
  cin>>a>>b>>x;
  if(x>a*a*b/2){
    double t=a*a;
    double l=2*b-2*x/t;
    double x=atan(l/a)*180/2pi;
    cout<<x<<endl;
  }else{
    double t=a*b;
    double l=2*x/t;
    double x=atan(l/b)*180/2pi;
    cout<<x<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: unable to find numeric literal operator 'operator""pi'
    9 |     double x=atan(l/a)*180/2pi;
      |                            ^~~
a.cc:14:28: error: unable to find numeric literal operator 'operator""pi'
   14 |     double x=atan(l/b)*180/2pi;
      |                            ^~~
Language: C++

/***
	chauhan176's code

	DO WHATEVER IT TAKES!!!
	Nothing happens , nothing happens and then everything happens.
	But the thing is nothing happens in air:)-
***/
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long int
#define ld long double
#define fi first
#define se second
#define mod 1000000007
#define maxn 300005
#define all(v) v.begin(),v.end()
#define fastio ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define stringio cin.ignore(256, '\n')  //to take string input after taking integer inputs
#define go_t int t;cin>>t;for(int tt=1;tt<=t;tt++)
#define set_ar(arr,v) memset(arr,v,sizeof(arr))
#define trace2(x, y)             cout <<#x<<": "<<x<<" | "<<#y<<": "<<y<< endl;
#define trace3(x, y, z)          cout <<#x<<": "<<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl;
#define trace4(a, b, c, d)       cout <<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<endl;
#define trace5(a, b, c, d, e)    cout <<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<<": "<<e<<endl;

typedef pair<int,int>pi;
const ll inf = 0x3f3f3f3f3f3f3f3fll;//4x10e18
const int mx = 1000007;
#define PI 3.14159265
int main()
{
    fastio;
    int a,b,x;
    cin>>a>>b>>x;


    double vol=2*x;
    vol = vol/(double)(a*b);
    if(vol<=a){
    double p = (double)b , base = vol;
    double param = p/base;
    //trace3(p,base,param);
    cout<<fixed<<setprecision(10)<<(atan(param)*180)/(PI)<<endl;
    }
    else
    {
        double rhs = a*a*b - x;
        double side = 2*rhs;
        side = side/(double)(a*a);
        double p = (double)a , base = side;
        double param = p/base;
        //trace3(p,base,param);
        double ans = 90 - (atan(param)*180)/(PI);
        cout<<fixed<<setprecision(10)<<ans<
        <endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:56:9: error: expected primary-expression before '<' token
   56 |         <endl;
      |         ^
Language: C++

// *** creator : cfmasterr *** //
#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  const double PI = 3.14159265;
  double a, b, c;
  cin >> a >> b >> c;
  if (c >= (double) a * a * b / 2) {
    cout << fixed << setprecision(17) << atan((double) (b - (double) c / (a * a)) / ((double) a / 2)) * 180 / PI << '\n';
  } else {
    double h = (double) c / (a * a);
    double x = (double) (h * a) / b;
    cout << fixed << setprecision(17) << atan((double) b / x) * 180 / PI << '\n';
  return 0;
}

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


#define _USE_MATH_DEFINES
#include <stdio.h>
#include <string.h>
#include <vector>
#include <algorithm>

int main() {
        int ia, ib, ix;
        scanf("%d %d %d", &ia, &ib, &ix);

        double a = ia;
        double b = ib;
        double x = ix;

        double deg = atan(2.0 * (a * a * b - x) / (a * a * a));

        double deg2 = 0;
        if(deg > M_PI / 4.0) {
                deg2 = M_PI / 2.0 - atan(2.0 * x / (a * b * b));
                printf("%f", deg2 / M_PI * 180.0);
        } else {
                printf("%f", deg / M_PI * 180.0);
        }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: 'atan' was not declared in this scope
   16 |         double deg = atan(2.0 * (a * a * b - x) / (a * a * a));
      |                      ^~~~
a.cc:19:18: error: 'M_PI' was not declared in this scope
   19 |         if(deg > M_PI / 4.0) {
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <list>
#include <map>
#include <algorithm>
using namespace std;

typedef unsigned int uint;
typedef unsigned long long ull;
typedef long long ll;
typedef vector<int> vint;
typedef vector<uint> vuint;
typedef vector<ull> vull;
typedef vector<ll> vll;

#define init(type,var) type var;cin>>var;
#define vinit(type,var,n) vector<type> var((uint)n);loop(i,0,n)cin>>var[i];
#define linit(type,var,n) list<type> var;loop(i,0,n){type _v;cin>>_v;var.push_back(_v);}
#define range(container) container.begin(),container.end()
#define loop(i,first,end) for(ull i=(first);i<(end);i++)
#define outl(out) cout<<(out)<<endl;

const ull INF = (ull)(-1LL);

typedef ull dint;

typedef vector<dint> vdint;


int main(void){
	init(double, a);
	init(double, b);
	init(double, x);

	double s = x / a;

	double m_pi = atan(1.0) * 4.0;

	if (s <= a * b * 0.5){
		outl(atan2(b, (s * 2.0) / b) * 180.0 / m_pi);
	}
	else{
		s = a * b - s;
		outl(90.0 - (atan2(a, (s * 2.0) / a) * 180.0 / m_pi));
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:23: error: 'atan' was not declared in this scope
   38 |         double m_pi = atan(1.0) * 4.0;
      |                       ^~~~
a.cc:41:22: error: 'atan2' was not declared in this scope
   41 |                 outl(atan2(b, (s * 2.0) / b) * 180.0 / m_pi);
      |                      ^~~~~
a.cc:22:26: note: in definition of macro 'outl'
   22 | #define outl(out) cout<<(out)<<endl;
      |                          ^~~
a.cc:45:30: error: 'atan2' was not declared in this scope
   45 |                 outl(90.0 - (atan2(a, (s * 2.0) / a) * 180.0 / m_pi));
      |                              ^~~~~
a.cc:22:26: note: in definition of macro 'outl'
   22 | #define outl(out) cout<<(out)<<endl;
      |                          ^~~
Language: C++


#include <stdio.h>
#include <string.h>
#include <vector>
#include <algorithm>

int main() {
        int ia, ib, ix;
        scanf("%d %d %d", &ia, &ib, &ix);

        double a = ia;
        double b = ib;
        double x = ix;

        double deg = atan(2.0 * (a * a * b - x) / (a * a * a));

        double deg2 = 0;
        if(deg > M_PI / 4.0) {
                deg2 = M_PI / 2.0 - atan(2.0 * x / (a * b * b));
                printf("%f", deg2 / M_PI * 180.0);
        } else {
                printf("%f", deg / M_PI * 180.0);
        }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:22: error: 'atan' was not declared in this scope
   15 |         double deg = atan(2.0 * (a * a * b - x) / (a * a * a));
      |                      ^~~~
a.cc:18:18: error: 'M_PI' was not declared in this scope
   18 |         if(deg > M_PI / 4.0) {
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
#include<math.h>
using namespace std;
int main()
{
    double a,b,x;
    cin >> a >> b >> x;
    if(x<=a*a*b/2){
    double d=(2*x)/(a*b);
    cout << 90.0-double(180*atan(d/b))/M_PI << endl;
    }
    else if(x>a*a*b/2){
        double d=((2*b-(2*x/(a*a)))/a);
        cout << double(180*atan(d))/M_PI << endl; 
    }
    else(x==a*a*b){
        cout << 0 << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: expected ';' before '{' token
   16 |     else(x==a*a*b){
      |                   ^
      |                   ;
Language: C++

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

int main() {
  int a, b, x;
  cin >> a >> b >> x;
  cout << 180/PI*atan((2*b)/a - (2*x)/(a*a)) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'PI' was not declared in this scope
    7 |   cout << 180/PI*atan((2*b)/a - (2*x)/(a*a)) << endl;
      |               ^~
Language: C++

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

int main() {
  int a, b, x;
  cin >> a >> b >> x;
  if (2 * x <= a * a * b) {
    double c;
    c = a * b * b / (2.0 * x);
    cout << 180 * atan(c) / pi << endl;
  }
  else {
    double d;
    d = 2.0 * (a * a * b - x) / (a * a * a);
    cout << 180 * atan(d)/ pi << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: 'pi' was not declared in this scope
   10 |     cout << 180 * atan(c) / pi << endl;
      |                             ^~
a.cc:15:28: error: 'pi' was not declared in this scope
   15 |     cout << 180 * atan(d)/ pi << endl;
      |                            ^~
Language: C

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

int main(){
	int a,b,x;
  scanf("%d %d %d",&a,&b,&x);
  if(x==a*a*b)printf("0\n");
  else{
  	printf("%lf\n",arctan(a*b*b/(2*x)));
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:24: error: implicit declaration of function 'arctan'; did you mean 'atan'? [-Wimplicit-function-declaration]
    9 |         printf("%lf\n",arctan(a*b*b/(2*x)));
      |                        ^~~~~~
      |                        atan
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <numeric>
#include <math.h>
#include <set>
#include <bitset>
#include <stack>

using namespace std;

typedef long long ll;

const ll prime = 10000000000 + 7;
const long double PI = 3.14159265358979323846;

/*
vector<int> z_algorithm(const string& s) {
	vector<int> prefix(s.size());
	for (int i = 1, j = 0; i < s.size(); i++)
	{
		if (i + prefix[i - j] < j + prefix[j]) {
			prefix[i] = prefix[i - j];
		}
	}
}
*/

struct UnionFind {
	vector<ll> par;
	vector<ll> rank;

	UnionFind(ll n) {
		par = vector<ll>(n);
		rank = vector<ll>(n);
		for (ll i = 0; i < n; i++)
		{
			par[i] = i;
			rank[i] = 0;
		}
	}

	ll root(ll x) {
		if (par[x] == x) {
			return x;
		}
		else {
			return root(par[x]);
		}
	}

	bool is_same(ll x, ll y) {
		return (root(x) == root(y));
	}

	void connect(ll x, ll y) {
		if (!is_same(x, y)) {
			ll x1, y1;
			x1 = root(x);
			y1 = root(y);
			if (rank[x1] < rank[y1]) {
				par[x1] = y1;
			}
			else if (rank[x1] > rank[y1]) {
				par[y1] = x1;
			}
			else {
				par[x1] = y1;
				rank[y1]++;
			}
		}
	}
};

int main() {

	long double a, b, x;
	cin >> a >> b >> x;
	long double t, c;

	if (x < (a * a * b) / 2) {
		c = long double(2 * x) / long double(a * b * b);
		t = atan(c);
		t = t * long double(180.0) / PI;
		t = long double(90.0) - t;
	}
	else {
		c = long double(2 * (a * a * b - x)) / long double(a * a * a);
		t = atan(c);
		t = t * long double(180.0) / PI;
	}

	cout << t << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:83:21: error: expected primary-expression before 'long'
   83 |                 c = long double(2 * x) / long double(a * b * b);
      |                     ^~~~
a.cc:85:25: error: expected primary-expression before 'long'
   85 |                 t = t * long double(180.0) / PI;
      |                         ^~~~
a.cc:86:21: error: expected primary-expression before 'long'
   86 |                 t = long double(90.0) - t;
      |                     ^~~~
a.cc:89:21: error: expected primary-expression before 'long'
   89 |                 c = long double(2 * (a * a * b - x)) / long double(a * a * a);
      |                     ^~~~
a.cc:91:25: error: expected primary-expression before 'long'
   91 |                 t = t * long double(180.0) / PI;
      |                         ^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  double a, b, x;
  cin >> a >> b >> x;
  double theta = atan(a*b*b/x);
  printf("%d\n", theta);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'atan' was not declared in this scope
    6 |   double theta = atan(a*b*b/x);
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const double pi=acos(-1);
long double a,b,x,c;
long double ans;
int main()
{
	cin>>a>>b>>x;
	if(a*a*b/2<x)
	{
		c=2*b-2*x/(a*a);
		ans=atan(c/a)/pi*180;
		cont<<ans;
	}
	else
	{
		c=2*x/a/b;
		ans=atan(b/c)/pi*180;
		cout<<ans;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'cont' was not declared in this scope; did you mean 'const'?
   13 |                 cont<<ans;
      |                 ^~~~
      |                 const