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

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

int main(){
    cin.tie(0); cout.tie(0);
    ios::sync_with_stdio(false);

    int a, b;
    int x;
    cin >> a >> b >> x;
    cout << fixed << setprecision(8);

    double result;

    // here decides which side we use for calculation
    // if the cube is larger than lsosceles triangle
    if(x/a > 0.5*a*b){
        result = 180 * atan(2.0*(b/a-x/(a*a*a)))/M_PI; // arctangent
    }else{
        result = 180.0 * atan((a*b*b)/2.0*x))/M_PI;
    }

    cout << result << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:45: error: expected ';' before ')' token
   27 |         result = 180.0 * atan((a*b*b)/2.0*x))/M_PI;
      |                                             ^
      |                                             ;
Language: C++

#define _USE_MATH_DEFINES
#include <iostream>
#include <cmath>

constexpr double PI = 3.1415926535;

int main()
{
	using namespace std;

	long double a, b, x;

	cin >> a >> b >> x;

	long double S = x / a;

	long double B = a * b / 2;

	if(S > B)
	{
		long double n = 2 * S / a - b;
		long double t = atanl((b - n) / a);
		cout << atanl((b - (2 * (x / a)) / a - b)) / a) * 180 / M_PI << endl;
	}
	else
	{
		long double n = 2 * S / b;
		long double t = atanl(b / n);
		cout << atanl(b / (2 * (x / a)) / b)) * 180 / M_PI << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:63: error: expected ';' before ')' token
   23 |                 cout << atanl((b - (2 * (x / a)) / a - b)) / a) * 180 / M_PI << endl;
      |                                                               ^
      |                                                               ;
a.cc:29:53: error: expected ';' before ')' token
   29 |                 cout << atanl(b / (2 * (x / a)) / b)) * 180 / M_PI << endl;
      |                                                     ^
      |                                                     ;
Language: Java


import java.util.Scanner;

public class Math {
	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 angle = 0.0;
		if (a * a * b >= 2 * x) {
			angle = Math.atan((a * b * b) / (2 * x));
		} else {
			angle = Math.atan((2 * b / a) - (2 * x / (a * a * a)));
		}
		System.out.println(angle);
		sc.close();
	}
}


Compiler output:
Main.java:4: error: class Math is public, should be declared in a file named Math.java
public class Math {
       ^
Main.java:14: error: cannot find symbol
			angle = Math.atan((a * b * b) / (2 * x));
			            ^
  symbol:   method atan(int)
  location: class Math
Main.java:16: error: cannot find symbol
			angle = Math.atan((2 * b / a) - (2 * x / (a * a * a)));
			            ^
  symbol:   method atan(int)
  location: class Math
3 errors
Language: C++

#include <bits/stdc++.h>
#define PI 3.141592653589793
using namespace std;
 
int main() {
  long double a,b,x,ans;
  cin >> a >> b >> x;
  
  if(pow(a,2)*b-2*x>0)
    ans = (atan(a*b*b/2*x))*180/PI);
  else
    ans = (atan(2*(a*a*b-x)/pow(a,3))*180/PI);
  
  cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected ';' before ')' token
   10 |     ans = (atan(a*b*b/2*x))*180/PI);
      |                                   ^
Language: C++

#include <bits/stdc++.h>
#define PI 3.141592653589793
using namespace std;
 
int main() {
  long double a,b,x,ans;
  cin >> a >> b >> x;
  
  if(pow(a,2)*b-2*x>0)
    ans = (atan(a*b*b/2*x))*180/PI);
  else
    ans = (atan(2*(a*a*b-x)/pow(a,3))*180/PI);
  
  printf("%.10f",ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: expected ';' before ')' token
   10 |     ans = (atan(a*b*b/2*x))*180/PI);
      |                                   ^
Language: C++

#include <bits/stdc++.h>
#define PI 3.141592653589793
using namespace std;
 
int main() {
  long double a,b,x,ans;
  cin >> a >> b >> x;
  
  if(pow(a,2)*b-2*x>0)
    ans = "%.10f",(atan(a*b*b/2*x))*180/PI);
  else
    ans = "%.10f",(atan(2*(a*a*b-x)/pow(a,3))*180/PI);
  
  cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: cannot convert 'const char [6]' to 'long double' in assignment
   10 |     ans = "%.10f",(atan(a*b*b/2*x))*180/PI);
      |           ^~~~~~~
      |           |
      |           const char [6]
a.cc:12:11: error: cannot convert 'const char [6]' to 'long double' in assignment
   12 |     ans = "%.10f",(atan(2*(a*a*b-x)/pow(a,3))*180/PI);
      |           ^~~~~~~
      |           |
      |           const char [6]
Language: C++

#include <bits/stdc++.h>
#define PI 3.141592653589793
using namespace std;
 
