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

#include<iostream>
#include<cmath>
const long double EPS = 0.0000000001;

int main(){
  double a,b,x;
  cin >> a,b,x;
  double x_hight;
  x_hight= x / (a*a);
  double theta;
  double delta;
  int flag=1;
  while(flag){
    theta = theta + EPS;
    delta = a / (tan(theta));
    if(x_hight+delta >= b){
      cout << theta<<endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> 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:17:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |       cout << theta<<endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |       cout << theta<<endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

import java.util.*;

public class Main {

    static Scanner sc = new Scanner(System.in);

    public static void main(String[] args) {
        double A = sc.nextInt();
        double B = sc.nextInt();
        double X = sc.nextInt();
        double s = X / A;
        double ans;
        if (s * 2 < A * B) {
            double h = s * 2 / B;
            ans = Math.PI / 2 - Math.atan2(h, B);
        } else {
            double h = (A * B - s) * 2 / A;
            ans = Math.atan2(h, A);
        }
        System.out.printf("%.9f\n", ans * 180 / Math.PI);
    }
}


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<stdio.h>
double A, B, X;
//---------------------------------------------------------------------------------------------------
void _main() {
    cin >> A >> B >> X;

    double half = A * A * B / 2;
    double ans;

    if (X < half) ans = atan(A * B * B / (2.0 * X));
    else ans = atan((2.0 * B - 2.0 * X / (A * A)) / A);

    ans = ans / PI * 180;

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

Compiler output:
main.c: In function '_main':
main.c:5:5: error: 'cin' undeclared (first use in this function)
    5 |     cin >> A >> B >> X;
      |     ^~~
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:25: error: implicit declaration of function 'atan' [-Wimplicit-function-declaration]
   10 |     if (X < half) ans = atan(A * B * B / (2.0 * X));
      |                         ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'atan'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | double A, B, X;
main.c:10:25: warning: incompatible implicit declaration of built-in function 'atan' [-Wbuiltin-declaration-mismatch]
   10 |     if (X < half) ans = atan(A * B * B / (2.0 * X));
      |                         ^~~~
main.c:10:25: note: include '<math.h>' or provide a declaration of 'atan'
main.c:11:16: warning: incompatible implicit declaration of built-in function 'atan' [-Wbuiltin-declaration-mismatch]
   11 |     else ans = atan((2.0 * B - 2.0 * X / (A * A)) / A);
      |                ^~~~
main.c:11:16: note: include '<math.h>' or provide a declaration of 'atan'
main.c:13:17: error: 'PI' undeclared (first use in this function)
   13 |     ans = ans / PI * 180;
      |                 ^~
Language: C++

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

int main() {
	int a,b,x,h,s;
	cin >> a >> b >> x;
	s = x/a;
	if(s>=a*b/2){
		h=((ab-s)*2)/a;
		cout << atan2(h,a) << endl;
	}else{
		h=((ab-s)*2)/b;
		cout << atan2(h,b) << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'ab' was not declared in this scope; did you mean 'b'?
    9 |                 h=((ab-s)*2)/a;
      |                     ^~
      |                     b
a.cc:12:21: error: 'ab' was not declared in this scope; did you mean 'b'?
   12 |                 h=((ab-s)*2)/b;
      |                     ^~
      |                     b
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: expected ';' before 'a'
   13 |   cin a>>b>>c;
      |      ^~
      |      ;
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected ';' before 'a'
   11 |   cin a>>b>>c;
      |      ^~
      |      ;
a.cc:13:8: error: 'x' was not declared in this scope
   13 |   if(2*x <= a*a*b){
      |        ^
a.cc:15:52: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |     cout << 180*atan2((a,((2*a*a*b-2*c)/(a*a)))/pi <<endl;
      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
 
main(){
  	int a,b,x;
  	double ans;
	cin >> a >> b >> x;
	if(a*a*b/2 >= x){
      ans = (3.0 * x) / (a * b);
      cout << acos(a/ans);
    }
  	else{
      ans = -2.0 * x + (2.0*a*a*b);
      cout << atan(a/ans)#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
 
main(){
  	int a,b,x;
  	double ans;
	cin >> a >> b >> x;
	if(a*a*b/2 >= x){
      ans = (3.0 * x) / (a * b);
      cout << acos(a/ans)/(acos(-1))*180;
    }
  	else{
      ans = -2.0 * x + (2.0*a*a*b);
      cout << atan(a/ans)/(acos(-1))*180;
    }
  
    
  
 
  
}


Compiler output:
a.cc:15:26: error: stray '#' in program
   15 |       cout << atan(a/ans)#include <bits/stdc++.h>
      |                          ^
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:26: error: expected ';' before 'include'
   15 |       cout << atan(a/ans)#include <bits/stdc++.h>
      |                          ^~~~~~~~
      |                          ;
a.cc:19:7: error: expected ';' before '{' token
   19 | main(){
      |       ^
      |       ;
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:13:13: note: to match this '{'
   13 |         else{
      |             ^
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:5:7: note: to match this '{'
    5 | main(){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
 
main(){
  	int a,b,x;
  	double ans;
	cin >> a >> b >> x;
	if(a*a*b/2 >= x){
      ans = (3.0 * x) / (a * b);
      cout << acos(a/ans);
    }
  	else{
      ans = -2.0 * x + (2.0*a*a*b);
      cout << atan(a/ans)#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
 
main(){
  	int a,b,x;
  	double ans;
	cin >> a >> b >> x;
	if(a*a*b/2 >= x){
      ans = (3.0 * x) / (a * b);
      cout << acos(a/ans)/(acos(-1))*180;
    }
  	else{
      ans = -2.0 * x + (2.0*a*a*b);
      cout << atan(a/ans)/(acos(-1))*180;
    }
  
    }
  
 
  
}

Compiler output:
a.cc:15:26: error: stray '#' in program
   15 |       cout << atan(a/ans)#include <bits/stdc++.h>
      |                          ^
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:15:26: error: expected ';' before 'include'
   15 |       cout << atan(a/ans)#include <bits/stdc++.h>
      |                          ^~~~~~~~
      |                          ;
a.cc:19:7: error: expected ';' before '{' token
   19 | main(){
      |       ^
      |       ;
a.cc:36:2: error: expected '}' at end of input
   36 | }
      |  ^
a.cc:5:7: note: to match this '{'
    5 | main(){
      |       ^
Language: C++

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

main(){
  	int a,b,x;
  	double ans;
	cin >> a >> b >> x;
	if(a*a*b/2 >= x){
      ans = (3.0 * x) / (a * b);
      acos << acos(a/ans);
    }
  	else{
      ans = -2.0 * x + (2.0*a*a*b);
      cout << atan(a/ans);
    }
  
  
  
}

Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:11:12: error: invalid operands of types '<unresolved overloaded function type>' and 'double' to binary 'operator<<'
   11 |       acos << acos(a/ans);
      |       ~~~~~^~~~~~~~~~~~~~
Language: Java

import java.util.Scanner;

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();
		sc.close();
		double res = 0.0;

		if(a*a*b/2.0 <= x) {
			BigDecimal atan = new BigDecimal(Math.atan(2*(a*a*b-x)/(a*a*a)));
			res = atan.doubleValue();
		}else {
			BigDecimal atan = new BigDecimal(Math.PI / 2.0 - Math.atan(2 * x / (a*b*b)));
			res = atan.doubleValue();
		}

		System.out.println(res * 180 / Math.PI);
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
			BigDecimal atan = new BigDecimal(Math.atan(2*(a*a*b-x)/(a*a*a)));
			^
  symbol:   class BigDecimal
  location: class Main
Main.java:14: error: cannot find symbol
			BigDecimal atan = new BigDecimal(Math.atan(2*(a*a*b-x)/(a*a*a)));
			                      ^
  symbol:   class BigDecimal
  location: class Main
Main.java:17: error: cannot find symbol
			BigDecimal atan = new BigDecimal(Math.PI / 2.0 - Math.atan(2 * x / (a*b*b)));
			^
  symbol:   class BigDecimal
  location: class Main
Main.java:17: error: cannot find symbol
			BigDecimal atan = new BigDecimal(Math.PI / 2.0 - Math.atan(2 * x / (a*b*b)));
			                      ^
  symbol:   class BigDecimal
  location: class Main
4 errors
Language: C++

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

using namespace std;
#define For(i, a, b) for(long long i = (a); i < (b); ++i)
#define rep(i, n) for(long long i = 0; i < (n); ++i)

#define PI 3.141592653589793

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

	cin >> a >> b >> x;

	long double h = x / pow(a, 2.0);

	long double ans;

	if (h <= (b / 2)) {
		ans = 90 - (atan(((2 * x) / (a * b)) / b) * 180.0 / PI);
	}
	else {
		long double empx = (pow(a, 2.0) * b) - x;

		ans = atan(((2 * empx) / pow(a, 2.0)) / a) * 180.0 / PI;
	}

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:26: error: 'setprecision' was not declared in this scope
   31 |         cout << fixed << setprecision(10) << ans << endl;
      |                          ^~~~~~~~~~~~
a.cc:5:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    4 | #include <math.h>
  +++ |+#include <iomanip>
    5 |
Language: Java

import java.util.*;

public class D2{

    static double x;

    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);

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

        double ok = Math.PI / 2.0;
        double ng = 0;
        int count = 0;
        for(int i = 0; i < 27 ; i++){
            double mid = (ok + ng) / 2.0;
            if(f(a, b, mid) < x) ok = mid;
            else ng = mid;
        }

        System.out.println(Math.toDegrees(ok));
    }

    static double f(double a, double b, double t){

        if(t > Math.PI / 2.0){
            return 0.0;
        }
        double ans;
        if(x >= a * a * b / 2){
            ans = a * a * b - a * a * a * Math.tan(t) / 2.0;
        }else{
            ans = a * b * b / Math.tan(t) / 2.0;
        }

        return ans;

    }

}


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

#include <bits/stdc++.h>
#include <cassert>
#include <algorithm>
#include <functional>
#include <math.h>
 
const long double PI = (acos(-1));
 
using namespace std;
 
int main() {
  long double a, b, x;
  cin >> a >> b >> x;
 
  if (a*a*b/2 > x) {
    long double t = (a*b*b)/(2*x);
    cout << atan(t) * 180.0/PI << endl;
  } else {
    long double t = 2.0 * ((a*a*b-x)/(a*a*a));
    cout << atan(t) * 180.0/PI << endl;
  }
  
}
#include <bits/stdc++.h>
#include <cassert>
#include <algorithm>
#include <functional>
#include <math.h>

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

using namespace std;

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

  if (a*a*b/2 > x) {
    long double t = (a*b*b)/(2*x);
    cout << atan(t) * 180.0/PI << endl;
  } else {
    long double t = 2.0 * ((a*a*b-x)/(a*a*a));
    cout << atan(t) * 180.0/PI << endl;
  }
  
}


Compiler output:
a.cc:30:19: error: redefinition of 'const long double PI'
   30 | const long double PI = (acos(-1));
      |                   ^~
a.cc:7:19: note: 'const long double PI' previously defined here
    7 | const long double PI = (acos(-1));
      |                   ^~
a.cc:34:5: error: redefinition of 'int main()'
   34 | int main() {
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main() {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <cassert>
#include <algorithm>
#include <functional>
#include <math.h>
 
const long double PI = (acos(-1));
 
using namespace std;
 
int main() {
  long double a, b, x;
  cin >> a >> b >> x;
 
  if (a*a*b/2 > x) {
    long double t = (a*b*b)/(2*x);
    cout << atan(t) * 180.0/PI << endl;
  } else {
    long double t = 2.0 * ((a*a*b-x)/(a*a*a));
    cout << atan(t) * 180.0/PI << endl;
  }
  
}
#include <bits/stdc++.h>
#include <cassert>
#include <algorithm>
#include <functional>
#include <math.h>

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

using namespace std;

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

  if (a*a*b/2 > x) {
    long double t = (a*b*b)/(2*x);
    cout << atan(t) * 180.0/PI << endl;
  } else {
    long double t = 2.0 * ((a*a*b-x)/(a*a*a));
    cout << atan(t) * 180.0/PI << endl;
  }
  
}
提出情報
提出日時	

Compiler output:
a.cc:30:19: error: redefinition of 'const long double PI'
   30 | const long double PI = (acos(-1));
      |                   ^~
a.cc:7:19: note: 'const long double PI' previously defined here
    7 | const long double PI = (acos(-1));
      |                   ^~
a.cc:34:5: error: redefinition of 'int main()'
   34 | int main() {
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main() {
      |     ^~~~
a.cc:47:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   47 | 提出情報
      | ^~~~~~~~
Language: C++

#include<bits/stdc++.h>
#include<math.h>
#include<iostream>
#include<cmath>
#include<limits>
#include<iomanip>

using db = long double;

 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 


signed main() {
  db a,b,x;
    cin>>a>>b>>x;
  db t=(2*a*a*b-2*x)/a/a;
  db ans=a/t;
  if(t>b){
    t=2*x/a/b;
    ans=t/b;
  }
  db pi=3.14159265;
  db eight=180;
  db nine=90;
  cout<<setprecision(9)<<nine-atanl(ans)*eight/pi<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   21 |     cin>>a>>b>>x;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:31:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |   cout<<setprecision(9)<<nine-atanl(ans)*eight/pi<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:9: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
   31 |   cout<<setprecision(9)<<nine-atanl(ans)*eight/pi<<endl;
      |         ^~~~~~~~~~~~
      |         std::setprecision
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
a.cc:31:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   31 |   cout<<setprecision(9)<<nine-atanl(ans)*eight/pi<<endl;
      |                                                    ^~~~
      |                                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
#include<math.h>
#include<iostream>
#include<cmath>
#include<limits>
#include<iomanip>

using db = long double;

 
/****************************************\
| Thank you for viewing my code:)        |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka                  | 
\****************************************/
 


signed main() {
  db a,b,x;
    ci(a>>b>>x);
  db t=(2*a*a*b-2*x)/a/a;
  db ans=a/t;
  if(t>b){
    t=2*x/a/b;
    ans=t/b;
  }
  db pi=3.14159265;
  db eight=180;
  db nine=90;
  cout<<setprecision(9)<<nine-atanl(ans)*eight/pi<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: invalid operands of types 'db' {aka 'long double'} and 'db' {aka 'long double'} to binary 'operator>>'
   21 |     ci(a>>b>>x);
      |        ~^~~
      |        |  |
      |        |  db {aka long double}
      |        db {aka long double}
a.cc:21:5: error: 'ci' was not declared in this scope
   21 |     ci(a>>b>>x);
      |     ^~
a.cc:31:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |   cout<<setprecision(9)<<nine-atanl(ans)*eight/pi<<endl;
      |   ^~~~
      |   std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:9: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
   31 |   cout<<setprecision(9)<<nine-atanl(ans)*eight/pi<<endl;
      |         ^~~~~~~~~~~~
      |         std::setprecision
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
a.cc:31:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   31 |   cout<<setprecision(9)<<nine-atanl(ans)*eight/pi<<endl;
      |                                                    ^~~~
      |                                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

#define FOR(i, a, b) for(int i = (a); i < (b); ++i)
#define RFOR(i, b, a) for(int i = (b) - 1; i >= (a); --i)
#define REP(i, N) FOR(i, 0, N)
#define RREP(i, N) RFOR(i, N, 0)
#define FILL(A,value) memset(A,value,sizeof(A))
#define endl '\n'

#define ALL(V) V.begin(), V.end()
#define SZ(V) (int)V.size()
#define watch(x) cout << (#x) << " is " << (x) << endl
#define pb push_back
#define mp make_pair
#define Pi 3.14159265358979
#define A first
#define B second

typedef long long ll;
typedef vector <int> vi;
typedef vector<ll> vl;
typedef pair <int, int> pi;
typedef pair <ll, int> pl;
typedef pair <ll, ll> pll;
typedef pair <double, double> pd;

//change these according to prob constraints
const int INF = 0x3f3f3f3f;
const int MAX = 100005;
const int MAX1 = 1005;
const int MAX2 = 105;
const int LEN = 105;
const int BASE = 1000000000;
const double EPS = 1e-7;
const int MOD = 1000000007;
//g++ -std=c++11 your_file.cpp -o your_program

ll mypow(ll a, ll b){
	ll ans=1;
	while(b){
		if(b&1)
			ans=(ans*a)%MOD;
		b/=2;
		a=(a*a)%MOD;
	}
	return ans;
}

int main(void){
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	ifstream in("");
	ofstream out("");
	clock_t begin = clock();
	int a, b, x;
  	cin >> a >> b >> x;
  	double ftop = (double)b - ((double)x / (a * a));
  	cout << atan(ftop / (a / 2)) * 180 / PI << endl;
	clock_t end = clock();
    double esecs = double(end - begin) / CLOCKS_PER_SEC;
    //cout << esecs << " seconds" << endl;
	return 0;	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:60:46: error: 'PI' was not declared in this scope; did you mean 'Pi'?
   60 |         cout << atan(ftop / (a / 2)) * 180 / PI << endl;
      |                                              ^~
      |                                              Pi
Language: C++

import math
a,b,x=input().split()
a=float(a)
b=float(b)
x=float(x)

s=a*a*b

if x <= s/2:
    ans = math.degrees(math.atan(2*x/(a*b*b)))
    print(ans)
else:
    ans = math.degrees(math.atan(a*a*a/(2*(a*a*b-x))))
    print(ans)
   


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++


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

    


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

// #include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <cmath>
#include <numeric>
#include <set>
#include <queue>
#include <cstdio>
#include <stack>
#include <list>
using namespace std;
#define rep(i, n) for(int i=0;i<n;i++)
#define irep(i, n) for(int i=n-1;i>=0;i--)
#define lrep(i, n) for(long long i=0;i<n;i++)
typedef long long ll;
typedef vector<long long> llv;
typedef vector<vector<long long> > llvv;
template <class T> T gcd(T n, T m){return m ? gcd(m, n%m):n;}

int main(){
    double a,b,x;cin>>a>>b>>x;
    double di = 2;
    if(x <= a*a*b/di){
        double ans = atan(a*b*b/di/x)*180/M_PI;
      	printf("%.15f\n", ans);
      	return 0;
    }
    else{
        double ans = cout << atan(di*b/a - di*x/a/a/a)*180/M_PI;
      	printf("%.15f\n", ans);
      	return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:27: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'double' in initialization
   32 |         double ans = cout << atan(di*b/a - di*x/a/a/a)*180/M_PI;
      |                           ^
      |                           |
      |                           std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
Language: C++

// #include <bits/stdc++.h>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <cmath>
#include <numeric>
#include <set>
#include <queue>
#include <cstdio>
#include <stack>
#include <list>
using namespace std;
#define rep(i, n) for(int i=0;i<n;i++)
#define irep(i, n) for(int i=n-1;i>=0;i--)
#define lrep(i, n) for(long long i=0;i<n;i++)
typedef long long ll;
typedef vector<long long> llv;
typedef vector<vector<long long> > llvv;
template <class T> T gcd(T n, T m){return m ? gcd(m, n%m):n;}

int main(){
    double a,b,x;cin>>a>>b>>x;
    double di = 2;
    if(x <= a*a*b/di){
        double ans = atan(a*b*b/di/x)*(double)180/M_PI;
      	printf("%.15f\n", ans);
      	return 0;
    }
    else{
        double ans = cout << atan(di*b/a - di*x/a/a/a)*(double)180/M_PI;
      	printf("%.15f\n", ans);
      	return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:32:27: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'double' in initialization
   32 |         double ans = cout << atan(di*b/a - di*x/a/a/a)*(double)180/M_PI;
      |                           ^
      |                           |
      |                           std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
Language: C++


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

    


Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: 'h' was not declared in this scope
   10 |       cout<<(atan(a/h)*180)/3.14)<<endl;
      |                     ^
a.cc:14:41: error: expected ';' before ')' token
   14 |         cout<<(atan(2*x/(b*b))*180)/3.14)<<endl;
      |                                         ^
      |                                         ;
a.cc:18:17: error: 'd' was not declared in this scope
   18 |     cout<<(atan(d/(2*(b-(x/a*a))))*180)/3.14)<<endl;
      |                 ^
Language: C++


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

    


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a>>b>>x;
      |          ^
a.cc:10:21: error: 'h' was not declared in this scope
   10 |       cout<<(atan(a/h)*180)/3.14)<<endl;
      |                     ^
a.cc:14:41: error: expected ';' before ')' token
   14 |         cout<<(atan(2*x/(b*b))*180)/3.14)<<endl;
      |                                         ^
      |                                         ;
a.cc:18:17: error: 'd' was not declared in this scope
   18 |     cout<<(atan(d/(2*(b-(x/a*a))))*180)/3.14)<<endl;
      |                 ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define MAX_N 100000
#define MAX_M 100000
const int INF = 1e9;
#define PI 3.141592653589793


double CCC(double a,double b,double c){
  double x=((c*2)/a)-b;
  return b-x;
}

double CC(double a,double b,double c){
  return c/b*2;
}

int main(){
  cout << setprecision(20) << std::fixed;
  double a,b,x,tana,min;
  cin>>a>>b>>x;
  if(a*a*b<x*2){
    double xmin=CCC(a,b,x/a);
    tana=a/xmin;
    min=-90.0000000000000000000;
  }
  else{
    double xmin =CC(a,b,x/a);
    tana=minx/b;
    min=0.0000000000000000000000;
  }
  cout<<min+atan(tana) * 180.0 / PI;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:29:10: error: 'minx' was not declared in this scope; did you mean 'min'?
   29 |     tana=minx/b;
      |          ^~~~
      |          min
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define MAX_N 100000
#define MAX_M 100000
const int INF = 1e9;
#define PI 3.141592653589793


double CCC(double a,double b,double c){
  double x=((c*2)/a)-b;
  return b-x;
}

double CC(double a,double b,double c){
  return c/b*2;
}

int main(){
  cout << setprecision(20) << std::fixed;
  double a,b,x,tana,min;
  cin>>a>>b>>x;
  if(a*a*b<x*2){
    double xmin=CCC(a,b,x/a);
    tana=a/xmin;
    min=-90.0000000000000000000;
  }
  else{
    double xmin =CC(a,b,x/a);
    tana=b/minx;
    min=0.0000000000000000000000;
  }
  cout<<min+atan(tana) * 180.0 / PI;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:29:12: error: 'minx' was not declared in this scope; did you mean 'min'?
   29 |     tana=b/minx;
      |            ^~~~
      |            min
Language: C++

#include <iostream>
#include <cmath>
using std::cout;
using std::cin;
using std::endl;

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

    if (x <= a * a * b / 2)
    {
        double rad = atan(x * 2 / (a * b * b));
        degree = 90 - rad * 180 / pi;
    }
    else
    {
        double rad = atan((a * a * b - x) / (a * a * a));
        degree = rad * 180 / pi;        
    }

    cout << std::setprecision(10) << degree << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:18: error: 'setprecision' is not a member of 'std'
   25 |     cout << std::setprecision(10) << degree << endl;
      |                  ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cmath>
  +++ |+#include <iomanip>
    3 | using std::cout;
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <utility>
#include <set>
#include <stack>
#include <climits>
#include <cmath>
 
#define PI 3.141592653689793238
#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define MEMSET(v, h) memset((v), h, sizeof(v))
typedef long long ll;
 
using namespace std;
 
int main(void){
    double a, b, x;
    cin>>a>>b>>x;
    if(a*a*b/2<=x){
        double height = (2*a*a*b-2*x)/(a*a);
        cout << atan(height/a)*180/PI << endl;
    }
    else{
        double height = (x*2)/(b*a);
        cout<<setprecision(20)<<atan(b/height)*180/PI<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:15: error: 'setprecision' was not declared in this scope
   30 |         cout<<setprecision(20)<<atan(b/height)*180/PI<<endl;
      |               ^~~~~~~~~~~~
a.cc:12:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
   11 | #include <cmath>
  +++ |+#include <iomanip>
   12 |
Language: C++

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

using namespace std;
std::cout << std::fixed << std::setprecision(10);

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:7:6: error: 'cout' in namespace 'std' does not name a type
    7 | std::cout << std::fixed << std::setprecision(10);
      |      ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#pragma GCC optimize("Ofast,fast-math,unroll-loops")
 
#include <bits/stdc++.h>
 
#define int ll
//#define double long double
#define endl '\n'
#define all(C) (C).begin(), (C).end()
#define rall(C) (C).rbegin(), (C).rend()
#define mp make_pair 
#define pb emplace_back
#define dbg(x) cerr << #x << " : " << x << endl
#define PI 3.14159265358979
 
using namespace std;
       
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using pii = pair <int, int>;
       
/* 
const ll MAX_MEM = 7e8;
char MEM[MAX_MEM];
ll MEM_POS = 0;
void* operator new(size_t x)
{
    auto ret = MEM + MEM_POS;
    MEM_POS += x;
    assert(MEM_POS < MAX_MEM);
    return ret;
}
void operator delete(void*)
{}
*/
       
template <class T>
istream& operator>> (istream &in, vector <T> &a)
{
    for (auto &i : a)
        in >> i;
    return in;
}
       
template <class T> 
ostream& operator<< (ostream &out, vector <T> a)
{
    for (auto &i : a)
        out << i << ' ';
    return out;
}
       
template <class T, class U>
istream& operator>> (istream &in, pair <T, U> &p)
{
    in >> p.first >> p.second;
    return in;
}
       
template <class T, class U>
ostream& operator<< (ostream &out, pair <T, U> p)
{
    out << p.first << " " << p.second << " ";
    return out;
}
       
inline void Start()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0), cout.tie(0);
    //freopen(".in", "r", stdin);
    //freopen(".out", "w", stdout);
}

signed main()
{
    Start();
    ld a, b, x;
    cin >> a >> b >> x;
    x /= a;
    x *= 2;
    x /= a;
    x -= b;
    ld ang = atan(a / (b - x));
    ang *= 180.0 / 3.14159265358979;
    cout << setprecision(12) << fixed << ang;
    return 0;
}
 

Compiler output:
a.cc:89:1: error: extended character   is not valid in an identifier
   89 |  
      | ^
a.cc:89:1: error: '\U000000a0' does not name a type
   89 |  
      | ^
Language: C++

#include <iostream>
#include <cmath>
using std::cout;
using std::cin;
using std::endl;

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

    if (x <= a * a * b / 2)
    {
        double rad = atan(x * 2 / (a * b * b))
        degree = rad * 180 / pi;
    }
    else
    {
        double rad = atan((a * a * b - x) / (a * a * a));
        degree = rad * 180 / pi;        
    }

    cout << 90 - degree << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: expected ',' or ';' before 'degree'
   17 |         degree = rad * 180 / pi;
      |         ^~~~~~
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long n = sc.nextLong();
    int max = 0;
    for (int i = 1; i < Math.sqrt(n); i++)
      if (n % i == 0)
        max = i;
    System.out.println(max + N / max - 2);
  }
}

Compiler output:
Main.java:11: error: cannot find symbol
    System.out.println(max + N / max - 2);
                             ^
  symbol:   variable N
  location: class Main
1 error
Language: C++

#include<bits/stdc++.h>
 
#define REP(i,s,N) for (int i=s;i<(N); ++i)
#define ALL(x) (x).begin(), (x).end()
typedef long long ll;
using namespace std;

float ans = 0.000000;

int main(){
	ll a,b,x;
	cin >> a >> b >> x;
	ans = atan(a*a*a/(2*(b*a*a-x)));
	
	cout << setprecisions(10) << ans << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 'setprecisions' was not declared in this scope
   15 |         cout << setprecisions(10) << ans << endl;
      |                 ^~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(a)  (a).begin(),(a).end()
#define pb push_back
#define ppb pop_back
#define INF 1e18
typedef long long ll;

using namespace std;

int main(int argc,char* argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);

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


    if (2 * x >= a * a * b)
    {
       long double d;
       d = 2*(a*a*b-x)/a/a;
       cout<<atan(d / a) / M_PI * 180;
    }
    else
    {
        ld h = x * 2	/ a / b ;
//		ans = 90 - atan(h / b) / M_PI * 180;
        cout << (M_PI/2-atan(h/ b)) * 360 / (2 * M_PI) << endl;
    }


    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:29:9: error: 'ld' was not declared in this scope; did you mean 'll'?
   29 |         ld h = x * 2    / a / b ;
      |         ^~
      |         ll
a.cc:31:30: error: 'h' was not declared in this scope
   31 |         cout << (M_PI/2-atan(h/ b)) * 360 / (2 * M_PI) << endl;
      |                              ^
Language: C++

#include<bits/stdc++.h>
#define ll unsigned long long
#define PI 3.141592653589793238
using namespace std;
int main(){
  	double a,b,x;
	cin>>a>>b>>x;
	double num=2.*x/a/b;
	if(num<=a){
		double ans=2.*x/b/a/b;
		printf("%.10lf",(90.-atan(ans)*180./pi));
	}
	else{
		double tmp=2*b-2.*x/a/a;
		double ans=a/tmp;
		printf("%.10lf",(90.-atan(ans)*180./pi));
	}
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:53: error: 'pi' was not declared in this scope; did you mean 'PI'?
   11 |                 printf("%.10lf",(90.-atan(ans)*180./pi));
      |                                                     ^~
      |                                                     PI
a.cc:16:53: error: 'pi' was not declared in this scope; did you mean 'PI'?
   16 |                 printf("%.10lf",(90.-atan(ans)*180./pi));
      |                                                     ^~
      |                                                     PI
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)n;i++)
int main(void){
    cout << fixed << setprecision(10);
    long double a,b,x,ans;cin>>a>>b>>x;
    if(a*b*b/2<x){
        ans = 2*(b-x/(a*a))/a;
        ans = atanf(ans)*180.0/M_PI;
    }
    else{
        ans = a*b*b/(2*x);
        ans = atan2f(ans)*180.0/M_PI;
    }
    
    cout<<ans<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: too few arguments to function 'float atan2f(float, float)'
   13 |         ans = atan2f(ans)*180.0/M_PI;
      |               ~~~~~~^~~~~
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:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:59:1: note: declared here
   59 | __MATHCALL_VEC (atan2,, (_Mdouble_ __y, _Mdouble_ __x));
      | ^~~~~~~~~~~~~~
Language: C

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

#define PI 3.14159265359

int main()
{
    int a, b, x;
    double ans;
    scanf("%d %d %d", &a, &b, &x);
    
        if (x <= (a * a * b) / 2)
        {
            ans = atan(((double)(a * b * b) / (2 * x))) / PI * 180.0;
        }
        else
        {
            ans = atan(2.0*(double)b/(double)a-2.0*(double)x/(double)(a*a*a)) / PI * 180.0;
        }
    }
    
    
    
    printf("%lf", ans);
    return 0;
}

Compiler output:
main.c:27:12: error: expected declaration specifiers or '...' before string constant
   27 |     printf("%lf", ans);
      |            ^~~~~
main.c:27:19: error: unknown type name 'ans'
   27 |     printf("%lf", ans);
      |                   ^~~
main.c:28:5: error: expected identifier or '(' before 'return'
   28 |     return 0;
      |     ^~~~~~
main.c:29:1: error: expected identifier or '(' before '}' token
   29 | }
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: no matching function for call to 'atan2(double)'
    8 | cout << atan2(b/y) <<endl;
      |         ~~~~~^~~~~
In file included from /usr/include/c++/14/math.h:36,
                 from a.cc:2:
/usr/include/c++/14/cmath:1056:5: note: candidate: 'template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::atan2(_Tp, _Up)'
 1056 |     atan2(_Tp __y, _Up __x)
      |     ^~~~~
/usr/include/c++/14/cmath:1056:5: note:   candidate expects 2 arguments, 1 provided
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/bits/requires_hosted.h:31,
                 from /usr/include/c++/14/iostream:38,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:59:1: note: candidate: 'double atan2(double, double)'
   59 | __MATHCALL_VEC (atan2,, (_Mdouble_ __y, _Mdouble_ __x));
      | ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:59:1: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/cmath:154:3: note: candidate: 'constexpr long double std::atan2(long double, long double)'
  154 |   atan2(long double __y, long double __x)
      |   ^~~~~
/usr/include/c++/14/cmath:154:3: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/cmath:150:3: note: candidate: 'constexpr float std::atan2(float, float)'
  150 |   atan2(float __y, float __x)
      |   ^~~~~
/usr/include/c++/14/cmath:150:3: note:   candidate expects 2 arguments, 1 provided
a.cc:10:14: error: no matching function for call to 'atan2(double)'
   10 | cout << atan2(y/a) <<endl;
      |         ~~~~~^~~~~
/usr/include/c++/14/cmath:1056:5: note: candidate: 'template<class _Tp, class _Up> constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::atan2(_Tp, _Up)'
 1056 |     atan2(_Tp __y, _Up __x)
      |     ^~~~~
/usr/include/c++/14/cmath:1056:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:59:1: note: candidate: 'double atan2(double, double)'
   59 | __MATHCALL_VEC (atan2,, (_Mdouble_ __y, _Mdouble_ __x));
      | ^~~~~~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:59:1: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/cmath:154:3: note: candidate: 'constexpr long double std::atan2(long double, long double)'
  154 |   atan2(long double __y, long double __x)
      |   ^~~~~
/usr/include/c++/14/cmath:154:3: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/cmath:150:3: note: candidate: 'constexpr float std::atan2(float, float)'
  150 |   atan2(float __y, float __x)
      |   ^~~~~
/usr/include/c++/14/cmath:150:3: note:   candidate expects 2 arguments, 1 provided
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);     	
		int a = sc.nextInt();
		int b = sc.nextInt();
      	int x = sc.nextInt();
      	double area = a*a;
      	double volume = area*b;
      	double h=0,A=0,B=0;
      	if(x>volume)
        {
          System.out.println("0.0000000000");
        }
      	else
        {
          h = ((volume-x)/b);          
          A = Math.sqrt((a*a)+(h*h));
          B = Math.atan(h/a)*180/Math.PI;
      	  System.out.println(%.10,B);
        }
        
      
    }
}


Compiler output:
Main.java:21: error: illegal start of expression
      	  System.out.println(%.10,B);
      	                     ^
1 error
Language: C++

#include <iostream>
#include <vector>
#include <stack>
#include <string>
#include <cctype>
#include <algorithm>
#include <math.h>

using namespace std;

cout<<fixed<<setprecision(10)
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:11:1: error: 'cout' does not name a type
   11 | cout<<fixed<<setprecision(10)
      | ^~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <cstdio>
using namespace std;
typedef long long ll;

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

int lcm(int a,int b){
    return a*b/gcd(a,b);
}

int main(){
    double a,b,c,d,e,k,l,m,n,o=0,p,q,r,x,y,z,max1=0,ans=0,a1,b1;
    string s,t,u;
    cin>>a>>b>>x;
    if(a*a*b/2<x){
    a1=x/a/a;
    y=2*a1-b;
    b1=b-y;
    ans=b1/a;
    ans=atan(ans);
    cout<<setprecision(10)<<(ans*57.29577951308232)<<endl;
    }
    else if(a*a*b/2==x){
        
    ans=atan(b/a);
    cout<<setprecision(10)<<(ans*57.29577951308232)<<endl;
    }
    else{
     
        c=b*b*a/x/2;
    d=atan(c);
    cout<<setprecision(10)<<d*57.29577951308232<<endl;
    }
    
}






Compiler output:
a.cc: In function 'int main()':
a.cc:29:11: error: 'setprecision' was not declared in this scope
   29 |     cout<<setprecision(10)<<(ans*57.29577951308232)<<endl;
      |           ^~~~~~~~~~~~
a.cc:7:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    6 | #include <cstdio>
  +++ |+#include <iomanip>
    7 | using namespace std;
a.cc:34:11: error: 'setprecision' was not declared in this scope
   34 |     cout<<setprecision(10)<<(ans*57.29577951308232)<<endl;
      |           ^~~~~~~~~~~~
a.cc:34:11: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
a.cc:40:11: error: 'setprecision' was not declared in this scope
   40 |     cout<<setprecision(10)<<d*57.29577951308232<<endl;
      |           ^~~~~~~~~~~~
a.cc:40:11: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <cstdio>
using namespace std;
typedef long long ll;

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

int lcm(int a,int b){
    return a*b/gcd(a,b);
}

int main(){
    double a,b,c,d,e,k,l,m,n,o=0,p,q,r,x,y,z,max1=0,ans=0,a1,b1;
    string s,t,u;
    cin>>a>>b>>x;
    if(a*a*b/2<x){
    a1=x/a/a;
    y=2*a1-b;
    b1=b-y;
    ans=b1/a;
    ans=atan(ans);
    cout<<(ans*57.29577951308232)<<endl;
    }
    else if(a*a*b/2==x){
        
    ans=atan(b/a);
    cout<<(ans*57.29577951308232)<<endl;
    }
    else{
     
        c=b*b*a/x/2;
    d=atan(c);
    cout<<setprecision(10)<<d*57.29577951308232<<endl;
    }
    
}






Compiler output:
a.cc: In function 'int main()':
a.cc:40:11: error: 'setprecision' was not declared in this scope
   40 |     cout<<setprecision(10)<<d*57.29577951308232<<endl;
      |           ^~~~~~~~~~~~
a.cc:7:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    6 | #include <cstdio>
  +++ |+#include <iomanip>
    7 | using namespace std;
Language: C++

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

using namespace std;

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


Compiler output:
a.cc:19:3: error: expected unqualified-id before 'else'
   19 |   else
      |   ^~~~
a.cc:25:1: error: expected declaration before '}' token
   25 | }
      | ^