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

#include <cstdlib>
#include <string>
#include <algorithm>
#include <cmath>
#define PI 3.14159265258979
using namespace std;
		
int main(void){
	double a,b,rad;
	double S,L,h;
	cin>>a>>b>>rad;
	rad=rad*PI/180;
	S = a*b*sin(rad)/2.0;
	L = a + b + sqrt(a*a+b*b-2*a*b*cos(rad));
	h = 2*S/a;
	cout.precision(8);
	cout<<fixed<<S<<" "<<L<<" "<<h<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope
   11 |         cin>>a>>b>>rad;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <cmath>
  +++ |+#include <iostream>
    5 | #define PI 3.14159265258979
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout.precision(8);
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:15: error: 'fixed' was not declared in this scope
   17 |         cout<<fixed<<S<<" "<<L<<" "<<h<<endl;
      |               ^~~~~
a.cc:5:1: note: 'std::fixed' is defined in header '<ios>'; this is probably fixable by adding '#include <ios>'
    4 | #include <cmath>
  +++ |+#include <ios>
    5 | #define PI 3.14159265258979
a.cc:17:41: error: 'endl' was not declared in this scope
   17 |         cout<<fixed<<S<<" "<<L<<" "<<h<<endl;
      |                                         ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include <cmath>
  +++ |+#include <ostream>
    5 | #define PI 3.14159265258979
Language: C++

#include<iostream>
#include<cmath>
#include<cstdio>

using namespace std;

int main () {
    double a, b, x, y;
    int C;
    cin >> a >> b >> C;
    x = cos(MATH_PI*C/180)*b*tan(MATH_PI*C/180)
    y = a-cos(MATH_PI*C/180)*b
    printf("%.8f %.8f %.8f\n", sin(MATH_PI*C/180)*a*b/2, a+b+hypot(x,y) , x)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'MATH_PI' was not declared in this scope; did you mean 'M_PI'?
   11 |     x = cos(MATH_PI*C/180)*b*tan(MATH_PI*C/180)
      |             ^~~~~~~
      |             M_PI
Language: C++

#include<iostream>
#include<cmath>
#include<cstdio>

using namespace std;

int main () {
    double a, b, x, y;
    int C;
    cin >> a >> b >> C;
    x = cos(M_PI*C/180)*b*tan(M_PI*C/180);
    y = a-cos(M_PI*C/180)*b;
    printf("%.8f %.8f %.8f\n", sin(M_PI*C/180)*a*b/2, a+b+hypot(x,y) , x)
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:74: error: expected ';' before '}' token
   13 |     printf("%.8f %.8f %.8f\n", sin(M_PI*C/180)*a*b/2, a+b+hypot(x,y) , x)
      |                                                                          ^
      |                                                                          ;
   14 | }
      | ~
Language: C++

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

int main()
{
    double x1, y1, x2, y2;
    std::cin >> x1 >> y1 >> x2 >> y2;

    double dist= sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
    std::cout << std::fixed << dist << std::endl;

    return 0;
}
#include <iostream>
#include <cmath>

constexpr double PI = 3.14159265;

int main()
{
    int side1, side2, deg;
    std::cin >> side1 >> side2 >> deg;

    double rad = deg * PI / 180;

    double area = side1 * side2 * sin(rad) / 2;
    double side3 = sqrt(pow(side1, 2) + pow(side2, 2)
                        - 2 * side1 * side2 * cos(rad));
    double round = side1 + side2 + side3;
    double height = side2 * sin(rad);

    std::cout << std::fixed << area << " "
              << round << " "
              << height << std::endl;

    return 0;
}

Compiler output:
a.cc:20:5: error: redefinition of 'int main()'
   20 | int main()
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main()
      |     ^~~~
Language: C++

#include<iostream>
#include<iomanip>
#include<string>
#include<cmath>
#define PI 3.141592

using namespace std;

int main()
{
	double a, b, C;
	cin >> a >> b >> C;
	C = C * PI / 180.0;
	cout << fixed << setprecision(8)
	cout << a * b * sin(C) / 2 << endl;
	cout << a + b + sqrt(a* a + b * b - 2 * a * b * cos(C)) <<endl;
	cout << b * sin(C)<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:41: error: expected ';' before 'cout'
   14 |         cout << fixed << setprecision(8)
      |                                         ^
      |                                         ;
   15 |         cout << a * b * sin(C) / 2 << endl;
      |         ~~~~
Language: C++

#include <iostream>
#include <string>
#include <math.h>
#include <stdio.h>
#define PI 3.1415926535897932
using namespace std;

int main(){
	int a,b,C,;
	double S,h,L;
	double X;
	cin >>a>>b>>C;
	X=(double)C*PI/180.0;
	h=b*sin(X);
	S=h*a/2;
	L=sqrt((double)((a*a)+(b*b)-2*a*b*cos(X)));
	L+=(a+b);
	printf("%.6f\n",S);
	printf("%.6f\n",L);
	printf("%.6f\n",h);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected unqualified-id before ';' token
    9 |         int a,b,C,;
      |                   ^
Language: C++

using System;

namespace ConsoleApplication26
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            double a = double.Parse(input[0]);
            double b = double.Parse(input[1]);
            double c = double.Parse(input[2]);
            double C = Math.Sin(c * (Math.PI / 180));
            double h = b * Math.Sin(c * (Math.PI / 180));
            double S = (a * (b * Math.Sin(c * (Math.PI / 180)))) / 2;
            double x = Math.Sqrt(Math.Pow(h, 2) + Math.Pow(a - a * Math.Cos(c * (Math.PI / 180)), 2));
            double L = a + b + x;
            Console.WriteLine("{0:f5}", S);
            Console.WriteLine("{0:f5}", L);
            Console.WriteLine("{0:f5}", h);
        }
    }
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:22:6: error: expected ';' after class definition
   22 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication26::Program::Main(int*)':
a.cc:9:13: error: 'string' was not declared in this scope
    9 |             string[] input = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:9:20: error: expected primary-expression before ']' token
    9 |             string[] input = Console.ReadLine().Split(' ');
      |                    ^
a.cc:10:24: error: expected primary-expression before 'double'
   10 |             double a = double.Parse(input[0]);
      |                        ^~~~~~
a.cc:11:24: error: expected primary-expression before 'double'
   11 |             double b = double.Parse(input[1]);
      |                        ^~~~~~
a.cc:12:24: error: expected primary-expression before 'double'
   12 |             double c = double.Parse(input[2]);
      |                        ^~~~~~
a.cc:13:24: error: 'Math' was not declared in this scope
   13 |             double C = Math.Sin(c * (Math.PI / 180));
      |                        ^~~~
a.cc:18:13: error: 'Console' was not declared in this scope
   18 |             Console.WriteLine("{0:f5}", S);
      |             ^~~~~~~
Language: C++

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

int main(){
	double a, b, c, C;
	double S,L,h;

	cin>>a>>b>>C;

	h = b*sin(C/180*M_PI);
	S = a * h / 2;
	c = sqrt((pow(a,2)+pow(b,2) - 2 * a * b * cos(C/180*M_PI)));
	L = a+b+c;

	printf("%10lf\n", S);
	printf("%10lf\n", L);
	printf("%10lf\n", h);
}

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

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

int main( void ){
	double a;
	double b;
	double c;
	
	double h;
	
	cin >> a >> b >> c;
	
	h = sin( c ) / b;
	
	double S = h * a / 2;
	
	double d = a^2 + b^2 ^2 * a * b * cos( c );
	double L = a + b + c;
	
	cout << S\n;
	cout << L\n;
	cout << h\n;
}

Compiler output:
a.cc:21:18: error: stray '\' in program
   21 |         cout << S\n;
      |                  ^
a.cc:22:18: error: stray '\' in program
   22 |         cout << L\n;
      |                  ^
a.cc:23:18: error: stray '\' in program
   23 |         cout << h\n;
      |                  ^
a.cc: In function 'int main()':
a.cc:18:21: error: invalid operands of types 'double' and 'double' to binary 'operator^'
   18 |         double d = a^2 + b^2 ^2 * a * b * cos( c );
      |                    ~^~~~~~
      |                    |   |
      |                    |   double
      |                    double
a.cc:21:18: error: expected ';' before 'n'
   21 |         cout << S\n;
      |                  ^~
      |                  ;
a.cc:22:18: error: expected ';' before 'n'
   22 |         cout << L\n;
      |                  ^~
      |                  ;
a.cc:23:18: error: expected ';' before 'n'
   23 |         cout << h\n;
      |                  ^~
      |                  ;
Language: C++

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

int main( void )
{
	double a, b, C;
	double S, L, h;
	
	cin >> a >> b >> C;

	S = a * b * sin( C ) / 2;

	L = a + b + sqrt( (a * a) + (b * b) - (2 * a * b * cos( C )) );

	h = b * sin( C );

	cout << S << " " << L << " " << h << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope; did you mean 'sin'?
    9 |         cin >> a >> b >> C;
      |         ^~~
      |         sin
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << S << " " << L << " " << h << endl;
      |         ^~~~
a.cc:17:46: error: 'endl' was not declared in this scope
   17 |         cout << S << " " << L << " " << h << endl;
      |                                              ^~~~
Language: C++

#include<iostream>
using namespace std;
#define PI 3.1415926
int main(){
double a,b,c;
double S,L,h;
cin>>a>>b>>c;
S=a*b*sin(c/360*2*PI);
L=a+b+sqrt(a*a+b*b-2*a*b*cos((float)c/360*2*PI));
h=2*S/a;
cout<<S<<endl;
cout<<L<<endl;
cout<<h<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'sin' was not declared in this scope
    8 | S=a*b*sin(c/360*2*PI);
      |       ^~~
a.cc:9:26: error: 'cos' was not declared in this scope
    9 | L=a+b+sqrt(a*a+b*b-2*a*b*cos((float)c/360*2*PI));
      |                          ^~~
a.cc:9:7: error: 'sqrt' was not declared in this scope
    9 | L=a+b+sqrt(a*a+b*b-2*a*b*cos((float)c/360*2*PI));
      |       ^~~~
Language: C++

#include<iostream>
#define _USE_MATH_DEFINES
#include<math.h>
#include<iomanip>
using namespace std;
int main(){
double a,b,c;
double S,L,h;
cin>>a>>b>>c;
S=1/2.0*a*b*sin(c/180.0f*M_PI);
L=a+b+sqrt(a*a+b*b-2.0*a*b*cos(c/360.0*2.0*M_PI));
h=2.0*S/a;
cout<<fixed << setprecision(10)<<S<<endl;
cout<<fixed << setprecision(10)<<L<<endl;
cout<<fixed << setprecision(10)<<<h<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:34: error: expected primary-expression before '<' token
   15 | cout<<fixed << setprecision(10)<<<h<<endl;
      |                                  ^
a.cc:15:36: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 | cout<<fixed << setprecision(10)<<<h<<endl;
      |                                   ~^~~~~~
Language: C++

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

int main() {
    double a,b,c,C,S,h,L;
    cin >> a >> b >> C;
    S = 1/2 * a * b * sin(C * M_PI / 180));
    c = sqrt(a*a + b*b - 2*a*b*cos(C * M_PI / 180));
    L = a+b+c;
    h = 2 * S / a;
    cout << setprecision(10) << S << " " << L << " " << h << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: expected ';' before ')' token
    9 |     S = 1/2 * a * b * sin(C * M_PI / 180));
      |                                          ^
      |                                          ;
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a,b,c_rad;
    double S,L,h;

    cin >> a >> b >> c_rad;

    S = a*b*sin(c_rad);
    L = a+b+sqrt(pow(a)+pow(b)-2*a*b*cos(c_rad));
    h = a*sin(c_rad);

    cout << S << endl;
    cout << L << endl;
    cout << h << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'sin' was not declared in this scope
   10 |     S = a*b*sin(c_rad);
      |             ^~~
a.cc:11:18: error: 'pow' was not declared in this scope
   11 |     L = a+b+sqrt(pow(a)+pow(b)-2*a*b*cos(c_rad));
      |                  ^~~
a.cc:11:38: error: 'cos' was not declared in this scope
   11 |     L = a+b+sqrt(pow(a)+pow(b)-2*a*b*cos(c_rad));
      |                                      ^~~
a.cc:11:13: error: 'sqrt' was not declared in this scope
   11 |     L = a+b+sqrt(pow(a)+pow(b)-2*a*b*cos(c_rad));
      |             ^~~~
Language: C++

#include <iostream>
using namespace std;

#include <stdio.h>

#include < math.h>
/********
*	????§???¢?????????????±???????????????°??????
*********/	
/*********??¢?????´?????????
*	(1)??°????????\???
*	(2)?¨???????????????????
*********/
#define PI 3.141592

int main(void)
{
	double a,b, h, S, L, rad;
	int c; //?§?C?????§??????
	
	cin  >> a >> b>> c  ;
	rad = c * PI/ 180.0;
	S = 1/2*a*b *sin(rad);
	L =a + b + sqrt(a*a + b*b - 2*a*b*cos(rad));
	h = b * sin(rad);
	
	printf("%f,%f, %f\n", S,L,h);
	}
	return 0;
}

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

#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;

void main() {
	int a, b, C;
	double S, L, h, pi, c, d;

	cin >> a >> b >> C;

	pi = acos(-1);

	d = C*pi / 180;

	c = sqrt(a*a + b*b - 2 * a*b*cos(d));

	S = 0.5*a*b*sin(d);

	L = a + b + c;

	h = b*sin(d);

	printf("%lf\n%lf\n%lf\n", S, L, h);
}

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



#include<cstdio>
#include<math.h>
 
int main(){
	int a,b,C;//a,b?????????C????§????
	double S,L,h;//??¢????????¨????????????a???????????¨????????¨????????????
	
	cin >> a >> b >> C;
	
	S = a * b * sin(C / 180.0. * PI)/2.0; //sin(????????¢?????????)
	L = sprt(a*a + b*b - 2*a*b*cos(C / 180.0. * PI)) + a + b;
	h = S * 2/a; //??¢????????????a * ??????h/2??????
	
	printf("%d\n %d\n %d\n",S,L,h);
	
	return 0;
}
	

Compiler output:
a.cc:12:29: error: too many decimal points in number
   12 |         S = a * b * sin(C / 180.0. * PI)/2.0; //sin(????????¢?????????)
      |                             ^~~~~~
a.cc:13:44: error: too many decimal points in number
   13 |         L = sprt(a*a + b*b - 2*a*b*cos(C / 180.0. * PI)) + a + b;
      |                                            ^~~~~~
a.cc: In function 'int main()':
a.cc:10:9: error: 'cin' was not declared in this scope; did you mean 'sin'?
   10 |         cin >> a >> b >> C;
      |         ^~~
      |         sin
a.cc:12:38: error: 'PI' was not declared in this scope
   12 |         S = a * b * sin(C / 180.0. * PI)/2.0; //sin(????????¢?????????)
      |                                      ^~
a.cc:13:13: error: 'sprt' was not declared in this scope; did you mean 'sqrt'?
   13 |         L = sprt(a*a + b*b - 2*a*b*cos(C / 180.0. * PI)) + a + b;
      |             ^~~~
      |             sqrt
Language: C++

#include <iostream>
#include<cmath>
#include<stdio.h>
using namespace std;

int main(){
	
	double a,b,C,S,L,h;//a,b?????????C????§????
	cin >> a >> b >> C;
	
	S = a * b * sin((C / 180) * M_PI)/2; //sin(????????¢?????????)
	L = a + b + sqrt(a*a + b*b - 2*a*b*cos((C / 180) * M_PI)) ; 
	h = S * (double)2/a; //??¢????????????a * ??????h/2?????? 
	
	printf("%.8f\n %.8f\n %.8f\n", S,L,h);
	return 0;
	

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

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

using namespace std;

int main()
{
    int a, b, c;
    int C;

    cin >> a >> b >> C;
    
    int S = (1.0 / 2.0) * a * b * sin(C * static_cast<double>M_PI / 180.0);
    
    c = sqrt(a * a + b * b - 2 * a * b * (int)cos(C * static_cast<double>M_PI / 180.0));
    int l = a + b + c;

    int h = 2 * S / a;

    cout << setprecision(8) << S << " " << setprecision(8) << l << " " 
         << setprecision(8) << h endl;
   
    return (0);
}

Compiler output:
In file included from /usr/include/c++/14/cmath:47,
                 from a.cc:3:
a.cc: In function 'int main()':
a.cc:14:62: error: expected '(' before numeric constant
   14 |     int S = (1.0 / 2.0) * a * b * sin(C * static_cast<double>M_PI / 180.0);
      |                                                              ^~~~
a.cc:14:75: error: expected ')' before ';' token
   14 |     int S = (1.0 / 2.0) * a * b * sin(C * static_cast<double>M_PI / 180.0);
      |                                      ~                                    ^
      |                                                                           )
a.cc:16:74: error: expected '(' before numeric constant
   16 |     c = sqrt(a * a + b * b - 2 * a * b * (int)cos(C * static_cast<double>M_PI / 180.0));
      |                                                                          ^~~~
a.cc:16:88: error: expected ')' before ';' token
   16 |     c = sqrt(a * a + b * b - 2 * a * b * (int)cos(C * static_cast<double>M_PI / 180.0));
      |             ~                                                                          ^
      |                                                                                        )
a.cc:22:33: error: expected ';' before 'endl'
   22 |          << setprecision(8) << h endl;
      |                                 ^~~~~
      |                                 ;
Language: C++

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

using namespace std;

int main()
{
    int a, b, c;
    int C;

    cin >> a >> b >> C;
    
    int S = (1.0 / 2.0) * a * b * sin(C * static_cast<double>(M_PI) / 180.0);
    
    c = sqrt(a * a + b * b - 2 * a * b * (int)cos(C * static_cast<double>(M_PI) / 180.0));
    double l = (double)a + (double)b + (double)c;

    double h = (double)S / a * 2.0;

    cout << fixed << S << " " << < l << " " << h << endl;
   
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:34: error: expected primary-expression before '<' token
   21 |     cout << fixed << S << " " << < l << " " << h << endl;
      |                                  ^
a.cc:21:38: error: invalid operands of types 'double' and 'const char [2]' to binary 'operator<<'
   21 |     cout << fixed << S << " " << < l << " " << h << endl;
      |                                    ~ ^~ ~~~
      |                                    |    |
      |                                    |    const char [2]
      |                                    double
Language: C++

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

using namespace std;

int main()
{
    int a, b, c;
    int C;

    cin >> a >> b >> C;
    
    int S = (1.0 / 2.0) * a * b * sin(C * (double)M_PI / 180.0);
    
    c = sqrt(a * a + b * b - 2 * a * b * (int)cos(C * (double)M_PI / 180.0));
    double l = a + b + c;

    double h = (double)S / a * 2.0;

    cout << fixed << S << " " << < l << " " << h << endl;
   
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:34: error: expected primary-expression before '<' token
   21 |     cout << fixed << S << " " << < l << " " << h << endl;
      |                                  ^
a.cc:21:38: error: invalid operands of types 'double' and 'const char [2]' to binary 'operator<<'
   21 |     cout << fixed << S << " " << < l << " " << h << endl;
      |                                    ~ ^~ ~~~
      |                                    |    |
      |                                    |    const char [2]
      |                                    double
Language: C++

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

/* {{{ */
#define CL(N) cout << N << endl
#define DCT(N) cout << "debug " << N << endl
#define REP(i, N) for (int i = 0; i < N; i++)
/* }}} */

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

    cin >> a >> b >> c;

    double PI = M_PI * c / 180;

    printf("%f\n", (a * b / 2 * sin(q));
    printf("%f\n", (a + b + sqrt(a * a + b * b - 2 * a * b * cos(q)));
    printf("%f\n", (b * sin(q));

    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:37: error: 'q' was not declared in this scope
   18 |     printf("%f\n", (a * b / 2 * sin(q));
      |                                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
/* {{{ */
#define CL(N) cout << N << endl
#define DCT(N) cout << "debug " << N << endl
#define REP(i, N) for (int i = 0; i < N; i++)
/* }}} */
 
int main()
{
    double  a, b, c;
 
    cin >> a >> b >> c;
 
    double PI = M_PI * c / 180;
 
    printf("%f\n", a * b / 2 * sin(q));
    printf("%f\n", a + b + sqrt(a * a + b * b - 2 * a * b * cos(q)));
    printf("%f\n", b * sin(q));
 
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:36: error: 'q' was not declared in this scope
   18 |     printf("%f\n", a * b / 2 * sin(q));
      |                                    ^
Language: C++

import math

I = (raw_input()).split(" ")
a = int(I[0])*1.0
b = int(I[1])*1.0
C = (int(I[2])*math.pi)/180

print (1.0/2)*a*b*math.sin(C)
print math.sqrt(a*a + b*b - 2*a*b*math.cos(C)) + a + b
print b*math.sin(C)

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 <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main(){
  double a, b, c, C, S, L, h;
  cin >> a >> b >> C;
  C = C * M_PI / 180;
  S = ;
  c = sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(C));
  L = a + b + c;
  h = b * sin(C);
  printf("%.8f\n%.8f\n%.8f\n", S, L, h);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: expected primary-expression before ';' token
   10 |   S = ;
      |       ^
Language: C++

#include<stdio.h>
#include<math.h>
#define PI 3.1415926535
int main(){
    double a, b, c;
    double deg, rad;
    double S, L, H;
    sacnf("%lf %lf %lf", &a, &b, &deg);
    rad = deg*PI/180;
    S = a*b*sin(rad)/2;
    H = b*sin(rad);
    c = sqrt(a*a + b*b - 2*a*b*cos(rad));
    L = a + b + c;
    printf("%f\n%f\n%f\n", S, L, H);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'sacnf' was not declared in this scope; did you mean 'scanf'?
    8 |     sacnf("%lf %lf %lf", &a, &b, &deg);
      |     ^~~~~
      |     scanf
Language: C++

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

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

 double S=1/2*a*b*sin(C*pi/180);
 double c=sqrt(a*a+b*b-2*a*b*cos(C*pi/180));
 double L=a+b+c;
 double h=2/a*S;

 cout << fixed << setprecision(8) << S << " " << L << " " << h;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |  cin >> a >> b >> C;
      |  ^~~
      |  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:16:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |  cout << fixed << setprecision(8) << S << " " << L << " " << h;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:10: error: 'fixed' was not declared in this scope; did you mean 'std::fixed'?
   16 |  cout << fixed << setprecision(8) << S << " " << L << " " << h;
      |          ^~~~~
      |          std::fixed
In file included from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/ios_base.h:1104:3: note: 'std::fixed' declared here
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
a.cc:16:19: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
   16 |  cout << fixed << setprecision(8) << S << " " << L << " " << h;
      |                   ^~~~~~~~~~~~
      |                   std::setprecision
In file included from a.cc:4:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
#include<iomanip>
using namespace std;

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

 double S=0.5*a*b*sin(C*pi/180);
 double c=sqrt((a*a+b*b)-2*a*b*cos(C*pi/180));
 double L=a+b+c;
 double h=(2/a)*S;

 cout << fixed << setprecision(8)
 cout << S << endl << L << endl << h << endl;
 return 0;
}

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

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

int main(int argc, char const *argv[])
{
  double a, b, C;
  cin >> a >> b >> C;
  double S, L, h;
  S = a*b/2*sin(C);
  L = a + b + sqrt(a*a+b*b-2*a*b*cos(C));
  h = 2*S/a;
  cout << fixed << precision(10) << S << endl
       << L << endl
       << h << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:12:20: error: 'precision' was not declared in this scope
   12 |   cout << fixed << precision(10) << S << endl
      |                    ^~~~~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<math.h>
using namespace std;
int main(){
	double ans,x1,x2,y1,y2,P1,P2;
	scanf("%f"&x1,y1,x2,y2);
	P1=x2-x1;
	P2=y2-y1;
	ans=sqrt(P1*P1+P2*P2);
	printf("%.8f",ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: invalid operands of types 'const char [3]' and 'double' to binary 'operator&'
    7 |         scanf("%f"&x1,y1,x2,y2);
      |               ~~~~^~~
      |               |    |
      |               |    double
      |               const char [3]
Language: C++

#include <cstdio>
#include <iostream>
#include <math.h>
using namespace std;

void p(double d) {
	printf_s("%f\n", d);
}

int main(){
	double a, b, c;
	cin >> a >> b >> c;
	c = c * 3.14159265 / 180;
	p(a*b*sin(c) / 2);
	p(a + b + sqrt(a*a + b*b - a*b*cos(c)));
	p(b * sin(c));
	
	return 0;
}

Compiler output:
a.cc: In function 'void p(double)':
a.cc:7:9: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
    7 |         printf_s("%f\n", d);
      |         ^~~~~~~~
      |         printf
Language: C++

#include <stdio.h>
#include <iostream>
#include <math.h>
#include <cmath>
using namespace std;

double calcS(int a, int b, int d);
double calcL(int a, int b, int d);
double calcH(int b, int d);

int main(void)
{	
	int a, b, d;
	cin >> a >> b >> d;
	
	cout << calcS(a, b, d) << endl;
	cout << calcL(a, b, d) << endl;
	cout << calcH(b, d);
	
	return 0;
}

double calcS(int a, int b, int d)
{
	return a * b * sin(d / 180 * M_PI) / 2;
}

double calcL(int a, int b, int d)
{
	c = sqrt(pow(a, 2) + pow(b, 2) - (2 * a * b * cos(d)));
	return a + b + c;
}

double calcH(int b, int d)
{
	return b * sin(d);
}

Compiler output:
a.cc: In function 'double calcL(int, int, int)':
a.cc:30:9: error: 'c' was not declared in this scope
   30 |         c = sqrt(pow(a, 2) + pow(b, 2) - (2 * a * b * cos(d)));
      |         ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;

int main(){
int a,b,C;
double S,L,h,pi,c;
pi=acos(-1);
cin >>a >>b >>C;
C=C*pi/180;
c=sqrt(a*a+b*b-2*a*b*cos(C),2);
S=(1/2)a*b*sin(C);
L=a+b+c;
h=2*S/a;

printf("%lf\n %lf\n %lf\",S,L,h);

return 0;
}

Compiler output:
a.cc:17:8: warning: missing terminating " character
   17 | printf("%lf\n %lf\n %lf\",S,L,h);
      |        ^
a.cc:17:8: error: missing terminating " character
   17 | printf("%lf\n %lf\n %lf\",S,L,h);
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:12:7: error: no matching function for call to 'sqrt(__gnu_cxx::__enable_if<true, double>::__type, int)'
   12 | c=sqrt(a*a+b*b-2*a*b*cos(C),2);
      |   ~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from a.cc:3:
/usr/include/c++/14/cmath:454:5: note: candidate: 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::sqrt(_Tp)'
  454 |     sqrt(_Tp __x)
      |     ^~~~
/usr/include/c++/14/cmath:454:5: note:   candidate expects 1 argument, 2 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:176:1: note: candidate: 'double sqrt(double)'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:446:3: note: candidate: 'constexpr long double std::sqrt(long double)'
  446 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/14/cmath:446:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:442:3: note: candidate: 'constexpr float std::sqrt(float)'
  442 |   sqrt(float __x)
      |   ^~~~
/usr/include/c++/14/cmath:442:3: note:   candidate expects 1 argument, 2 provided
a.cc:13:8: error: expected ';' before 'a'
   13 | S=(1/2)a*b*sin(C);
      |        ^
      |        ;
a.cc:19:1: error: expected primary-expression before 'return'
   19 | return 0;
      | ^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;

int main(){
int a,b,C;
double S,L,h,pi,c;
pi=acos(-1);
cin >>a >>b >>C;
C=C*pi/180;
c=sqrt(a*a+b*b-2*a*b*cos(C),2);
S=(1/2)a*b*sin(C);
L=a+b+c;
h=2*S/a;

printf("%lf\n %lf\n %lf\n",S,L,h);

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: no matching function for call to 'sqrt(__gnu_cxx::__enable_if<true, double>::__type, int)'
   12 | c=sqrt(a*a+b*b-2*a*b*cos(C),2);
      |   ~~~~^~~~~~~~~~~~~~~~~~~~~~~~
In file included from a.cc:3:
/usr/include/c++/14/cmath:454:5: note: candidate: 'template<class _Tp> constexpr typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::sqrt(_Tp)'
  454 |     sqrt(_Tp __x)
      |     ^~~~
/usr/include/c++/14/cmath:454:5: note:   candidate expects 1 argument, 2 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:176:1: note: candidate: 'double sqrt(double)'
  176 | __MATHCALL (sqrt,, (_Mdouble_ __x));
      | ^~~~~~~~~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:176:1: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:446:3: note: candidate: 'constexpr long double std::sqrt(long double)'
  446 |   sqrt(long double __x)
      |   ^~~~
/usr/include/c++/14/cmath:446:3: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/cmath:442:3: note: candidate: 'constexpr float std::sqrt(float)'
  442 |   sqrt(float __x)
      |   ^~~~
/usr/include/c++/14/cmath:442:3: note:   candidate expects 1 argument, 2 provided
a.cc:13:8: error: expected ';' before 'a'
   13 | S=(1/2)a*b*sin(C);
      |        ^
      |        ;
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
??
int main(){
int a,b,C;
double S,L,h,pi,d,rad;
pi=acos(-1);
cin >>a >>b >>C;
rad=C*pi/180;
d=sqrt(a*a+b*b-2*a*b*cos(rad));
S=(1/2.0)a*b*sin(rad);
L=a+b+d;
h=b*sin(rad);
??
printf("%lf\n%lf\n%lf\n",S,L,h);
??
return 0;
}

Compiler output:
a.cc:5:1: error: expected unqualified-id before '?' token
    5 | ??
      | ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;

int main(){
int a,b,C;
double S,L,h,pi,d,rad;
pi=acos(-1);
cin >>a >>b >>C;
rad=C*pi/180;
d=sqrt(a*a+b*b-2*a*b*cos(rad));
S=(1/2.0)a*b*sin(rad);
L=a+b+d;
h=b*sin(rad);
printf("%lf\n%lf\n%lf\n",S,L,h);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected ';' before 'a'
   13 | S=(1/2.0)a*b*sin(rad);
      |          ^
      |          ;
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;

int main(){
int a,b,C;
double S,L,h,pi,d,rad;
pi=acos(-1.0);
cin >>a >>b >>C;
rad=C*pi/180.0;
d=sqrt(a*a+b*b-2*a*b*cos(rad));
S=(1.0/2.0)a*b*sin(rad);
L=a+b+d;
h=b*sin(rad);
printf("%lf\n%lf\n%lf\n",S,L,h);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected ';' before 'a'
   13 | S=(1.0/2.0)a*b*sin(rad);
      |            ^
      |            ;
Language: C++



using System;
class A{
static void Main(){
double []CS=Console.ReadLine().Split().Select(double.Parse).ToArray();

var h = Math.Sin(CS[2] * (Math.PI / 180))*CS[0];
Console.WriteLine(h*CS[1]/(double)2);
var Acchi=CS[1]-Math.Cos(CS[2]*(Math.PI/180))*CS[0];
Console.WriteLine(Math.Sqrt(Acchi*Acchi+h*h));
Console.WriteLine(h*cs[1]/(double)CS[0]);

}

}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System;
      |       ^~~~~~
a.cc:16:2: error: expected ';' after class definition
   16 | }
      |  ^
      |  ;
a.cc: In static member function 'static void A::Main()':
a.cc:6:8: error: structured binding declaration cannot have type 'double'
    6 | double []CS=Console.ReadLine().Split().Select(double.Parse).ToArray();
      |        ^~
a.cc:6:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:8: error: empty structured binding declaration
a.cc:6:10: error: expected initializer before 'CS'
    6 | double []CS=Console.ReadLine().Split().Select(double.Parse).ToArray();
      |          ^~
a.cc:8:1: error: 'var' was not declared in this scope
    8 | var h = Math.Sin(CS[2] * (Math.PI / 180))*CS[0];
      | ^~~
a.cc:9:1: error: 'Console' was not declared in this scope
    9 | Console.WriteLine(h*CS[1]/(double)2);
      | ^~~~~~~
a.cc:9:19: error: 'h' was not declared in this scope
    9 | Console.WriteLine(h*CS[1]/(double)2);
      |                   ^
a.cc:9:21: error: 'CS' was not declared in this scope
    9 | Console.WriteLine(h*CS[1]/(double)2);
      |                     ^~
a.cc:10:5: error: expected ';' before 'Acchi'
   10 | var Acchi=CS[1]-Math.Cos(CS[2]*(Math.PI/180))*CS[0];
      |     ^~~~~
a.cc:11:19: error: 'Math' was not declared in this scope
   11 | Console.WriteLine(Math.Sqrt(Acchi*Acchi+h*h));
      |                   ^~~~
a.cc:11:29: error: 'Acchi' was not declared in this scope
   11 | Console.WriteLine(Math.Sqrt(Acchi*Acchi+h*h));
      |                             ^~~~~
a.cc:12:21: error: 'cs' was not declared in this scope
   12 | Console.WriteLine(h*cs[1]/(double)CS[0]);
      |                     ^~
Language: C++

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

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

	cin >> a >> b >> c;

	cout << (1.0 / 2.0) * a * b * sin( c ) << endl;
	cout << a + b + sqrt( pow(a, 2) + pow(b???2) - 2.0 * a * b * cos( c ) ) << endl;
	cout << b * sin( c ) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:49: error: expected primary-expression before '?' token
   11 |         cout << a + b + sqrt( pow(a, 2) + pow(b???2) - 2.0 * a * b * cos( c ) ) << endl;
      |                                                 ^
a.cc:11:50: error: expected primary-expression before '?' token
   11 |         cout << a + b + sqrt( pow(a, 2) + pow(b???2) - 2.0 * a * b * cos( c ) ) << endl;
      |                                                  ^
a.cc:11:52: error: expected ':' before ')' token
   11 |         cout << a + b + sqrt( pow(a, 2) + pow(b???2) - 2.0 * a * b * cos( c ) ) << endl;
      |                                                    ^
      |                                                    :
a.cc:11:52: error: expected primary-expression before ')' token
a.cc:11:52: error: expected ':' before ')' token
   11 |         cout << a + b + sqrt( pow(a, 2) + pow(b???2) - 2.0 * a * b * cos( c ) ) << endl;
      |                                                    ^
      |                                                    :
a.cc:11:52: error: expected primary-expression before ')' token
a.cc:11:52: error: expected ':' before ')' token
   11 |         cout << a + b + sqrt( pow(a, 2) + pow(b???2) - 2.0 * a * b * cos( c ) ) << endl;
      |                                                    ^
      |                                                    :
a.cc:11:52: error: expected primary-expression before ')' token
Language: C++

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

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

	cin >> a >> b >> c;

	cout << setprecision(9) << (1.0 / 2.0) * a * b * sin( c ) << endl;
	cout << setprecision(9) << a + b + sqrt( pow(a, 2) + pow(b, 2) - 2.0 * a * b * cos( c ) ) << endl;
	cout << setprecision(9) << b * sin( c ) << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'setprecision' was not declared in this scope
   10 |         cout << setprecision(9) << (1.0 / 2.0) * a * b * sin( c ) << 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 namespace std;
Language: C++

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

#define PI=3.14159265358979

int main(){
 int a,b,c;
 double s,l,h;

 cin >> a >> b >> c ;

 s=(double)a*b*sin(PI*c/180)/2;
 l=(double)sqrt(a*a+b*b-2*a*b*cos(c*PI/180));
 h=b*sin(c*PI/180);

 cout << fixed << s << fixed << l << fixed << h << endl ;

 return 0;
}

Compiler output:
a.cc:5:9: warning: ISO C++11 requires whitespace after the macro name
    5 | #define PI=3.14159265358979
      |         ^~
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before '=' token
    5 | #define PI=3.14159265358979
      |           ^
a.cc:13:20: note: in expansion of macro 'PI'
   13 |  s=(double)a*b*sin(PI*c/180)/2;
      |                    ^~
a.cc:5:11: error: expected primary-expression before '=' token
    5 | #define PI=3.14159265358979
      |           ^
a.cc:14:37: note: in expansion of macro 'PI'
   14 |  l=(double)sqrt(a*a+b*b-2*a*b*cos(c*PI/180));
      |                                     ^~
a.cc:5:11: error: expected primary-expression before '=' token
    5 | #define PI=3.14159265358979
      |           ^
a.cc:15:12: note: in expansion of macro 'PI'
   15 |  h=b*sin(c*PI/180);
      |            ^~
Language: C++

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

#define PI=3.14159265358979

int main(){
 int a,b,c;
 double s,l,h;

 cin >> a >> b >> c ;

 s=a*b*sin(PI*c/180)/2;
 l=a+b+sqrt(a*a+b*b-2*a*b*cos(c*PI/180));
 h=b*sin(c*PI/180);

 cout << fixed << s << fixed << l << fixed << h << endl ;

 return 0;
}

Compiler output:
a.cc:5:9: warning: ISO C++11 requires whitespace after the macro name
    5 | #define PI=3.14159265358979
      |         ^~
a.cc: In function 'int main()':
a.cc:5:11: error: expected primary-expression before '=' token
    5 | #define PI=3.14159265358979
      |           ^
a.cc:13:12: note: in expansion of macro 'PI'
   13 |  s=a*b*sin(PI*c/180)/2;
      |            ^~
a.cc:5:11: error: expected primary-expression before '=' token
    5 | #define PI=3.14159265358979
      |           ^
a.cc:14:33: note: in expansion of macro 'PI'
   14 |  l=a+b+sqrt(a*a+b*b-2*a*b*cos(c*PI/180));
      |                                 ^~
a.cc:5:11: error: expected primary-expression before '=' token
    5 | #define PI=3.14159265358979
      |           ^
a.cc:15:12: note: in expansion of macro 'PI'
   15 |  h=b*sin(c*PI/180);
      |            ^~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	double a, b, c, degc, radc;
	double s, r, l, h;
	double pi = 4 * atan( 1.0 );

	cin >> a >> b >> degc;
	radc = degc * pi / 180.0;
	s = b * a * sin( radc ) / 2.0;
	c = sqrt( a*a + b*b - 2*a*b*cos( radc ) );
	r = c / ( 2.0 * sin( radc ) );
	l = 2.0 * r * pi; /* circumference */

	l = a + b + c;
	h = b * sin( radc );

	cout << fixed << s << endl << l << endl << h << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'atan' was not declared in this scope
    8 |         double pi = 4 * atan( 1.0 );
      |                         ^~~~
a.cc:12:21: error: 'sin' was not declared in this scope
   12 |         s = b * a * sin( radc ) / 2.0;
      |                     ^~~
a.cc:13:37: error: 'cos' was not declared in this scope
   13 |         c = sqrt( a*a + b*b - 2*a*b*cos( radc ) );
      |                                     ^~~
a.cc:13:13: error: 'sqrt' was not declared in this scope
   13 |         c = sqrt( a*a + b*b - 2*a*b*cos( radc ) );
      |             ^~~~
Language: C++

import math, re

a, b, c = [int(n) for n in re.split(r"\s+", input().strip())]
h = b * math.sin(c * math.pi / 180)
S = a * h / 2
L = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(c * math.pi / 180)) + a + b
print("%f %f %f" % (S, L, h))



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

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

int main(int argc, char const *argv[])
{
	double a, b, C;
	double S, L, h;

	cin >> a >> b >> C;
	double PI = acos(-1);
	C=C*PI/180;
	S=a*b*sin(C)/2.0;
	L=a + b + sqrt(a*a + b*b -2*a*b*cos(C));
	h=b*sin(C);

	cout <<fixed << << S << " " << L <<" " << h << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:18:25: error: expected primary-expression before '<<' token
   18 |         cout <<fixed << << S << " " << L <<" " << h << endl;
      |                         ^~
Language: C++

#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
 
int main(){
double a,b,C;
double S,L,h;
cin >> a >> b >> C ;
C = C * 3.1415926535/180;
h = b*sin(C);
L = a + b + sqrt(pow(b*cos(C)-a,2)+pow(b*sin(C),2));
S = a * h / 2;
printf("%f\n%f\n%f\n",S,L,h);
return 0;
}


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

#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;

int main(){
    int a, b, c;
    double S, L, h, d;
    cin >>a >>b >>C;
    d = (acos(-1.0)*C)/180.0;
    S = a*b*sin(d)/2.0;
    L = a + b + sqrt(a * a + b * b - 2 * a * b * cos(d));
    h = b * sin(d);

    printf("%lf\n%lf\n%lf\n", S, L, h);

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'C' was not declared in this scope
    9 |     cin >>a >>b >>C;
      |                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    cout<<fixed<<setprecision(12);
    double a,b,c;
    cin>>a>>b>>C;
    double PI=acos(-1.0);
    c=C/180.0*PI;
    cout<<a*bsin(C)/2.0<<endl;
    double cc=a*a+b*b-2*a*b*cos(C);
    cout<<a+b+sqrt(cc)<<endl;
    cout<<b*sin(C)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'C' was not declared in this scope
    6 |     cin>>a>>b>>C;
      |                ^
a.cc:9:13: error: 'bsin' was not declared in this scope; did you mean 'sin'?
    9 |     cout<<a*bsin(C)/2.0<<endl;
      |             ^~~~
      |             sin
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    cout<<fixed<<setprecision(12);
    double a,b,C;
    cin>>a>>b>>C;
    double PI=acos(-1.0);
    c=C/180.0*PI;
    cout<<a*bsin(C)/2.0<<endl;
    double cc=a*a+b*b-2*a*b*cos(C);
    cout<<a+b+sqrt(cc)<<endl;
    cout<<b*sin(C)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'c' was not declared in this scope
    8 |     c=C/180.0*PI;
      |     ^
a.cc:9:13: error: 'bsin' was not declared in this scope; did you mean 'sin'?
    9 |     cout<<a*bsin(C)/2.0<<endl;
      |             ^~~~
      |             sin
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    cout<<fixed<<setprecision(12);
    double a,b,C;
    cin>>a>>b>>C;
    double PI=acos(-1.0);
    C=C/180.0*PI;
    cout<<a*bsin(C)/2.0<<endl;
    double cc=a*a+b*b-2*a*b*cos(C);
    cout<<a+b+sqrt(cc)<<endl;
    cout<<b*sin(C)<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'bsin' was not declared in this scope; did you mean 'sin'?
    9 |     cout<<a*bsin(C)/2.0<<endl;
      |             ^~~~
      |             sin
Language: C++

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] strs = str.split(" ");
		int a = Integer.parseInt(strs[0]);
		int b = Integer.parseInt(strs[1]);
		double C = 2 * Math.PI * (Integer.parseInt(strs[2])) / 360;

		double S, L, h;
		S = a * b * Math.sin(C) / 2;
		L = a + b + Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(C));
		h = b * Math.cos(C);

		System.out.println(S);
		System.out.println(L);
		System.out.println(h);
	}
}


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