int main() {
  long long double a,b,x;
  cin >> a >> b >> x;

  if(pow(a,2)*b-2*x>0)
    printf("%.10f",(atan(a*b*b/2*x))*180/PI);
  else
    printf("%.10f",(atan(2*(a*a*b-x)/pow(a,3))*180/PI));
  
}


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

#include <bits/stdc++.h>
#define PI 3.141592653589793
using namespace std;
 
int main() {
  double a,b,x;
  cin >> a >> b >> x;

  if(pow(a,2)*b-2*x>0)
    printf("%.10f",(atan(a*b*b/2*x))*180/PI);
  else
    printf("%.10f",(atan(2*(a*a*b-x)/pow(a,3))*180/PI);
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:55: error: expected ')' before ';' token
   12 |     printf("%.10f",(atan(2*(a*a*b-x)/pow(a,3))*180/PI);
      |           ~                                           ^
      |                                                       )
Language: Java

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();
    int c = (2 * x) / Math.pow(a, 2) - b;
    if(c >= 0){
      double lengthalpha = b - c;
      double lengthbeta = Math.sqrt(Math.pow(a, 2) + Math.pow(lengthalpha, 2));
      double siny = a / lengthbeta;
      double y = Math.asin(siny);
      double degree = Math.toDegrees(y);
      System.out.println(180 - 90 - degree);
    }
    if(c < 0){
      double lengthganma = 2 * x / (a * b);
      double lengthdelta = ath.sqrt(Math.pow(b,  2) + Math.pow(lengthganma, 2));
      double sinz = lengthganma / lengthdelta;
	  double z = Math.asin(sinz);
	  double degree2 = Math.toDegrees(z);
	  System.out.println(180 - 90 - degree2);
	}
  }
}
      

Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
    int c = (2 * x) / Math.pow(a, 2) - b;
                                     ^
Main.java:20: error: cannot find symbol
      double lengthdelta = ath.sqrt(Math.pow(b,  2) + Math.pow(lengthganma, 2));
                           ^
  symbol:   variable ath
  location: class Main
2 errors
Language: Java

import java.util.*;

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 c = ((2 * x) / Math.pow(a,  2)) - b;
		if(c >= 0) {
		   double lengthalpha = b -c;
		   double lengthbeta = Math.sqrt(Math.pow(a, 2) + Math.pow(b - c, 2));
		   double siny = a / lengthbeta;
		   double y = Math.asin(siny);
		   double degree = Math.toDegrees(y);
		   System.out.println(180 - 90 - degree);
		}else if(c < 0) {
			c = 0;
			double lengthganma = x / (a * b);
			double lengthdelta = Math.sqrt(Math.pow(b,  2) + Math.pow(lengthganma, 2));
			double sinz = lengthganma / lengthdelta;
			double z = Math.asin(sinz);
			double degree2 = Math.toDegrees(z);
			System.out.println(180 - 90 - degree2);
		}
	   }
	}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:26: error: class, interface, enum, or record expected
	}
	^
2 errors
Language: C++

#include <iostream>
#include <iomanip>
#include <algorithm>
using namespace std;

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

long double f(long double a, long double b, long double theta) {
    if (theta > PI / 2.0 - EPS) {
        return 0.0;
    }

    long double res;
    if (a * tan(theta) <= b) {
        res = a * a * b - a * a * a * tan(theta) / 2.0;
    } else {
        res = b * b / tan(theta) * a / 2.0;
    }

    return res;
}

int main() {
    long double a, b, x;
    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 0;
}

Compiler output:
a.cc:6:25: error: 'acos' was not declared in this scope
    6 | const long double PI = (acos(-1));
      |                         ^~~~
