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

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

const int MOD = 1000000007;
const int INF = 1e9;

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

  long double ans;
  long double pi = acos(-1);

  if(a*a*b - 2*x >= 0){
    ans = 2 / (a*a*b) * x;
    ans = atan(ans);
    // ans = ans * 180 / pi;
    // ans = 90 - ans;
    ans = pi / 2 - ans;
    ans = 180 / pi * ans;
  }else{
    ans = 2/(a*a*a) * (a * a * b - x);
    // cout << ans << endl;
    ans = atan(ans);
    // cout << ans << endl;
    ans = ans * 180 / pi;
  }
  cout << ficed << setprecision(10);
  cout << ans << endl;

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:11: error: 'ficed' was not declared in this scope
   28 |   cout << ficed << setprecision(10);
      |           ^~~~~
Language: C++

#include <bits/stdc++.h>
#include<algorithm>	
using namespace std;
#define ll long long 
long long n;
vector<long long> so_a;//素数を格納
int main(){
  long double a,b,x;
  cin >> a >> b >> x;
  long double res;
  if(x > a*a*b/2){
    
    res = atan(2*(a*a*b-x)/(a*a*a));
  }else{
    res = atan((a*b*b)/(2*x)) ;
  }
  cout << fixed << setprecision(10)
  cout << 360*res/(2*M_PI) << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:36: error: expected ';' before 'cout'
   17 |   cout << fixed << setprecision(10)
      |                                    ^
      |                                    ;
   18 |   cout << 360*res/(2*M_PI) << endl;
      |   ~~~~
Language: C++

#include <algorithm>
#include <map>
#include <cmath>
#include <iomanip>
#define rep(i,n) for (int i=0; i < (n); ++i)
using namespace std;
typedef long long ll;

int main(){
    double a, b, x;
    cin >> a >> b >> x;
    double s = x/a;
    double rad;
    if (s >= a*b/2){
        double h = (a*b-s)*2/a;
        rad = atan2(h,a);
    } else {
        double w = s*2/b;
        rad = atan2(b,w);
    }
    double deg = rad/(2*M_PI)*360;
    cout << setprecision(10) << deg << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin >> a >> b >> x;
      |     ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <iomanip>
  +++ |+#include <iostream>
    5 | #define rep(i,n) for (int i=0; i < (n); ++i)
a.cc:22:5: error: 'cout' was not declared in this scope
   22 |     cout << setprecision(10) << deg << endl;
      |     ^~~~
a.cc:22:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <bits/stdc++.h>
#include <queue>
#include <string.h>
#include <stdint.h>
#include <cmath>

#define fast                          \
    ios_base::sync_with_stdio(false); \
    cin.tie(0);                       \
    cout.tie(0);

#define ll long long
#define ld long double
#define ull unsigned long long
#define ut uint64_t

#define pb push_back
#define ins insert
#define er erase

#define fi(i, b) for (int i=0;i<b;i++)
#define fll(i, b) for (ll i=0;i<b;i++)
#define fla(i,a,b) for (ll i=a;i<b;i++)

#define vi vector<int>
#define vll vector<ll>
#define vc vector<char>
#define vb vector<bool>
#define vst vector<string>
#define vpii vector<pii>
#define vpll vector<pll>
#define vv(n,m) vector<vector<ll> > vec( n , vector<ll> (m, 0))


#define all(v) v.begin(), v.end()
#define lb lower_bound
#define ub upper_bound
#define mxe max_element
#define mne min_element

#define srt(v) sort(all(v))
#define rsrt(v) sort(v.rbegin(), v.rend())

#define pii pair<int, int>
#define pll pair<ll, ll>
#define ff first
#define ss second

#define mii map<int, int>
#define mll map<ll, ll>
#define umii unordered_map<int, int>
#define umll unordered_map<ll, ll>

#define si set<int>
#define sll set<ll>
#define usi unordered_set<int>
#define usll unordered_set<ll>
#define spii set<pii>
#define spll set<pll>

#define pqi priority_queue<int>
#define pqll priority_queue<ll>

 #define gcd(a, b) __gcd(a, b)
#define lcm(a, b) ((a)*1ll * (b)) / gcd(a, b)

#define nl "\n"
using namespace std;

double PI = (acos(-1));

ll md = 1000000007;
ll ma = 998244353;

ll pw(ll a, ll b)
{
    ll c = 1, m = a;
    while (b){
        if (b & 1)c = (c * m);
        m = (m * m);
        b /= 2;
    }
    return c;
}

ll pwmd(ll a, ll b){
    ll c = 1, m = a;
    while (b){
        if (b & 1)
            c = ((c * m)) % md;
        m = (m * m) % md;
        b /= 2;
    }
    return c;
}


ll modinv(ll n)
{
    return pwmd(n, md - 2);
}
ll min(ll a,ll b){
    if(a>=b)return b;
    return a;
    
//vst vect={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
    
    
    
}
void solve(){
    
    long double a,b,x,h,ang=180.0,ans;
    cin>>a>>b>>x;
    if(x>=a*b*b/2.0){ans=atan(2*((a*a*b)-x)/(a*a*a));
        cout<<setprecision(10)<<ans*ang/PI;
    }
    else {ans=PI/2-atan(2*x/(a*b*b)));
        cout<<setprecision(10)<<ans*ang/PI;
    }
}

// AB DEKHO JAADU...

int main(){

    fast;
    ll tests=1;
    //cin>>tests;
    while(tests--){
        solve();
    }

    return 0;
    }

// KHATAM HO GAYA:)...






Compiler output:
a.cc: In function 'void solve()':
a.cc:118:37: error: expected ';' before ')' token
  118 |     else {ans=PI/2-atan(2*x/(a*b*b)));
      |                                     ^
      |                                     ;
Language: C++

#include <bits/stdc++.h>
#define PI 3.14159265
using namespace std;
using ld = long double;
const ld EPS = 0.0000000001;
ld a, b, x;

ld f(ld a, ld b, ld theta) {
    if (theta > PI / 2.0 - EPS) {
        return 0.0;
    }
    ld ret;
    if (a * tan(theta) <= b) {
        ret = a * a * b - a * a * a * tan(theta) / 2.0;
    } else {
        return b * b / tan(theta) * a / 2.0;
    }
    return ret;
}

void solve() {
    cin >> a >> b >> x;
    ld r = PI / 2.0;
    ld l = 0.0;
    for (int i = 0; i < 100000; ++i) {
        ld mid = (l + r) / 2.0;
        if (f(a, b, mid) < x) r = mid;
        else l = mid;
    }
    cout << fixed << setprecision(10) << ok / PI * 180 << endl;
}

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


Compiler output:
a.cc: In function 'void solve()':
a.cc:30:42: error: 'ok' was not declared in this scope
   30 |     cout << fixed << setprecision(10) << ok / PI * 180 << endl;
      |                                          ^~
Language: C++

#include <bits/stdc++.h>
//　各変数を定義
double t;
double a,b,x;
// 方程式を定義する。
#define f(t)(a*a*b-a*a*tan(t)/2)
// f(t)をtで微分
#define g(t)(-a*a/(2*cos(t)*cos(t)))
#define h(t)(a*b*b*/(2*tan(t)))
#define q(x)(-a*b*b/(2*sin(t)*sin(t)))
using namespace std;
int main(){
cout << fixed << setprecision(10);
double t,dt,a,b,x;cin>>a>>b>>x;
double acc = 1e-10; 
double pi=3.1415926535;// 打ち切り精度
t=pi/2;
if(a*b/2>=x){
for (int k = 1; k <= 100; k++) {
dt = t;
t = t - h(t) / q(t);
if (fabs(t - dt) / fabs(dt) < acc) {
break;
}
}
double c=180*t/pi;
cout<<c<<endl;}
else if(a*b/2<x){
for (int k = 1; k <= 100; k++) {
dt = t;
t = t - f(t) / g(t);
if (fabs(t - dt) / fabs(dt) < acc) {
break;
}
}
double c=180*t/pi;
cout<<c<<endl;}
    
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected primary-expression before '/' token
    9 | #define h(t)(a*b*b*/(2*tan(t)))
      |                    ^
a.cc:21:9: note: in expansion of macro 'h'
   21 | t = t - h(t) / q(t);
      |         ^
Language: C++

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

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

  cin >> a >> b >> x;
  double s = x/a;
  double rad;

  if(s >= a*b/2){
    double h = (a*b - s)*2/a;
    rad = atan2(h,a);
  }

  else {
    double w = s*2/b;
    rad = atan2(b,w);
  }

  double pi = acos(-1);
  dounle deg = rad/(2*pi)*360;

  printf("%.10f\n", deg);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:3: error: 'dounle' was not declared in this scope; did you mean 'double'?
   24 |   dounle deg = rad/(2*pi)*360;
      |   ^~~~~~
      |   double
a.cc:26:21: error: 'deg' was not declared in this scope
   26 |   printf("%.10f\n", deg);
      |                     ^~~
Language: C++

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

int main(){
  int a,b,x;
  doubel s;
  double d;
  double h;
  double rad;

  scanf("%d %d %d", &a, &b, &x);

  s = x/a;

  if(s >= a*b/2){
    h = (a*b - s)*2/a;
    rad = atan2(h,a);
  }

  else {
    h = s*2/b;
    rad = atan2(b,h);
  }

  double pi = acos(-1);
  double deg = rad/(2*pi)*360;
  printf("%.10f\n",deg);

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'doubel' was not declared in this scope; did you mean 'double'?
    8 |   doubel s;
      |   ^~~~~~
      |   double
a.cc:15:3: error: 's' was not declared in this scope
   15 |   s = x/a;
      |   ^
Language: C++

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

using namespace std;
using ll = long long int;
using dd = long double;
const dd PI = 3.1415926535;

dd f(dd A, dd B, dd deg) {
  if (deg == 0) {
    return 0.0;
  }

  if (B / tan(deg) > A) {
    dd full = A * A * B;
    return full - A * A * A * tan(deg) / 2.0;
  } else {
    dd water = A * B * B / tan(deg) / 2.0;
    return full - empty;
  }
}

int main() {
  dd A, B, X;
  cin >> A >> B >> X;


  dd ans = 0.0;
  dd l = 0.0;
  dd r = 90.0;

  while (abs(l - r) > 1e-9) {
    dd mid = (l + r) / 2.0;
    dd rad = PI * mid / 180.0;
    if (f(A, B, rad) <= X){
      r = mid;
    } else{
      l = mid;
    }
  }
  ans = l;
  cout << fixed << setprecision(10) << ans << endl;
}

Compiler output:
a.cc: In function 'dd f(dd, dd, dd)':
a.cc:22:12: error: 'full' was not declared in this scope; did you mean 'fmull'?
   22 |     return full - empty;
      |            ^~~~
      |            fmull
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  double PI=acos(-1);
  double a,b,x; cin >>a>>b>>x;
  if(x>=a*b*b/2){
  cout <<fixed<<setprecision(10)<<(180/pi)*atan((2/a)*(b-(x/(a*a))))<<endl;
  }else{
    cout <<fixed<<setprecision(10)<<(180/pi)*atan(a*b*b/(2*x))<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:40: error: 'pi' was not declared in this scope; did you mean 'PI'?
   24 |   cout <<fixed<<setprecision(10)<<(180/pi)*atan((2/a)*(b-(x/(a*a))))<<endl;
      |                                        ^~
      |                                        PI
a.cc:26:42: error: 'pi' was not declared in this scope; did you mean 'PI'?
   26 |     cout <<fixed<<setprecision(10)<<(180/pi)*atan(a*b*b/(2*x))<<endl;
      |                                          ^~
      |                                          PI
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  double pi=3.14159265359;
  double a,b,x; cin >>a>>b>>x;
  if(x>=a*b*b/2){
  cout <<fixed<<setprecision(10)<<(180/PI)*atan((2/a)*(b-(x/(a*a))))<<endl;
  }else{
    cout <<fixed<<setprecision(10)<<(180/PI)*atan(a*b*b/(2*x))<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:40: error: 'PI' was not declared in this scope; did you mean 'pi'?
   24 |   cout <<fixed<<setprecision(10)<<(180/PI)*atan((2/a)*(b-(x/(a*a))))<<endl;
      |                                        ^~
      |                                        pi
a.cc:26:42: error: 'PI' was not declared in this scope; did you mean 'pi'?
   26 |     cout <<fixed<<setprecision(10)<<(180/PI)*atan(a*b*b/(2*x))<<endl;
      |                                          ^~
      |                                          pi
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  long long double pi=3.141592653589;
  double a,b,x; cin >>a>>b>>x;
  if(x*2>=a*b*b){
   // double k=
  cout <<fixed<<setprecision(10)<<(180/pi)*atan((2/a)*(b-(x/(a*a))))<<endl;
  }else{
    cout <<fixed<<setprecision(10)<<(180/pi)*atan(a*b*b/(2*x))<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: 'long long' specified with 'double'
   21 |   long long double pi=3.141592653589;
      |        ^~~~
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<math.h>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  int a,b,x;cin >>a>>b>>x;
  cout <<(double)arctan(2/a*(b-x/(a*a)))<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:18: error: 'arctan' was not declared in this scope; did you mean 'atan'?
   23 |   cout <<(double)arctan(2/a*(b-x/(a*a)))<<endl;
      |                  ^~~~~~
      |                  atan
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  int a,b,x;cin >>a>>b>>x;
  cout <<(double)arcsin(2/a*(b-x/(a*a)))<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: 'arcsin' was not declared in this scope; did you mean 'asin'?
   22 |   cout <<(double)arcsin(2/a*(b-x/(a*a)))<<endl;
      |                  ^~~~~~
      |                  asin
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  int a,b,x;cin >>a>>b>>x;
  cout <<(double)arctan(2/a*(b-x/(a*a)))<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:18: error: 'arctan' was not declared in this scope; did you mean 'atan'?
   22 |   cout <<(double)arctan(2/a*(b-x/(a*a)))<<endl;
      |                  ^~~~~~
      |                  atan
Language: C++

#define _GLIBCXX_DEBUG
#include<algorithm>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<iostream>
#include<vector>
#include<queue>
#include<deque>
#include<stack>
#include<set>
#include<map>
#include<string>
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define rep2(i,s,n) for(int i=s;i< (int)n; i++)
#define ll long long 
#define all(v) v.begin(),v.end()
using namespace std;
int main(){
  int a,b,x;cin >>a>>b>>x;
  return <<(double)arctan(2/a*(b-x/(a*a)))<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:10: error: expected primary-expression before '<<' token
   22 |   return <<(double)arctan(2/a*(b-x/(a*a)))<<endl;
      |          ^~
a.cc:22:20: error: 'arctan' was not declared in this scope; did you mean 'atan'?
   22 |   return <<(double)arctan(2/a*(b-x/(a*a)))<<endl;
      |                    ^~~~~~
      |                    atan
Language: C++

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

double pai=3.1415926535

int main() {
	double a,b,x;
	cin>>a>>b>>x;
	
	double ans;
	if(x>a*a*b/2){
		double res=atan(2*(a*b-x/a)/(a*a));//90-角度
		ans=180*(90-res)/pai;
	}else{
		ans=180*atan(2*x/(a*b*b))/pai;
	}
	
	cout<<ans<<endl;
	
	
}


Compiler output:
a.cc:8:1: error: expected ',' or ';' before 'int'
    8 | int main() {
      | ^~~
Language: C++

# include <bits/stdc++.h>
# define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++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 ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size())
# define pb push_back
# define optimize_cin() cin.tie(0); ios::sync_with_stdio(false)
using namespace std;
using ll = long long;
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 (b<a) { a=b; return 1; } return 0; }
const long long INF = 1LL << 60;

int gcd(int a, int b)
{
   if (a%b == 0)
   {
       return(b);
   }
   else
   {
       return(gcd(b, a%b));
   }
}

uintmax_t combination(unsigned int n, unsigned int r) {
  if ( r * 2 > n ) r = n - r;
  uintmax_t dividend = 1;
  uintmax_t divisor  = 1;
  for ( unsigned int i = 1; i <= r; ++i ) {
    dividend *= (n-i+1);
    divisor  *= i;
  }
  return dividend / divisor;
}

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

    int taiseki = a * a * b;

    double ans;

    if(taiseki/2 <= x){
        double k = x / a;
        double l = k / a;
        double p = b - l;
        double q = 2*p/a;
    }

    else{
        double m = b*b;
        double n = m/x;
        double q = n/2;
    }

    double ans2 = atan(q);
    ans = 180 * ans2 / 3.1415926535;

    cout << fixed << setprecision(10) << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:61:24: error: 'q' was not declared in this scope
   61 |     double ans2 = atan(q);
      |                        ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define intt long long
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

const int N = 100005;
const double M_PI = 3.14159265;

int n;
int a[N];

double angle (int x, int y, int z) {
	int vol = x * x * y;
	double ans = 0;
	if (z * 2 < vol) {
		double d = (x * y * y) / (2.0 * z);
		ans = atan(d);
	}
	else {
		z = vol - z;
		double d = (2 * z) / (double)(x * x * x);
		ans = atan(d);
	}
	ans = (ans * 180) / M_PI;
}

int main() {

	FAST;

	int x, y, z;
	cin >> x >> y >> z;
	cout << setprecision(9) << fixed << angle(x, y, z) << '\n';
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/cmath:47,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:114,
                 from a.cc:1:
a.cc:9:14: error: expected unqualified-id before numeric constant
    9 | const double M_PI = 3.14159265;
      |              ^~~~
a.cc: In function 'double angle(int, int, int)':
a.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
   27 | }
      | ^
Language: C++

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

int main(){
  double a,b,x;
  cin>>a>>b>>x;
  if(2*x*x*x<=a*b*b){
  double y=2*x*x*x,z=a*b*b;
  printf("atan(%.12f/%.12f)\n",y,z)
  }
  else{
  double y=a*a*a,z=2*(a*a*b-x*x*x);
  printf("atan(%.12f/%.12f)\n",y,z)
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: expected ';' before '}' token
    9 |   printf("atan(%.12f/%.12f)\n",y,z)
      |                                    ^
      |                                    ;
   10 |   }
      |   ~                                 
a.cc:13:36: error: expected ';' before '}' token
   13 |   printf("atan(%.12f/%.12f)\n",y,z)
      |                                    ^
      |                                    ;
   14 |   }
      |   ~
Language: C++

    double ans=180/PI*theta;
    double ans=180/PI*theta;
#include<bits/stdc++.h>
using namespace std;
#define rep(i,s,n) for(int i=s;i<n;i++)
typedef long long ll;
const double PI = acos(-1);
int main(){
    double a,b,x;
    cin >> a >> b >> x;
    double theta;
    theta=atan(2*(b-x/pow(a,2))/a);
    if(theta>a*tan(2*x/pow(a,3))){
        theta = atan(a*pow(b,2)/(2*x));
    }
    double ans=180/PI*theta;

    printf("%.7f\n",ans);
}

Compiler output:
a.cc:1:20: error: 'PI' was not declared in this scope; did you mean 'M_PI'?
    1 |     double ans=180/PI*theta;
      |                    ^~
      |                    M_PI
a.cc:1:23: error: 'theta' was not declared in this scope
    1 |     double ans=180/PI*theta;
      |                       ^~~~~
a.cc:2:12: error: redefinition of 'double ans'
    2 |     double ans=180/PI*theta;
      |            ^~~
a.cc:1:12: note: 'double ans' previously defined here
    1 |     double ans=180/PI*theta;
      |            ^~~
a.cc:2:20: error: 'PI' was not declared in this scope; did you mean 'M_PI'?
    2 |     double ans=180/PI*theta;
      |                    ^~
      |                    M_PI
a.cc:2:23: error: 'theta' was not declared in this scope
    2 |     double ans=180/PI*theta;
      |                       ^~~~~
Language: C++

import java.util.*;

public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		double a = sc.nextDouble();
		double b = sc.nextDouble();
		double x = sc.nextDouble();

		double tri = (a * a * b) / 2; 
		double degree = 0;

		if(x > tri){
			degree = Math.toDegrees(Math.atan(((2 * a * a * b) - (2 * x))/(a*a*a)));
		}
		else{
			degree = 90 - Math.toDegrees(Math.atan((2*x)/(b*b*b)));
		}
		System.out.println(degree);
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main{
      | ^~~~~~
Language: C++


#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#define LL long long int
using namespace std;
int main()
{
    int a,b,x;
    scanf("%d%d%d",&a,&b,&x);
    double A=a,B=b,X=x,ans;
    if(X<A*A*B/2.0)ans=atan(A*B*B/2.0/X)/pi*180;
    else ans=atan(2*(A*A*B-X)/A/A/A)/pi*180;
    printf("%.10f",ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:42: error: 'pi' was not declared in this scope
   14 |     if(X<A*A*B/2.0)ans=atan(A*B*B/2.0/X)/pi*180;
      |                                          ^~
a.cc:15:38: error: 'pi' was not declared in this scope
   15 |     else ans=atan(2*(A*A*B-X)/A/A/A)/pi*180;
      |                                      ^~
Language: C++


#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#define LL long long int
using namespace std;int main()
{
    int a,b,x;
    scanf("%d%d",&a,&b);
    scanf("%d",&x);
    double A=a,B=b,X=x,ans;
    if(X<A*A*B/2.0)ans=atan(A*B*B/2.0/X)/pi*180;
    else ans=atan(2*(A*A*B-X)/A/A/A)/pi*180;
    printf("%.10f",ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:42: error: 'pi' was not declared in this scope
   15 |     if(X<A*A*B/2.0)ans=atan(A*B*B/2.0/X)/pi*180;
      |                                          ^~
a.cc:16:38: error: 'pi' was not declared in this scope
   16 |     else ans=atan(2*(A*A*B-X)/A/A/A)/pi*180;
      |                                      ^~
Language: C++


#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#define LL long long int
using namespace std;int main()
{
    int a,b,x;
    scanf("%d%d",&a,&b);
    scanf("%d",&x);
    double A=a,B=b,X=x,ans;
    if(X<A*A*B/2.0)ans=atan(A*B*B/2.0/X)/pi*180;
    else ans=atan(2*(A*A*B-X)/A/A/A)/pi*180;
    printf("%.10f\n",ans);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:42: error: 'pi' was not declared in this scope
   15 |     if(X<A*A*B/2.0)ans=atan(A*B*B/2.0/X)/pi*180;
      |                                          ^~
a.cc:16:38: error: 'pi' was not declared in this scope
   16 |     else ans=atan(2*(A*A*B-X)/A/A/A)/pi*180;
      |                                      ^~
Language: C

#include<stdio.h>
#include<math.h>
#define PI 3.14159265358979

int main(){
  double ans;
  int a, b, x;
  scanf("%d%d%d", &a, &b, &x);

  if (x<=a*a*b/2) {
    //    ans = atan(a*b*b/x/2.0);
    //ans = atan2(b, x*2.0/a/b);
    ans = atan(1.0*a*b*b/x/2);
  } else {
    //    ans = atan((x-a*a*b)*2.0/a/a);
    //    ans = atan2((x*1.0/a-a*b)*2.0/a, a);
    // ans = atan2((a*b-x*1.0/a)/a*2, a);
     ans = atan((a*b-x*1.0/a)/a*2/a);
  }
 
    ans = (ans*180)/M_PI;
    // ans = (ans*180)/PI;
  printf("%.10f\n", ans);
  return 0;
}

unko


Compiler output:
main.c:27:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   27 | unko
      | ^~~~
Language: C++

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

int main(){
  double a, b, x, k, h;
  cin >> a >> b >> x;
  if(x > a * a * b / 2.00000000){
    x = (a * a * b - x) / (a * a) * 2.00000000;
    k = atan(x / a);
    h = 180.0000000 * k / 3.141592653;
  }
  else{
    x = x / (a * b) * 2.00000000;
    k = atan(b / x);
    h = 180.0000000 * k / 3.141592653;
  }
  cout << fixed << setprecision(7)
  cout << h << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:35: error: expected ';' before 'cout'
   17 |   cout << fixed << setprecision(7)
      |                                   ^
      |                                   ;
   18 |   cout << h << endl;
      |   ~~~~
Language: C++

import math
a,b,x=[int(s) for s in input().split()]
if x>a*a*b/2:
  h=2*(a*a*b-x)/(a*a)
  print(math.degrees(math.atan(h/a)))
else:
  k=2*x/(a*b)
  print(math.degrees(math.atan(b/k)))

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

import math
a,b,x=[int(s) for s in input().split()]
if x>a*a*b/2:
h=2*(a*a*b-x)/(a*a)
  print(math.degrees(math.atan(h/a)))
  else:
k=2*x/(a*b);
print(math.degrees(math.atan(b/k)))
  

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:6: error: expected constructor, destructor, or type conversion before '(' token
    8 | print(math.degrees(math.atan(b/k)))
      |      ^
Language: C++

#include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define ull unsigned long long
#define vi vector<ll>
#define vvi vector<vi>
#define DBG_N(hoge) cerr<<" "<<(hoge)<<endl;
#define DBG cerr<<"!"<<endl;
#define BITLE(n) (1LL<<((ll)n))
#define BITCNT(n) (__builtin_popcountll(n))
#define SUBS(s,f,t) ((s).substr((f)-1,(t)-(f)+1))
#define ALL(a) (a).begin(),(a).end()
using namespace std;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  double a,b,x;cin>>a>>b>>x;
  double ho = 2.0*x/(a*a);
  double ans;
  if(ho > b){
    ans = atan(2.0*(b-x/(a*a))/a);
  }else if(ho == b){
    ans = atan(b/a);
  }else{
    ans = atan(a*b*b*/(2*x));
  }
  printf("%.10f\n",ans*180.0/acos(-1));
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:22: error: expected primary-expression before '/' token
   32 |     ans = atan(a*b*b*/(2*x));
      |                      ^
Language: C++

#include <iostream>
using namespace std;

#include <string>
#include <vector>
#include <algorithm>

const double PI = 3.14;


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

	double waH = c / ( a * a );
	double dif = b - waH;

	double ang = 90.0 - ( atan2( a/2, dif ) * ( 180 / PI ) );


	cout << ang << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:31: error: 'atan2' was not declared in this scope
   19 |         double ang = 90.0 - ( atan2( a/2, dif ) * ( 180 / PI ) );
      |                               ^~~~~
Language: C++

#include <iostream>
using namespace std;

#include <string>
#include <vector>
#include <algorithm>

const double PI = 3.14;


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

	double waH = c / ( a * a );
	double dif = b - waH;

	double ang = 90 - atan2( a/2, dif ) * ( 180 / PI );


	cout << ang << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:27: error: 'atan2' was not declared in this scope
   19 |         double ang = 90 - atan2( a/2, dif ) * ( 180 / PI );
      |                           ^~~~~
Language: C++

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

int main(){
	cin.tie(0);
   	ios::sync_with_stdio(false);
	
	double a,b,x;
	cin>>a>>b>>x;
    double S = a*a;
    double V = S*b;
    double ans;
    
    if(x*2<V){
        ans = atan((V/(2*x))/M_PI_2*90;
    }else{
        ans = atan((2*(V-x))/pow(a,3))/M_PI_2*90;
        // cout<<atan((2*(V-x))/pow(a,3))<<"\n";
    }
    // cout<<M_PI_4<<"\n";
    cout<<ans<<"\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:39: error: expected ')' before ';' token
   17 |         ans = atan((V/(2*x))/M_PI_2*90;
      |                   ~                   ^
      |                                       )
Language: C

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

int main(){
  int a,b,x;
  double bottle_max;
  double tan,tan_dig;
  double pi=3.141592653589793;
  
  scanf("%d %d %d",&a,&b,&x);
  if(a*a*b==x){
    printf("0.0000000000");
    return 0;
  }
  
  bottle_max=((double)a*a*b);
  if(bottole_max<=x*2){
    tan=(2*(bottle_max-x))/(a*a*a);
    tan_dig= tan*180.0/(atan(1.0)*4.0);
    printf("%.10f",tan_dig);
  } else {
    tan=sqrt((2.0*x)/(b*b*b));
    tan_dig= tan*180.0/(atan(1.0)*4.0);
    printf("%.10f",tan_dig);
  }
}
  
  


Compiler output:
main.c: In function 'main':
main.c:18:6: error: 'bottole_max' undeclared (first use in this function); did you mean 'bottle_max'?
   18 |   if(bottole_max<=x*2){
      |      ^~~~~~~~~~~
      |      bottle_max
main.c:18:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
  int a,b,x;
  int bottle_max;
  double tan,tan_dig;
  
  scanf("%d %d %d",&a,&b,&x);
  if(a*a*b==x){
    printf("0.000000");
    return 0;
  }
  
  bottle_max=(a*a*b);
  tan=(2*bottle_max-x)/(a*a);
  tan_dig= atan(tan)*180.0/PI;
  
  printf("%.6f",tan_dig);
}
  
  

Compiler output:
main.c: In function 'main':
main.c:18:28: error: 'PI' undeclared (first use in this function)
   18 |   tan_dig= atan(tan)*180.0/PI;
      |                            ^~
main.c:18:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

		IDENTIFICATION DIVISION.
        PROGRAM-ID. AtCoder.
      
        ENVIRONMENT DIVISION.
      
        DATA DIVISION.
        WORKING-STORAGE SECTION.
        01 INP PIC X(100).
        01 A PIC 9(05)V9(15).
        01 B PIC 9(05)V9(15).
      	01 C PIC 9(05)V9(15).
      	01 E PIC 9(05)V9(15).
      	01 D PIC ZZZZ9.9(15).
      	01 X PIC 9(15).
      	01 Y PIC 9(15).
      	01 W PIC 9(15).
      	01 F PIC 9(10).
      	01 t PIC 9(15).
	    01 temp1 PIC 9(15).
        01 temp2 PIC 9(15).
      	01 temp3 PIC 9(15).
        01 N PIC 9(15).
        PROCEDURE DIVISION.
      	MAIN.
      		ACCEPT INP.
			PERFORM VARYING temp1 FROM 1 BY 1
            UNTIL INP(temp1:1) = SPACE
        	END-PERFORM.
        	SUBTRACT 1 FROM temp1.
        	MOVE INP(1:temp1) TO X.
        	ADD 2 TO temp1.
        	PERFORM VARYING temp2 FROM temp1 BY 1
            UNTIL INP(temp2:1) = SPACE
        	END-PERFORM.
        	COMPUTE N = temp2 - temp1.
        	MOVE INP(temp1:N) TO Y.
      		ADD 1 TO temp2.
      		PERFORM VARYING temp3 FROM temp2 BY 1
            UNTIL INP(temp3:1) = SPACE
        	END-PERFORM.
        	COMPUTE N = temp3 - temp2.
        	MOVE INP(temp2:N) TO W.
      		MOVE X to A.
      		MOVE Y to B.
      		MOVE W to C.
       		COMPUTE C = C / A.
      		IF C >= A * B / 2.0 THEN
      			COMPUTE C = C - A * B / 2.0
      			COMPUTE C = 2.0 * C / A
      			COMPUTE C = B - C
      			COMPUTE C = FUNCTION ATAN(C/A)
      		ELSE
      			COMPUTE C = 2.0 * C / B
      			COMPUTE C = FUNCTION ATAN(B/C)
      		END-IF.
      		COMPUTE E = FUNCTION ATAN(1.0) * 4.
      		COMPUTE C = C * 180.0 / E.
      		MOVE C to D.
      		DISPLAY D.
		STOP RUN.

Compiler output:
a.cc:1:17: error: 'IDENTIFICATION' does not name a type
    1 |                 IDENTIFICATION DIVISION.
      |                 ^~~~~~~~~~~~~~
Language: C

#include <stdio.h>

a, b, x;
double s, t, ans1, ans2;

main () {
	scanf("%d %d %d", &a, &b, &x);
	s = ((double)x) / a;
	
	// shita sankaku
	t = s * 2 / b;
	if(t<=a){
	  printf("%lf\n", 90-atan2(t, b)*360/2/M_PI);
	  return 0;
	}
	
	// ue sankaku
	t = (a*b - s) * 2 / a;
	printf("%.7lf\n",atan2(t, a)*360/2/M_PI);
}


Compiler output:
main.c:3:1: warning: data definition has no type or storage class
    3 | a, b, x;
      | ^
main.c:3:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:3:4: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
    3 | a, b, x;
      |    ^
main.c:3:7: error: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
    3 | a, b, x;
      |       ^
main.c:6:1: error: return type defaults to 'int' [-Wimplicit-int]
    6 | main () {
      | ^~~~
main.c: In function 'main':
main.c:13:30: error: implicit declaration of function 'atan2' [-Wimplicit-function-declaration]
   13 |           printf("%lf\n", 90-atan2(t, b)*360/2/M_PI);
      |                              ^~~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'atan2'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:13:30: warning: incompatible implicit declaration of built-in function 'atan2' [-Wbuiltin-declaration-mismatch]
   13 |           printf("%lf\n", 90-atan2(t, b)*360/2/M_PI);
      |                              ^~~~~
main.c:13:30: note: include '<math.h>' or provide a declaration of 'atan2'
main.c:13:48: error: 'M_PI' undeclared (first use in this function)
   13 |           printf("%lf\n", 90-atan2(t, b)*360/2/M_PI);
      |                                                ^~~~
main.c:13:48: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:26: warning: incompatible implicit declaration of built-in function 'atan2' [-Wbuiltin-declaration-mismatch]
   19 |         printf("%.7lf\n",atan2(t, a)*360/2/M_PI);
      |                          ^~~~~
main.c:19:26: note: include '<math.h>' or provide a declaration of 'atan2'
Language: C++

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

int main(){
  int a,b,x;
  cin >> a >> b >> x;
  double s = x/a;
  if(s>=(a*b)/2){
    double h = 2*(a*b-s)/a;
    double rad = atan2(h,a);
  }else{
    double h = (2*s)/b;
    double rad = atan2(b,h);
  }
  double PI = acos(-1);
  double ans = rad/PI*180;
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:16: error: 'rad' was not declared in this scope; did you mean 'read'?
   18 |   double ans = rad/PI*180;
      |                ^~~
      |                read
Language: C++

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

const long double PI = (acos(-1));
const long double EPS = 0.0000000001;

long double a, b, x;

long double f(long double a, long double b, long double theta) {
    if(theta > PI / 2.0 - EPS) {
        return 0.0;
    }
    long double ret;
    if(a * tan(theta) <= b) {
        ret = a * a * b - a * a * a * tan(theta) / 2.0;
    } else {
        ret = b * b / tan(theta) * a / 2.0;
    }
    return ret;
}


int main() {
    cin >> a >> b >> x;
  	long double ok = PI / 2.0;
    long double ng = 0.0;
    for(int _ = 1; _ <= 100000; _++) {
        long double mid = (ok + ng) / 2.0;
        if(f(a, b, mid) < x) ok = mid;
        else ng = mid;
    }
    cout << fixed << setprecision(10) << ok / PI * 180 << endl;
    return;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   34 |     return;
      |     ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
int main(){
    int a,b,x;
    cin >>a >>b >>x;
    double rad;
    double S = x/a;

    if (x>= a*a*b/2){
    rad= atan(2*(a*b-S)/(a^2));
    }else{
        rad = atan(b^2/(2*S));
    }
    double ang = rad *360 / (2* M_PI);
    cout << ang << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: invalid operands of types 'int' and 'double' to binary 'operator^'
   13 |         rad = atan(b^2/(2*S));
      |                    ~^~~~~~~~
      |                    |  |
      |                    |  double
      |                    int
Language: C++

#include <iostream>
#include<vector>
#include<algorithm>
#include <queue>
#include <string>
#include <set>
#include <bitset>
#include<iomanip>

using namespace std;
#define ff(ii,nn,mm) for(int ii=nn;ii<mm;ii++)
#define i64 int64_t
#define tos(x) to_string(x)

int main() {
	double a, b, x;
	cin >> a >> b >> x;
	double c = 0;
	double ans = 0;
	double tan = 0;
	if ((x / a) > b* a/2) {
		//cout << "paturn a" << endl;
		c = 2 * (b * a - (x / a)) / a;
		tan = c / a;
		//cout << "tan=" << tan << endl;
		ans = atan(c / a)*180/3.14159265359;
	}
	else {
		//cout << "paturn b" << endl;
		c = 2*(x / a)/b;
		tan = b / c;
		//cout << "tan=" << tan << endl;
		ans = atan(b / c)*180/3.14159265359;
	}
	cout << setprecision(10) << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:23: error: 'atan' was not declared in this scope; did you mean 'tan'?
   26 |                 ans = atan(c / a)*180/3.14159265359;
      |                       ^~~~
      |                       tan
a.cc:33:23: error: 'atan' was not declared in this scope; did you mean 'tan'?
   33 |                 ans = atan(b / c)*180/3.14159265359;
      |                       ^~~~
      |                       tan
Language: C

//omajinai   c
#include<stdio.h>
#include<math.h>
#include<string.h>
int main(){
  int a,b,x;
  scanf("%d",&a);
  scanf("%d",&b);
  scanf("%d",&x);
  
  
  int bot_area=a*a;
  long double bot_diag=a*sqrt(2)
  int box_vol=bot_area*b;
  int dif =boxvol-x;
  int cone_hei=3*box_vol/bot_area;
  long double tan_theta=cone_hei/bot_diag;
  long double theta=atan(tan_theta);
  long double degree=180*theta/M_PI;
  
  printf("%f\n",degree);
  
}

Compiler output:
main.c: In function 'main':
main.c:14:3: error: expected ',' or ';' before 'int'
   14 |   int box_vol=bot_area*b;
      |   ^~~
main.c:15:12: error: 'boxvol' undeclared (first use in this function)
   15 |   int dif =boxvol-x;
      |            ^~~~~~
main.c:15:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:18: error: 'box_vol' undeclared (first use in this function)
   16 |   int cone_hei=3*box_vol/bot_area;
      |                  ^~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define fs first
#define sc second
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<char> vc;
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

void solve(){
   cout<<PI/2-atan(a/b);
}

int main(){
    cout<<std::fixed<<std::setprecision(10);
    ios::sync_with_stdio(false);
    cin.tie(0);
    solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:18:20: error: 'a' was not declared in this scope
   18 |    cout<<PI/2-atan(a/b);
      |                    ^
a.cc:18:22: error: 'b' was not declared in this scope
   18 |    cout<<PI/2-atan(a/b);
      |                      ^
Language: C++

typedef long long ll;
#define mod 1000000007

const long double PI = acos(-1);
 
ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }
ll lcm(ll a, ll b) { return a * b / gcd(a, b); }

bool IsPrime(ll num){
    if (num < 2) return false;
    else if (num == 2) return true;
    else if (num % 2 == 0) return false; // 偶数はあらかじめ除く
    double sqrtNum = sqrt(num);
    for (int i = 3; i <= sqrtNum; i += 2){
        if (num % i == 0){
            // 素数ではない
            return false;
        }
    }
    // 素数である
    return true;
}

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

    double s = x / a;
    if (s >= a * b / 2){
        double h = ((a * b - s) * 2) / a;
        rad = atan2(h, a);
    }else{
        double w = (2 * s) / b;
        rad = atan2(b, w);
    }
    ans = rad/(2*PI)*360;
    printf("%.10f\n", ans);
    return 0;
}

Compiler output:
a.cc:4:24: error: 'acos' was not declared in this scope
    4 | const long double PI = acos(-1);
      |                        ^~~~
a.cc: In function 'bool IsPrime(ll)':
a.cc:13:22: error: 'sqrt' was not declared in this scope
   13 |     double sqrtNum = sqrt(num);
      |                      ^~~~
a.cc: In function 'int main()':
a.cc:27:5: error: 'cin' was not declared in this scope
   27 |     cin >> a >> b >> x;
      |     ^~~
a.cc:32:15: error: 'atan2' was not declared in this scope
   32 |         rad = atan2(h, a);
      |               ^~~~~
a.cc:35:15: error: 'atan2' was not declared in this scope
   35 |         rad = atan2(b, w);
      |               ^~~~~
a.cc:38:5: error: 'printf' was not declared in this scope
   38 |     printf("%.10f\n", ans);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | typedef long long ll;
Language: C++

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

int main()
{
  double a, b, x;
  cin >> a >> b >> x;
  double ans = sqrt(sqrt(a * a + b * b - (x * x / a / a / a / a) - a) * sqrt(a * a + b * b - (x * x / a / a / a / a) - a) + (b - x / a / a) * (b - x / a / a)) * 180 / 3.141592653589793;
  cout << fixed << setprecision(10) << ans << endl;
  return 0;
}


Compiler output:
a.cc:3:13: error: 'i64' does not name a type
    3 | using i64 = i64;
      |             ^~~
Language: C++

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

int main()
{
  const long double pi = acos(-1);
  
  int a, b, x;
  cin >> a >> b >> x;

  long double child, mother, ans;
  if(a*a*b/2.0 <= x)
    {
      child = 2*(a*a*b-x);
      mother = a*a*a;

      ans = atan(child / mother);
    }
  else
    {
      child = 2*x;
      
      mother = a*b*b;
      
      ans = atan(child / mother);
      
      ans = pi/2 - ans;

    }

  long double theta = 180.0*ans / pi;

  cout<<setprecision(15);
  
  cout << theta << endl;

  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:36:9: error: 'setprecision' was not declared in this scope
   36 |   cout<<setprecision(15);
      |         ^~~~~~~~~~~~
a.cc:5:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    4 | #include<cmath>
  +++ |+#include <iomanip>
    5 | using namespace std;
Language: C++

#include <iostream>
#include <math.h>
#define PI 3.14159265358979
using namespace std;

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

    
    if (x > a*a*b/2){
        ans = atan((a*a*b-x)/(a*a*a)*2.0)*180/PI;
    }
    else{
        ans = atan((a*b*b)/(2.0*x))*180/PI;
    }

    cout << fixed << setprecision(10) << ans;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:22: error: 'setprecision' was not declared in this scope
   18 |     cout << fixed << setprecision(10) << ans;
      |                      ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <math.h>
  +++ |+#include <iomanip>
    3 | #define PI 3.14159265358979
Language: C

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

int main(void){
	double a, b, x;
	scanf("%lf %lf %lf" , &a, &b, &x)；
	if(0.5 * a * a *b >= x){
		double deg = atan((a * b * b)/(2 * x)) * 180 / M_PI;
		printf("%f", deg);
	}
	else{
		double deg = atan(2*(b-x/(a*a))/a) * 180 / M_PI;
		printf("%f", deg);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:42: error: expected ';' before '\U0000ff1b'
    6 |         scanf("%lf %lf %lf" , &a, &b, &x)；
      |                                          ^~
      |                                          ;
Language: C

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

int main(void){
	double a, b, x;
	scanf("%lf %lf %lf" , &a, &b, &x)
	if(0.5 * a * a *b >= x){
		double deg = atan((a * b * b)/(2 * x)) * 180 / M_PI;
		printf("%f", deg);
	}
	else{
		double deg = atan(2*(b-x/(a*a))/a) * 180 / M_PI;
		printf("%f", deg);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:42: error: expected ';' before 'if'
    6 |         scanf("%lf %lf %lf" , &a, &b, &x)
      |                                          ^
      |                                          ;
    7 |         if(0.5 * a * a *b >= x){
      |         ~~
Language: C++

#include<iostream>
#include<iomanip>
#include<math.h>
using namespace std;
 
int main() {
  long long double a, b, x;
  cin >> a;
  cin >> b;
  cin >> x;
  long long double res;
  if (x < a * b * b / 2) {
    res = atan((a * b * b) / (2.0 * x));
  } else {
    res = atan((2.0 * (a * a * b - x)) / (a * a * a));
  }
  cout << fixed << setprecision(10) << res * 180.0 / acos(-1) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'long long' specified with 'double'
    7 |   long long double a, b, x;
      |        ^~~~
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:7:8: error: 'long long' specified with 'double'
a.cc:11:8: error: 'long long' specified with 'double'
   11 |   long long double res;
      |        ^~~~
Language: C++

#include <iostream>
#include<iomanip>
#include<cmath>

using namespace std;



void main(){
    double pi=acos(-1),rad=0,deg=0,l=0,x,a,b,s=0;

    cin>>a>>b>>x;
    s=2*(x/(b*a));
    if(s>=a){
        l=-2*((x/(a*a))-b);
        rad=atan(l/a);
    }else{
        rad=atan(b/s);
    }
    deg=rad*180/pi;
    cout<<deg;
}

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

#include<iostream>
#include<math.h>
using namespace std;
 
int main() {
  long double a, b, x;
  cin >> a;
  cin >> b;
  cin >> x;
  long double res;
  if (x < a * b * b / 2) {
    res = atan((a * b * b) / (2 * x));
  } else {
    res = atan((2 * (a * a * b - x)) / (a * a * a));
  }
  cout << setprecision<< res * 180 / M_PI << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'setprecision' was not declared in this scope
   16 |   cout << setprecision<< res * 180 / M_PI << endl;
      |           ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include<math.h>
  +++ |+#include <iomanip>
    3 | using namespace std;