a.cc: In function 'long double f(long double, long double, long double)':
a.cc:15:13: error: 'tan' was not declared in this scope
   15 |     if (a * tan(theta) <= b) {
      |             ^~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <stack>
#include <set>
#include <cmath>
#include <stdlib>

#define rep(i,n) for(int i=0; i<(n); i++)
typedef long long ll;
using namespace std;


int main(){
    double a,b,x; cin >> a >> b >> x;
    double S = x/a;
    double PI = acos(-1);
    
    double ans=0;

    if (a*b/2 <= S) {
        double h = 2*(a*b-S)/a;
        double sita = atan(h/a);
        ans = sita/(2*PI)*360;


    }else{
        double h = S*2/b;
        double sita = atan(h/b);
        ans = sita/(2*PI)*360;

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

     
}


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

#include<bits/stdc++.h>
using namespace std;
int main {
  int a;
  int b;
  int x;
  //std::
    cin>>a;
  //std::
  cin>>b;
  //std::
  cin>>x;
  double i=b*b*a/x;
  long double ans=(atan(i)*180)/3.14159265;
  std::cout<<fixed<<setprecision(10)<<ans;
  return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main {
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:10: note: to match this '{'
    3 | int main {
      |          ^
a.cc:8:5: error: 'cin' does not name a type
    8 |     cin>>a;
      |     ^~~
a.cc:10:3: error: 'cin' does not name a type
   10 |   cin>>b;
      |   ^~~
a.cc:12:3: error: 'cin' does not name a type
   12 |   cin>>x;
      |   ^~~
a.cc:13:16: error: 'a' was not declared in this scope
   13 |   double i=b*b*a/x;
      |                ^
a.cc:15:8: error: 'cout' in namespace 'std' does not name a type
   15 |   std::cout<<fixed<<setprecision(10)<<ans;
      |        ^~~~
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:16:3: error: expected unqualified-id before 'return'
   16 |   return 0;
      |   ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main {
  int a;
  int b;
  int x;
  std::cin>>a;
  std::cin>>b;
  std::cin>>x;
  double i=b*b*a/x;
  long double ans=(atan(i)*180)/3.14159265;
  std::cout<<fixed<<setprecision(10)<<ans;
  return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main {
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:10: note: to match this '{'
    3 | int main {
      |          ^
a.cc:7:8: error: 'cin' in namespace 'std' does not name a type
    7 |   std::cin>>a;
      |        ^~~
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:8:8: error: 'cin' in namespace 'std' does not name a type
    8 |   std::cin>>b;
      |        ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:8: error: 'cin' in namespace 'std' does not name a type
    9 |   std::cin>>x;
      |        ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:16: error: 'a' was not declared in this scope
   10 |   double i=b*b*a/x;
      |                ^
a.cc:12:8: error: 'cout' in namespace 'std' does not name a type
   12 |   std::cout<<fixed<<setprecision(10)<<ans;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:3: error: expected unqualified-id before 'return'
   13 |   return 0;
      |   ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main {
  int a,b,x;
  std::cin>>a;
  std::cin>>b;
  std::cin>>x;
  double i=b*b*a/x;
  long double ans=(atan(i)*180)/3.14159265;
  std::cout<<fixed<<setprecision(10)<<ans;
  return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main {
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,x;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:10: note: to match this '{'
    3 | int main {
      |          ^
a.cc:5:8: error: 'cin' in namespace 'std' does not name a type
    5 |   std::cin>>a;
      |        ^~~
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:6:8: error: 'cin' in namespace 'std' does not name a type
    6 |   std::cin>>b;
      |        ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'cin' in namespace 'std' does not name a type
    7 |   std::cin>>x;
      |        ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:12: error: 'b' was not declared in this scope
    8 |   double i=b*b*a/x;
      |            ^
a.cc:8:14: error: 'b' was not declared in this scope
    8 |   double i=b*b*a/x;
      |              ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 |   double i=b*b*a/x;
      |                ^
a.cc:8:18: error: 'x' was not declared in this scope
    8 |   double i=b*b*a/x;
      |                  ^
a.cc:10:8: error: 'cout' in namespace 'std' does not name a type
   10 |   std::cout<<fixed<<setprecision(10)<<ans;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:3: error: expected unqualified-id before 'return'
   11 |   return 0;
      |   ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main{
  int a,b,x;
  std::cin>>a;
  std::cin>>b;
  std::cin>>x;
  double i=b*b*a/x;
  long double ans=(atan(i)*180)/3.14159265;
  std::cout<<fixed<<setprecision(10)<<ans;
  return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,x;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:8: error: 'cin' in namespace 'std' does not name a type
    5 |   std::cin>>a;
      |        ^~~
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:6:8: error: 'cin' in namespace 'std' does not name a type
    6 |   std::cin>>b;
      |        ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'cin' in namespace 'std' does not name a type
    7 |   std::cin>>x;
      |        ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:12: error: 'b' was not declared in this scope
    8 |   double i=b*b*a/x;
      |            ^
a.cc:8:14: error: 'b' was not declared in this scope
    8 |   double i=b*b*a/x;
      |              ^
a.cc:8:16: error: 'a' was not declared in this scope
    8 |   double i=b*b*a/x;
      |                ^
a.cc:8:18: error: 'x' was not declared in this scope
    8 |   double i=b*b*a/x;
      |                  ^
a.cc:10:8: error: 'cout' in namespace 'std' does not name a type
   10 |   std::cout<<fixed<<setprecision(10)<<ans;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:3: error: expected unqualified-id before 'return'
   11 |   return 0;
      |   ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main{
  int a,b,x;
  std::cin>>a;
  std::cin>>b;
  std::cin>>x;
  long double ans=(atan(b*b*a/x)*180)/3.14159265;
  std::cout<<fixed<<setprecision(10)<<ans;
  return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,x;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:8: error: 'cin' in namespace 'std' does not name a type
    5 |   std::cin>>a;
      |        ^~~
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:6:8: error: 'cin' in namespace 'std' does not name a type
    6 |   std::cin>>b;
      |        ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:8: error: 'cin' in namespace 'std' does not name a type
    7 |   std::cin>>x;
      |        ^~~
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:25: error: 'b' was not declared in this scope
    8 |   long double ans=(atan(b*b*a/x)*180)/3.14159265;
      |                         ^
a.cc:8:27: error: 'b' was not declared in this scope
    8 |   long double ans=(atan(b*b*a/x)*180)/3.14159265;
      |                           ^
a.cc:8:29: error: 'a' was not declared in this scope
    8 |   long double ans=(atan(b*b*a/x)*180)/3.14159265;
      |                             ^
a.cc:8:31: error: 'x' was not declared in this scope
    8 |   long double ans=(atan(b*b*a/x)*180)/3.14159265;
      |                               ^
a.cc:9:8: error: 'cout' in namespace 'std' does not name a type
    9 |   std::cout<<fixed<<setprecision(10)<<ans;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:3: error: expected unqualified-id before 'return'
   10 |   return 0;
      |   ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main{
  int a,b,x;
  std::cin>>a>>b>>x;
  long double y=(b*b*a)/x;
  long double ans=(atan(y)*180)/3.14159265;
  std::cout<<ans;
  return 0;
}


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,x;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:8: error: 'cin' in namespace 'std' does not name a type
    5 |   std::cin>>a>>b>>x;
      |        ^~~
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:6:18: error: 'b' was not declared in this scope
    6 |   long double y=(b*b*a)/x;
      |                  ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |   long double y=(b*b*a)/x;
      |                    ^
a.cc:6:22: error: 'a' was not declared in this scope
    6 |   long double y=(b*b*a)/x;
      |                      ^
a.cc:6:25: error: 'x' was not declared in this scope
    6 |   long double y=(b*b*a)/x;
      |                         ^
a.cc:8:8: error: 'cout' in namespace 'std' does not name a type
    8 |   std::cout<<ans;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:3: error: expected unqualified-id before 'return'
    9 |   return 0;
      |   ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define PI 2*asin(1)
#define int long long
#define mod 1000000007
#define all(a) begin(a),end(a)
#define fore(i, j, n) for(long long i = j; i < n;i++)
using namespace std;

int32_t main()
{
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    double a,b,x; cin>>a>>b>>x;
    cout << setprecision(20)<< atan(2( a*b-x/a)/a/a)*180/PI;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:13:38: error: expression cannot be used as a function
   13 |     cout << setprecision(20)<< atan(2( a*b-x/a)/a/a)*180/PI;
      |                                     ~^~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define PI 2*asin(1)
#define int long long
#define mod 1000000007
#define all(a) begin(a),end(a)
#define fore(i, j, n) for(long long i = j; i < n;i++)
using namespace std;

int32_t main()
{
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    double a,b,x; cin>>a>>b>>x;
    cout << setprecision(20)<< atan(2( ab-x/a)/a/a);
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:13:40: error: 'ab' was not declared in this scope; did you mean 'b'?
   13 |     cout << setprecision(20)<< atan(2( ab-x/a)/a/a);
      |                                        ^~
      |                                        b
a.cc:13:46: error: expression cannot be used as a function
   13 |     cout << setprecision(20)<< atan(2( ab-x/a)/a/a);
      |                                              ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main{
  int a,b,x;
  std::cin>>a>>b>>x;
  long double y=(b*b*a)/x;
  long double ans=(atan(y)*180)/3.14159265358979323846264338327950;
  std::cout<<ans;
  return 0;
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,x;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:8: error: 'cin' in namespace 'std' does not name a type
    5 |   std::cin>>a>>b>>x;
      |        ^~~
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:6:18: error: 'b' was not declared in this scope
    6 |   long double y=(b*b*a)/x;
      |                  ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |   long double y=(b*b*a)/x;
      |                    ^
a.cc:6:22: error: 'a' was not declared in this scope
    6 |   long double y=(b*b*a)/x;
      |                      ^
a.cc:6:25: error: 'x' was not declared in this scope
    6 |   long double y=(b*b*a)/x;
      |                         ^
a.cc:8:8: error: 'cout' in namespace 'std' does not name a type
    8 |   std::cout<<ans;
      |        ^~~~
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:3: error: expected unqualified-id before 'return'
    9 |   return 0;
      |   ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include <bits/stdc++.h>
#define PI (atan(1)*4)

using namespace std;

int main()
{
	double a, b, n, i, x;
	double rad;
	cin >> a >> b >> x;
	if(2*x <= a*a*b) {
		rad = atan((a*b*b)/(2*x));
	} else {
		rad = atan(2*((b/a) - x/(a*a*a)));
	}
	cout << rad*180.0/PI << endl;
	m/ printf("%.7lf\n", rad*180.0/PI); 
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'm' was not declared in this scope
   17 |         m/ printf("%.7lf\n", rad*180.0/PI);
      |         ^
Language: C++

#include<iostream>
#include<cmath>
 
using namespace std;
 
int main(){
	double a,b,x;
  	cin >>a>>b>>x;
  	double theta1,theta2,min_theta=0.0;
  
  	theta1 = atan( ( 2*(a*a*b-x) / (a*a*a) ) * 180/M_PI;
  	theta2 = atan( ( (a*b*b) / (2*x) )) * 180/M_PI;
  
  	if( x > (a*a*b/2))	min_theta = theta1;
  	else min_theta = theta2;
  
  	cout << min_theta <<endl;
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:60: error: expected ')' before ';' token
   11 |         theta1 = atan( ( 2*(a*a*b-x) / (a*a*a) ) * 180/M_PI;
      |                      ~                                     ^
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
using namespace std;
#define dump(x)  cout << #x << " = " << (x) << endl;
const double PI = acos(-1);
typedef long long ll;

int A,B,x;
void input(){
    cin >> A >> B >> x;
}

void solve (){
    float sq = x/A;
    float ans;
    float rad;
    if(sq >= (A*B/2)){
        float h = (B - sq/A)*2;
        rad = atan2(h, A);
        
    }else {
        float w = sq/B;
        rad = atan2(b, w);
        
    }
    ans = 360*rad/(2*PI);
    printf("%.10f", ans);
    return ;
}

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

Compiler output:
a.cc: In function 'void solve()':
a.cc:24:21: error: 'b' was not declared in this scope
   24 |         rad = atan2(b, w);
      |                     ^
Language: C++

#include <bits/stdc++.h>
#include <vector>
#include <iostream>
using namespace std;
#define dump(x)  cout << #x << " = " << (x) << endl;
const double PI = acos(-1);
typedef long long ll;

int A,B,x;
void input(){
    cin >> A >> B >> x;
}

void solve (){
    float sq = x/A;
    float ans;
    float rad;
    if(sq >= (A*B/2)){
        float h = (B - sq/A)*2;
        rad = atan2(h, A);
        
    }else {
        float w = sp/B;
        rad = atan2(b, w);
        
    }
    ans = 360*rad/(a*PI);
    printf("%.10f", ans) 
    return ;
}

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

Compiler output:
a.cc: In function 'void solve()':
a.cc:23:19: error: 'sp' was not declared in this scope; did you mean 'sq'?
   23 |         float w = sp/B;
      |                   ^~
      |                   sq
a.cc:24:21: error: 'b' was not declared in this scope
   24 |         rad = atan2(b, w);
      |                     ^
a.cc:27:20: error: 'a' was not declared in this scope
   27 |     ans = 360*rad/(a*PI);
      |                    ^
a.cc:28:25: error: expected ';' before 'return'
   28 |     printf("%.10f", ans)
      |                         ^
      |                         ;
   29 |     return ;
      |     ~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'f' was not declared in this scope
    7 |   f = (2/a)*(b - (x/(a*a)));
      |   ^
Language: C++

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

bool parity(int n){
  if(n*n*n*n%10 == 1)
    return true;
  else
    return false;
}

long long power(long long x, int y){
  long long n = 1ll;
  for(int i = 0; i < y; i++)
    n *= x;
  return n;
}



int main() {
  
  int a, b, x;
  cin >> a >> b >> x;
  
  double ans;
  if(a*a*b <= 2*x)
    ans = atan2(2.0*(a*a*b-x),1.0a*a*a);
  else
    ans = atan2(1.0*a*b*b,2.0*x);
  
  ans *= 180.0/3.141592653589;
  cout << ans << endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:31: error: unable to find numeric literal operator 'operator""a'
   27 |     ans = atan2(2.0*(a*a*b-x),1.0a*a*a);
      |                               ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
#define PI	3.1415926535
typedef long long ll;
#define PB	push_back
#define FOR(n)			for(int i = 0; i < n; ++i)
#define RFOR(n)			for(int i = n; i >= 0; --i)
#define FORR(start,end) for(int i = start; i < end; ++i)
#define COUT(n)			cout << n << " " << flush
#define vi(v)			vector<int> v
#define vii(v)			vector<pair<int,int>> v
#define mii(m)			map<int, int> m
#define msi(m)			map<string, int, less<>> m
#define mmsi(m)			multimap<string, int, less<>> m
#define mkp(a,b)		make_pair(a,b)
#define ALL(obj)		obj.begin(), obj.end()
using namespace std;

int main() {
	ll a, b, x;
	double ans, h;
	cin >> a >> b >> x;
	double vol = a * a * b;

	if (x >= vol / 2) {
		h = 2.0*(vol - x) / (a*a);
		ans = atan(h/a) *(180 / PI);
	}
	else {
		h = 2.0 * x / (a * b);
		ans = atan(b/h) * (180 / PI);
	}
	printf("%.7f\n", ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:23: error: 'atan' was not declared in this scope
   30 |                 ans = atan(h/a) *(180 / PI);
      |                       ^~~~
a.cc:34:23: error: 'atan' was not declared in this scope
   34 |                 ans = atan(b/h) * (180 / PI);
      |                       ^~~~
Language: C++

#include<iostream>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
#define PI	3.1415926535
typedef long long ll;
#define PB	push_back
#define FOR(n)			for(int i = 0; i < n; ++i)
#define RFOR(n)			for(int i = n; i >= 0; --i)
#define FORR(start,end) for(int i = start; i < end; ++i)
#define COUT(n)			cout << n << " " << flush
#define vi(v)			vector<int> v
#define vii(v)			vector<pair<int,int>> v
#define mii(m)			map<int, int> m
#define msi(m)			map<string, int, less<>> m
#define mmsi(m)			multimap<string, int, less<>> m
#define mkp(a,b)		make_pair(a,b)
#define ALL(obj)		obj.begin(), obj.end()
using namespace std;

int main() {
	ll a, b, x;
	double ans, h;
	cin >> a >> b >> x;
	double vol = a * a * b;

	if (x >= vol / 2) {
		h = 2.0*(vol - x) / (a*a);
		ans = atan2(h, a) *(180 / PI);
	}
	else {
		h = 2.0 * x / (a * b);
		ans = atan2(b, h) * (180 / PI);
	}
	printf("%.7f\n", ans);
	return 0;
}

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

#include<iostream>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
typedef long long ll;
#define PB	push_back
#define FOR(n)			for(int i = 0; i < n; ++i)
#define RFOR(n)			for(int i = n; i >= 0; --i)
#define FORR(start,end) for(int i = start; i < end; ++i)
#define COUT(n)			cout << n << " " << flush
#define vi(v)			vector<int> v
#define vii(v)			vector<pair<int,int>> v
#define mii(m)			map<int, int> m
#define msi(m)			map<string, int, less<>> m
#define mmsi(m)			multimap<string, int, less<>> m
#define mkp(a,b)		make_pair(a,b)
#define ALL(obj)		obj.begin(), obj.end()
#define PI				3.1415926535
using namespace std;

int main() {
	ll a, b, x;
	double ans;
	cin >> a >> b >> x;
	double vol = a * a * b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:30:23: error: 'atan2' was not declared in this scope
   30 |                 ans = atan2(h, a) *(180 / PI);
      |                       ^~~~~
a.cc:34:23: error: 'atan2' was not declared in this scope
   34 |                 ans = atan2(b, w) * (180 / PI);
      |                       ^~~~~
Language: C++

#include<iostream>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
typedef long long ll;
#define PB	push_back
#define FOR(n)			for(int i = 0; i < n; ++i)
#define RFOR(n)			for(int i = n; i >= 0; --i)
#define FORR(start,end) for(int i = start; i < end; ++i)
#define COUT(n)			cout << n << " " << flush
#define vi(v)			vector<int> v
#define vii(v)			vector<pair<int,int>> v
#define mii(m)			map<int, int> m
#define msi(m)			map<string, int, less<>> m
#define mmsi(m)			multimap<string, int, less<>> m
#define mkp(a,b)		make_pair(a,b)
#define ALL(obj)		obj.begin(), obj.end()
#define PI				(acos(-1))
using namespace std;

int main() {
	ll a, b, x;
	double ans;
	cin >> a >> b >> x;
	double vol = a * a * b;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:30:23: error: 'atan2' was not declared in this scope
   30 |                 ans = atan2(h, a) *(180 / PI);
      |                       ^~~~~
a.cc:19:42: error: 'acos' was not declared in this scope
   19 | #define PI                              (acos(-1))
      |                                          ^~~~
a.cc:30:43: note: in expansion of macro 'PI'
   30 |                 ans = atan2(h, a) *(180 / PI);
      |                                           ^~
a.cc:34:23: error: 'atan2' was not declared in this scope
   34 |                 ans = atan2(b, w) * (180 / PI);
      |                       ^~~~~
a.cc:19:42: error: 'acos' was not declared in this scope
   19 | #define PI                              (acos(-1))
      |                                          ^~~~
a.cc:34:44: note: in expansion of macro 'PI'
   34 |                 ans = atan2(b, w) * (180 / PI);
      |                                            ^~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef long long ll;
const int INF=1001001001;
int main(){
  int a,b,x;
  cin>>a>>b>>x;
  int S=x/a;
  int ans=0;
  double PI=acos(-1);
  if (S>a*b/2){
    double h=(a*b-S)*2/a;
    double rad=atan2(h,a);    
  }
  else{
    double w=2*S/b;
    double rad=atan2(w,b);
  }
  double ans=rad*180/PI;
  cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: conflicting declaration 'double ans'
   20 |   double ans=rad*180/PI;
      |          ^~~
a.cc:10:7: note: previous declaration as 'int ans'
   10 |   int ans=0;
      |       ^~~
a.cc:20:14: error: 'rad' was not declared in this scope; did you mean 'read'?
   20 |   double ans=rad*180/PI;
      |              ^~~
      |              read
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;++i)
using namespace std;
typedef long long ll;
const int INF=1001001001;
int main(){
  int a,b,x;
  cin>>a>>b>>x;
  int S=x/a;
  int ans=0;
  PI=acon(-1);
  if (S>a*b/2){
    double h=(a*b-S)*2/a;
    double rad=atan2(h,a);    
  }
  else{
    double w=2*S/b;
    double rad=atan2(w,b);
  }
  ans=rad*180/PI;
  cout<<ans<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'PI' was not declared in this scope
   11 |   PI=acon(-1);
      |   ^~
a.cc:11:6: error: 'acon' was not declared in this scope; did you mean 'acos'?
   11 |   PI=acon(-1);
      |      ^~~~
      |      acos
a.cc:20:7: error: 'rad' was not declared in this scope; did you mean 'read'?
   20 |   ans=rad*180/PI;
      |       ^~~
      |       read
Language: C++


#include "iostream"
#include <algorithm>


using namespace std;



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

	double s;
	s = atan(2 * ((b - (x / pow(a, 2))) / a));
	cout << s<<"\n";
	double d= s * (180.0) / 3.141592;
	cout <<d;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:33: error: 'pow' was not declared in this scope
   16 |         s = atan(2 * ((b - (x / pow(a, 2))) / a));
      |                                 ^~~
a.cc:16:13: error: 'atan' was not declared in this scope
   16 |         s = atan(2 * ((b - (x / pow(a, 2))) / a));
      |             ^~~~
Language: C++

#include "stdafx.h"
#include "iostream"
#include "vector"
#include <algorithm>


using namespace std;



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

	double s;
	s = atan(2 * ((b - (x / pow(a, 2))) / a));
	cout << s<<"\n";
	double d= s * (180.0) / 3.141592;
	cout <<d;
    return 0;
}


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

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

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

Compiler output:
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |   int a, b, x;
      | ^
a.cc: In function 'int main()':
a.cc:5:1: error: '\U000000a0' was not declared in this scope
    5 |   int a, b, x;
      | ^
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> x;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> x;
      |               ^
a.cc:6:20: error: 'x' was not declared in this scope
    6 |   cin >> a >> b >> x;
      |                    ^
Language: C++

#include <iostream>

typedef long long ll;
using namespace std;

int main(int argc, char* argv[])
{
    double a,b,x;
    
    cin >> a >> b >> x;
    if(x > a*b/2){
        printf("%.10f",atan2(2*(b-x/a/a),a) *180 / acos(-1));
    }else{
        printf("%.10f",atan2(b,2*x/a/b) *180 / acos(-1));
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:12:24: error: 'atan2' was not declared in this scope
   12 |         printf("%.10f",atan2(2*(b-x/a/a),a) *180 / acos(-1));
      |                        ^~~~~
a.cc:12:52: error: 'acos' was not declared in this scope
   12 |         printf("%.10f",atan2(2*(b-x/a/a),a) *180 / acos(-1));
      |                                                    ^~~~
a.cc:14:24: error: 'atan2' was not declared in this scope
   14 |         printf("%.10f",atan2(b,2*x/a/b) *180 / acos(-1));
      |                        ^~~~~
a.cc:14:48: error: 'acos' was not declared in this scope
   14 |         printf("%.10f",atan2(b,2*x/a/b) *180 / acos(-1));
      |                                                ^~~~
Language: C

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

int main(){
  int a,b,x;
  double y;
  scanf("%d %d %d",&a,&b,&x);
  
  y=2*x/(a*b);
  double ans=double atan(double y/b);
  
  printf("%lf",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected expression before 'double'
   10 |   double ans=double atan(double y/b);
      |              ^~~~~~
Language: C

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

int main(){
  int a,b,x;
  double ans,y;
  scanf("%d %d %d",&a,&b,&x);
  
  y=2*x/(a*b);
  ans=atan(double y/b);
  
  printf("%lf",ans);
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:12: error: expected expression before 'double'
   10 |   ans=atan(double y/b);
      |            ^~~~~~
Language: C

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

int main(){
  int a,b,x;
  double ans,y;
  scanf("%d %d %d",&a,&b,&x);
  
  y=2*x/(a*b);
  ans=double atan(double y/b);
  
  printf("%lf",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:7: error: expected expression before 'double'
   10 |   ans=double atan(double y/b);
      |       ^~~~~~
Language: C

#include<stdio.h>
#include<math.h>
int main(void)
{
double a,b,x;
  double theta,tangent;
  scanf("%lf%lf%lf",&a,&b,&x);
  if(x>=((a*a*b)/2){
  tangent = (2*b/a - 2*x/a/a/a);
  theta = atan(tangent)*(180/M_PI);
  }
  else{
    tangent = (2*x/a/b/b);
  theta = 90 - atan(tangent)*(180/M_PI);
  }
printf("%lf",theta);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:20: error: expected ')' before '{' token
    8 |   if(x>=((a*a*b)/2){
      |     ~              ^
      |                    )
main.c:18:1: error: expected expression before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
#include <iomanip>
#include <cmath>
#define PI=3.14159265
using namespace std;
int main()
{
 float a,b,x;
 cin >> a >> b >> x;
 b*=b;
 b*=a;
 b/=(2*x);
 cout << std::fixed << std::setprecision(10) << (atan(b)*180)/PI;
 return 0;
}

Compiler output:
a.cc:4:9: warning: ISO C++11 requires whitespace after the macro name
    4 | #define PI=3.14159265
      |         ^~
a.cc: In function 'int main()':
a.cc:4:11: error: expected primary-expression before '=' token
    4 | #define PI=3.14159265
      |           ^
a.cc:13:63: note: in expansion of macro 'PI'
   13 |  cout << std::fixed << std::setprecision(10) << (atan(b)*180)/PI;
      |                                                               ^~
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
 float a,b,x;
 cin >> a >> b >> x;
 b*=b;
 b*=a;
 b/=(2*x);
 cout << std::fixed << std::setprecision(10) << atan(b);
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: 'setprecision' is not a member of 'std'
   11 |  cout << std::fixed << std::setprecision(10) << atan(b);
      |                             ^~~~~~~~~~~~
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 namespace std;
Language: Java

import java.util.*;
public class Water{
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
    double a=sc.nextInt();
    double b=sc.nextInt();
    double x=sc.nextInt();
    double S=x/a;

      if(S<=a*b/2){
        double m=2*S/b;
        Math.atan(b/m);
        System.out.println(Math.toDegrees(Math.atan(b/m)));
      }else{
        double N=a*b-S;
        double o=2*N/a;
        System.out.println(Math.toDegrees(Math.atan(o/a)));
      }
    }
  }


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

import java.util.*;
public class Water{
  public static void main(String args[]){
    Scanner sc=new Scanner(System.in);
    double a=sc.nextInt();
    double b=sc.nextInt();
    double x=sc.nextInt();
    double S=x/a;

      if(S<=a*b/2){
        double m=2*S/b;
        Math.atan(b/m);
        System.out.println(Math.toDegrees(Math.atan(b/m)));
      }else{
        double N=a*b-S;
        double o=2*N/a;
        System.out.println(Math.toDegrees(Math.atan(a/o)));
      }
    }
  }


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

#include <bits/stdc++.h>
#define PI 3.141592653589793
using namespace std;
 
int main() {
  double a,b,x;
  cin >> a >> b >> x;

  if(2x/pow(a,2)-b>0)
    double c=atan(2/a*(b-(x/pow(a,2))))* 180/ PI;
  else
    double c=atan(b/a)* 180/ PI;
  
  printf("%.10f",c);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:6: error: unable to find numeric literal operator 'operator""x'
    9 |   if(2x/pow(a,2)-b>0)
      |      ^~
a.cc:14:18: error: 'c' was not declared in this scope
   14 |   printf("%.10f",c);
      |                  ^
Language: C

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

int main()
{
    int a, b, w;

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

    double l = 0, r = b, x  = (l+r)/2;

    while( a*b*a - 0.5*a*a*x - w >= 10e-6){
     if(a*b*a - 0.5*a*a*x - w> 10e-6) l = x; 
     else r = x;

    x = (r+l)/2;
    }

    printf("%.10lf\n", arctan(x/a)) ;
}

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

#include<iostream>
#include<cmath>
using namespace std;
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 x_max;
  x_max= b-x_hight;
  double theta;
  double delta;
  int flag=1;
  theta = arctan(a / x_max);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'arctan' was not declared in this scope; did you mean 'atan'?
   16 |   theta = arctan(a / x_max);
      |           ^~~~~~
      |           atan
Language: C

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

#define pi 3.141592653589793

int main(void){
	double a, b, x;
	double h, l;
	double ans;
	scanf("%lf%lf%lf",&a ,&b ,&x);
	if(x<a*a*b/){
		h = 3.0*x/(a*b);
		ans = 90.0 - (180.0/pi)*atan(h/b);
	}
	else{
		l = 2.0*(b - x/(a*a));
		ans = 90.0 - (180.0/pi)*atan(a/l);
	}
	printf("%lf\n",ans);
    return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:13:20: error: expected expression before ')' token
   13 |         if(x<a*a*b/){
      |                    ^