criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        double a = s.nextDouble(), b = sc.nextDouble(), angle = sc.nextDouble();
        double c = Math.toRadians(angle);
        
        double s = a * b * Math.sin(c) / 2;
        double l = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(c));
        double h = b * Math.sin(c);
        
        System.out.println(s);
        System.out.println(l);
        System.out.println(h);
    }
}


Compiler output:
Main.java:6: error: cannot find symbol
        double a = s.nextDouble(), b = sc.nextDouble(), angle = sc.nextDouble();
                   ^
  symbol:   variable s
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class Main1{
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        double a = scan.nextDouble();
        double b = scan.nextDouble();
        double C = scan.nextDouble();
        double c = Math.sqrt((a *a) + (b * b) - (2 * a * b * Math.cos(C * Math.PI / 180)));
        double l = a + b + c;
        double s = l/2;
        double area = Math.sqrt(s* (s-a) *(s-b) *(s-c));
        double h = area * (2 / a);
        System.out.printf("%.8f\n", area);
        System.out.printf("%.8f\n", l);
        System.out.printf("%.8f\n", h);

    }
}


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

import java.math.BigDecimal;
import java.math.MathContext;
import java.util.Scanner;

public class Main {

    public BigDecimal pow(BigDecimal value) {
        return value.multiply(value);
    }

    public static BigDecimal sqrt(BigDecimal a, int scale){
        BigDecimal x = new BigDecimal(
                Math.sqrt(a.doubleValue()), MathContext.DECIMAL64);
        if(scale < 17) return x;

        BigDecimal b2 = new BigDecimal(2);
        for(int tempScale = 16; tempScale < scale; tempScale *= 2){
            x = x.subtract(
                    x.multiply(x).subtract(a).divide(
                    x.multiply(b2), scale, BigDecimal.ROUND_HALF_EVEN));
        }
        return x;
    }

    public BigDecimal average(int[] values) {
        int sum = 0;
        for (int i=0; i<values.length; i++) {
            sum += values[i];
        }
        return new BigDecimal(sum).divide(new BigDecimal(values.length));
    }

    public BigDecimal var(int[] values) {
        BigDecimal sum = BigDecimal.ZERO;
        for (int i=0; i<values.length; i++) {
            sum = sum.add(pow(new BigDecimal(values[i]).subtract(average(values))));
        }

        return sum.divide(new BigDecimal(values.length), 2, BigDecimal.ROUND_HALF_UP);
    }

    public BigDecimal std(int values[]) {
        return sqrt(var(values), 3);
    }

    public static void main(String[] args) {

    	Scanner sc = new Scanner(System.in);

        int count = 0;
        int size = 0;
        int[] values = new int[count];

        StandardDeviation t = new StandardDeviation();
        while(true) {
        	count = sc.nextInt();
        	if(count == 0) break;
            size = count;
            values = new int[size];
        	for(int i=0; i<count; i++) {
        		values[i] = sc.nextInt();
        	}
        	System.out.println(t.std(values));
        }

        sc.close();
    }
}


Compiler output:
Main.java:54: error: cannot find symbol
        StandardDeviation t = new StandardDeviation();
        ^
  symbol:   class StandardDeviation
  location: class Main
Main.java:54: error: cannot find symbol
        StandardDeviation t = new StandardDeviation();
                                  ^
  symbol:   class StandardDeviation
  location: class Main
Note: Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
Language: Java

import java.util.Scanner;

public class Main2 {

	public static void main(String[] args) {

		int input_side_a  = 0;
		int input_side_b  = 0;
		int input_angel_c  = 0;

		double side_c =0;
		double area_s = 0.0;
		double circum_l = 0.0;
		double height_h = 0.0;
		double radians_c = 0.0;

		Scanner sc= new Scanner( System.in );

		input_side_a = sc.nextInt();
		input_side_b = sc.nextInt();
		input_angel_c = sc.nextInt();

		radians_c = Math.toRadians( input_angel_c );

		area_s = ( 1.0 / 2.0 ) * input_side_a * input_side_b * Math.sin( radians_c );
		side_c = Math.sqrt( Math.pow( input_side_a, 2 ) + Math.pow( input_side_b, 2 ) - 2 * input_side_a * input_side_b * Math.cos( radians_c ) );
		circum_l = input_side_a + input_side_b + side_c;
		height_h = input_side_b * Math.sin( radians_c );

		System.out.println( area_s );
		System.out.println( circum_l );
		System.out.println( height_h );

		sc.close();
	}
}


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

import java.io.IOException;
import java.util.Scanner;
 
class Main {
 
    public static void main(String[] args) throws IOException {
        Scanner scane = new Scanner(System.in);

        double a = scane.nextDouble();
        double b = scane.nextDouble(); 
        double C = scane.nextDouble();
        System.out.println(a*(b*Math.sin(Math.toRadians(C)))/2);
 System.out.println(a+b+Math.sqrt(Math.pow(a, 2)+Math.pow(b, 2)-(2*a*b*Math.cos(Math.toRadians(C)))));
        System.out.println(Math.sin(Math.toRadians(C))*b);
 
    }


Compiler output:
Main.java:16: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.io.*;
import java.util.*;
import java.lang.*;
import java.lang.Math;

class Main{
  public static void main(String[] args) throws IOException{
    Scanner scan=new Scanner(System.in);
    double a=Double.parseDouble(scan.next());
    double b=Double.parseDouble(scan.next());
    int c=Integer.parseInt(scan.next());

    double s=a*b*Math.sin(Math.toRadians(c))/2;
    double l=a+b+Math.sqrt(Math.pow(a,2)+Math.pow(b,2)-2*a*b*Math.cos(Math.toRadians(c)));
    double h=b*Math.sin(Math.toRadians(c));
    System.out.println(s);
    System.out.println(l);
    System.out.println(h);


Compiler output:
Main.java:18: error: reached end of file while parsing
    System.out.println(h);
                          ^
1 error
Language: Java

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

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		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:
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
		String str = br.readLine();
		                        ^
1 error
Language: Java

import java.util.Scanner;
public class Triangle {
	public static void main(String[] args){
		Scanner scan=new Scanner(System.in);
		double a=scan.nextInt();
		double b=scan.nextInt();
		double C=scan.nextInt();
		C=Math.PI*C/180.0;
		double S=a*b*Math.sin(C)/2.0;
		double L=a+b+Math.sqrt(a*a+b*b-2*a*b*Math.cos(C));
		double h=b*Math.sin(C);
		System.out.printf("%.8f\n",S);
		System.out.printf("%.8f\n",L);
		System.out.printf("%.8f\n",h);
		scan.close();
	}
}

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

import java.util.Scanner;
import java.lang.Math;
public class Triangle {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		double a = Double.parseDouble(scan.next());
		double b = Double.parseDouble(scan.next());
		double c = Double.parseDouble(scan.next());
		c=Math.toRadians(c);
		scan.close();
		System.out.println(String.format("%6f\n%6f\n%6f\n"
				,0.5*a*b*Math.sin(c),a+b+Math.sqrt(a*a+b*b-2*a*b*Math.cos(c)),b*Math.sin(c)));
		}
}

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

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

using namespace std;

int main(){
	double a,b,c,degree,S;
	scanf("%lf %lf %lf",&a,&b,&degree);
	S = (0.5)*a*b*sin(M_PI*degree/180);
	c = sqrt(a*a+b*b-2*a*b*cos(M_PI*degree/180));
	printf("%.8lf\n",S);
	printf("%.8lf\n",a+b+c);
	printf("%.8lf\n",2*S/a);
	
	return 0;
}



Compiler output:
main.c:4:1: error: unknown type name 'using'
    4 | using namespace std;
      | ^~~~~
main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    4 | using namespace std;
      |                 ^~~
Language: C

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

int main(){
double a,b,,c,d,a,l,lad,z,h;

scanf("%f%f%d",a,b,d);
lad=d/180;
s=a*b*sin(lad)/2;
z=a*a+b*b-2*a*b*cos(lad);
c=sqrt(z);
l=a+b+c;
h=2*s/a



printf("%f\n",s);
printf("%f\n",l);
printf("%f\n",h);

return 0;
}




Compiler output:
main.c: In function 'main':
main.c:5:12: error: expected identifier or '(' before ',' token
    5 | double a,b,,c,d,a,l,lad,z,h;
      |            ^
main.c:7:20: error: 'd' undeclared (first use in this function)
    7 | scanf("%f%f%d",a,b,d);
      |                    ^
main.c:7:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:1: error: 'lad' undeclared (first use in this function)
    8 | lad=d/180;
      | ^~~
main.c:9:1: error: 's' undeclared (first use in this function)
    9 | s=a*b*sin(lad)/2;
      | ^
main.c:10:1: error: 'z' undeclared (first use in this function)
   10 | z=a*a+b*b-2*a*b*cos(lad);
      | ^
main.c:11:1: error: 'c' undeclared (first use in this function)
   11 | c=sqrt(z);
      | ^
main.c:12:1: error: 'l' undeclared (first use in this function)
   12 | l=a+b+c;
      | ^
main.c:13:1: error: 'h' undeclared (first use in this function)
   13 | h=2*s/a
      | ^
main.c:13:8: error: expected ';' before 'printf'
   13 | h=2*s/a
      |        ^
      |        ;
......
   17 | printf("%f\n",s);
      | ~~~~~~
Language: C

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

int main(){
double a,b,,c,d,a,l,lad,z,h;
double pai =3.1415926;

scanf("%f%f%d",a,b,d);
lad=d/180*pai;
s=a*b*sin(lad)/2;
z=a*a+b*b-2*a*b*cos(lad);
c=sqrt(z);
l=a+b+c;
h=2*s/a;



printf("%f\n",s);
printf("%f\n",l);
printf("%f\n",h);

return 0;
}




Compiler output:
main.c: In function 'main':
main.c:5:12: error: expected identifier or '(' before ',' token
    5 | double a,b,,c,d,a,l,lad,z,h;
      |            ^
main.c:8:20: error: 'd' undeclared (first use in this function)
    8 | scanf("%f%f%d",a,b,d);
      |                    ^
main.c:8:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:1: error: 'lad' undeclared (first use in this function)
    9 | lad=d/180*pai;
      | ^~~
main.c:10:1: error: 's' undeclared (first use in this function)
   10 | s=a*b*sin(lad)/2;
      | ^
main.c:11:1: error: 'z' undeclared (first use in this function)
   11 | z=a*a+b*b-2*a*b*cos(lad);
      | ^
main.c:12:1: error: 'c' undeclared (first use in this function)
   12 | c=sqrt(z);
      | ^
main.c:13:1: error: 'l' undeclared (first use in this function)
   13 | l=a+b+c;
      | ^
main.c:14:1: error: 'h' undeclared (first use in this function)
   14 | h=2*s/a;
      | ^
Language: C

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

int main(){
double a,b,c,d,a,l,lad,z,h;
double pai =3.1415926;

scanf("%f%f%f",a,b,d);
lad=d/180*pai;
s=a*b*sin(lad)/2;
z=a*a+b*b-2*a*b*cos(lad);
c=sqrt(z);
l=a+b+c;
h=2*s/a;



printf("%f\n",s);
printf("%f\n",l);
printf("%f\n",h);

return 0;
}




Compiler output:
main.c: In function 'main':
main.c:5:16: error: redeclaration of 'a' with no linkage
    5 | double a,b,c,d,a,l,lad,z,h;
      |                ^
main.c:5:8: note: previous declaration of 'a' with type 'double'
    5 | double a,b,c,d,a,l,lad,z,h;
      |        ^
main.c:10:1: error: 's' undeclared (first use in this function)
   10 | s=a*b*sin(lad)/2;
      | ^
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
double a,b,c,d,a,l,lad,z,h;
double pai =3.1415926;

scanf("%f%f%f",&a,&b,&d);
lad=d/180*pai;
s=a*b*sin(lad)/2;
z=a*a+b*b-2*a*b*cos(lad);
c=sqrt(z);
l=a+b+c;
h=2*s/a;



printf("%f\n",s);
printf("%f\n",l);
printf("%f\n",h);

return 0;
}




Compiler output:
main.c: In function 'main':
main.c:5:16: error: redeclaration of 'a' with no linkage
    5 | double a,b,c,d,a,l,lad,z,h;
      |                ^
main.c:5:8: note: previous declaration of 'a' with type 'double'
    5 | double a,b,c,d,a,l,lad,z,h;
      |        ^
main.c:10:1: error: 's' undeclared (first use in this function)
   10 | s=a*b*sin(lad)/2;
      | ^
main.c:10:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h> 
 
int main(){ 
     int a, b, angle; 
     double s, l, h; 
 
 
     scanf("%d %d %d", &a, &b, &angle); 
 
    h=b*sin(angle*M_PI/180.0); 
    s=a*h/2; 
     l=a+b+sqrt((a*a+b*b-2*a*b*cos(angle*M_PI/180.0))); 
    printf("%f\n", s); 
    printf("%f\n", l); 
     printf("%f\n", h); 

 
     return 0; 
 } 



Compiler output:
main.c: In function 'main':
main.c:10:9: error: implicit declaration of function 'sin' [-Wimplicit-function-declaration]
   10 |     h=b*sin(angle*M_PI/180.0);
      |         ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'sin'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:10:9: warning: incompatible implicit declaration of built-in function 'sin' [-Wbuiltin-declaration-mismatch]
   10 |     h=b*sin(angle*M_PI/180.0);
      |         ^~~
main.c:10:9: note: include '<math.h>' or provide a declaration of 'sin'
main.c:10:19: error: 'M_PI' undeclared (first use in this function)
   10 |     h=b*sin(angle*M_PI/180.0);
      |                   ^~~~
main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:12: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   12 |      l=a+b+sqrt((a*a+b*b-2*a*b*cos(angle*M_PI/180.0)));
      |            ^~~~
main.c:12:12: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:12: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:12:12: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:12:32: error: implicit declaration of function 'cos' [-Wimplicit-function-declaration]
   12 |      l=a+b+sqrt((a*a+b*b-2*a*b*cos(angle*M_PI/180.0)));
      |                                ^~~
main.c:12:32: note: include '<math.h>' or provide a declaration of 'cos'
main.c:12:32: warning: incompatible implicit declaration of built-in function 'cos' [-Wbuiltin-declaration-mismatch]
main.c:12:32: note: include '<math.h>' or provide a declaration of 'cos'
Language: C

include <stdio.h>
#include <math.h>
 
#define PI 3.141592653589793
 
int main(void){
    int a,b,c;
    double s,l,h;
     
    scanf("%d%d%d",&a,&b,&c);
     
    s = sin(c * PI / 180.0)*a*b/2;
    l = a + b + sqrt(a*a + b*b - 2*a*b * cos(c * PI / 180.0));
    h = s/a*2;
     
    printf("%lf %lf %lf\n" ,s,l,h);
     
    return 0;
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   10 |     scanf("%d%d%d",&a,&b,&c);
      |     ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | 
main.c:10:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   10 |     scanf("%d%d%d",&a,&b,&c);
      |     ^~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:16:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   16 |     printf("%lf %lf %lf\n" ,s,l,h);
      |     ^~~~~~
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:16:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:16:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

void triangle (int side1,int side2,int angle);

int main () {
    int side1,side2,angle;
    scanf ("%d %d %d",&side1,&side2,&angle);
    
    triangle (side1,side2,angle);
    
    return 0;
}

void triangle (int side1,int side2,int angle) {
    double S,L,h,side3;
    angle = angle * *M_PI / 180;
    
    h = side2 * sin (angle);
    S = (side1 * h) / 2;
    
    side3 = sqrt (side1 * side1 + side2 * side2 - 2*side1*side2*cos (angle));
    L = side1 + side2 + side3;
    
    printf ("%f\n%f\n%f\n",S,L,h);
}


Compiler output:
main.c: In function 'triangle':
main.c:17:21: error: invalid type argument of unary '*' (have 'double')
   17 |     angle = angle * *M_PI / 180;
      |                     ^
Language: C

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

int main(void)
{   
    int a,b,c;
    double s,l,h;
    
    scanf("%d%d%d",&a,&b,&c);
    h=double(0.5*a*b*sin(c));
    s=a*h/2;
    l=double(a+b+sqrt(pow(a,2)+pow(b,2)));
    
    printf("%d\n%d\n%d\n",s,l,h);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:7: error: expected expression before 'double'
   10 |     h=double(0.5*a*b*sin(c));
      |       ^~~~~~
main.c:12:7: error: expected expression before 'double'
   12 |     l=double(a+b+sqrt(pow(a,2)+pow(b,2)));
      |       ^~~~~~
Language: C

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

int main(void)
{
    double a,b,c,s,l,h;
    
    scanf("%lf%lf%lf",&a,&b,&c);
    h=0.5*a*b*-2bc*sin(c);
    s=a*h/2;
    l=a+b+sqrt(pow(a,2)+pow(b,2));
    
    printf("%f\n%f\n%f\n",s,l,h);
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:16: error: invalid suffix "bc" on integer constant
    9 |     h=0.5*a*b*-2bc*sin(c);
      |                ^~~
Language: C

#include <stdio.h>
#include <math.h>
#define PI=acos(-1);

int main(void)
{
    double a,b,c,s,l,h;
    
    scanf("%lf%lf%lf",&a,&b,&c);
    rad=c*PI/180;
    
    h=0.5*a*b*sin(c);
    s=a*h/2;
    l=a+b+sqrt(pow(a,2)+pow(b,2)-2*a*b*cos(c));
    
    printf("%f\n%f\n%f\n",s,l,h);
    return 0;
}


Compiler output:
main.c:3:9: warning: ISO C99 requires whitespace after the macro name
    3 | #define PI=acos(-1);
      |         ^~
main.c: In function 'main':
main.c:10:5: error: 'rad' undeclared (first use in this function)
   10 |     rad=c*PI/180;
      |     ^~~
main.c:10:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:11: error: expected expression before '=' token
    3 | #define PI=acos(-1);
      |           ^
main.c:10:11: note: in expansion of macro 'PI'
   10 |     rad=c*PI/180;
      |           ^~
main.c:10:13: error: expected expression before '/' token
   10 |     rad=c*PI/180;
      |             ^
Language: C

#include <stdio.h>
#include <math.h>
#define PI=acos(-1);

int main(void)
{
    double rad,a,b,c,s,l,h;
    
    scanf("%lf%lf%lf",&a,&b,&c);
    rad=c*PI/180;
    
    h=0.5*a*b*sin(c);
    s=a*h/2;
    l=a+b+sqrt(pow(a,2)+pow(b,2)-2*a*b*cos(c));
    
    printf("%f\n%f\n%f\n",s,l,h);
    return 0;
}


Compiler output:
main.c:3:9: warning: ISO C99 requires whitespace after the macro name
    3 | #define PI=acos(-1);
      |         ^~
main.c: In function 'main':
main.c:3:11: error: expected expression before '=' token
    3 | #define PI=acos(-1);
      |           ^
main.c:10:11: note: in expansion of macro 'PI'
   10 |     rad=c*PI/180;
      |           ^~
main.c:10:13: error: expected expression before '/' token
   10 |     rad=c*PI/180;
      |             ^
Language: C

#include <stdio.h>
#include <math.h>
#define PI=acos(-1)

int main(void)
{
    double rad,a,b,c,s,l,h;
    
    scanf("%lf%lf%lf",&a,&b,&c);
    rad=c*PI/180;
    
    h=0.5*a*b*sin(c);
    s=a*h/2;
    l=a+b+sqrt(pow(a,2)+pow(b,2)-2*a*b*cos(c));
    
    printf("%f\n%f\n%f\n",s,l,h);
    return 0;
}


Compiler output:
main.c:3:9: warning: ISO C99 requires whitespace after the macro name
    3 | #define PI=acos(-1)
      |         ^~
main.c: In function 'main':
main.c:3:11: error: expected expression before '=' token
    3 | #define PI=acos(-1)
      |           ^
main.c:10:11: note: in expansion of macro 'PI'
   10 |     rad=c*PI/180;
      |           ^~
Language: C

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

int main(){

double a,b,C,c;
double S,L,h;
	double rad,PI = acos(-1);
	
	scanf("%lf %lf %lf",&a,&b,&C);
	
	rad = C * PI / 180;
	
	S = 0.5*a*b*sin(rad);
	
	c = sprt(a*a + b*b - 2*a*b*cos(rad));
	L = a+b+c;
	
	h = a*sin(rad);
	
	printf("%lf\n%lf\n%lf\n",S,L,h);
	

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:13: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   16 |         c = sprt(a*a + b*b - 2*a*b*cos(rad));
      |             ^~~~
      |             sqrt
Language: C

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

int main(){

 double a,b,c,rad,S,L,h;
 
 scanf("%lf%lf%lf",&a,&b,&rad);
 rad = 2 * PI * rad /360.0;
 c = sqrt(a*a + b*b - 2*a*b*cos(rad));
 S = a * b * sin(rad) / 2.0:
 L = a + b + c;
 h = b * sin(rad);
 
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: 'PI' undeclared (first use in this function)
    9 |  rad = 2 * PI * rad /360.0;
      |            ^~
main.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:28: error: expected ';' before ':' token
   11 |  S = a * b * sin(rad) / 2.0:
      |                            ^
      |                            ;
Language: C

#include <stdio.h>
#include <math.h>
?
int main(){
?
?double a,b,c,rad,S,L,h;
??
?scanf("%lf%lf%lf",&a,&b,&rad);
?rad = M_2_PI * rad /360.0;
?c = sqrt(a*a + b*b - 2*a*b*cos(rad));
?S = a * b * sin(rad) / 2.0;
?L = a + b + c;
?h = b * sin(rad);
??
?return 0;
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ?
      | ^
Language: C

#include <stdio.h>
#include <math.h>
??
int main(){
??
double a,b,c,rad,S,L,h;
??
scanf("%lf%lf%lf",&a,&b,&rad);
rad = M_2_PI * rad /360.0;
c = sqrt(a*a + b*b - 2*a*b*cos(rad));
S = a * b * sin(rad) / 2.0;
L = a + b + c;
h = b * sin(rad);
printf("%f\n%f\n%f\n",S,L,h);
return 0;
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ??
      | ^
Language: C

#include <stdio.h>
#include <math.h>
??
int main(){
??
double a,b,c,rad,S,L,h;
??
scanf("%lf%lf%lf",&a,&b,&rad);

rad = M_2_PI * rad /360.0;

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

S = a * b * sin(rad) / 2.0;
L = a + b + c;
h = b * sin(rad);

printf("%f\n%f\n%f\n",S,L,h);
return 0;
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ??
      | ^
Language: C

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

int main(void){

  double a,b;
  int c,S,L,h,x;

  scanf("%lf %lf %d",&,&,&c);

  S = ((a * b) / 2) * sin((double)c);

  x = (a * a) + (b * b) - 2 * a * b * cos((double)c);
  L = a + b + sqrt(x);

  h = b * sin((double)c);

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

Compiler output:
main.c: In function 'main':
main.c:9:23: error: expected expression before ',' token
    9 |   scanf("%lf %lf %d",&,&,&c);
      |                       ^
Language: C

#include <stdio.h>
#include <math.h>
#define rep(i,l,n) for(i=l;i<n;i++)

int main(void){
	int a,b,C;
	double s,l,h,c,rad;
	double M_PI=3.1415926;
	
	scanf("%d %d %d",&a,&b,&C);
	
	rad=M_PI*C/180;
	s=a*b*sin(rad)/2;
	c=pow(a*a+b*b-2*a*b*cos(rad),0.5);
	l=a+b+c;
	h=2*s/a;
	
	printf("%f %f %f\n",s,l,h);
	
	return 0;
}

Compiler output:
In file included from main.c:2:
main.c: In function 'main':
main.c:8:16: error: expected identifier or '(' before numeric constant
    8 |         double M_PI=3.1415926;
      |                ^~~~
Language: C

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


int main()
{
	double a,b.c;
//	int	   c;
	double ans_s,ans_l,ans_h;

	scanf("%lf %lf %lf",&a,&b,&c);
	ans_s = (a * b * sin(c))/2;
	ans_l = a + b + sqrt(pow(a,2)+pow(b,2)-2*a*b*cos(c));
	ans_h = ans_s * 2 / a;
	
	printf("%lf\n %lf\n %lf\n",ans_s,ans_l,ans_h);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   10 |         double a,b.c;
      |                   ^
main.c:14:33: error: 'b' undeclared (first use in this function)
   14 |         scanf("%lf %lf %lf",&a,&b,&c);
      |                                 ^
main.c:14:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:36: error: 'c' undeclared (first use in this function)
   14 |         scanf("%lf %lf %lf",&a,&b,&c);
      |                                    ^
Language: C

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


int main()
{
	double a,b.c;
//	int	   c;
	double ans_s,ans_l,ans_h;

	scanf("%lf %lf %lf",&a,&b,&c);
	ans_s = (a * b * sin(c))/2;
	ans_l = a + b + sqrt(pow(a,2)+pow(b,2)-2*a*b*cos(c));
	ans_h = ans_s * 2 / a;
	
	printf("%lf\n%lf\n%lf\n",ans_s,ans_l,ans_h);

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
   10 |         double a,b.c;
      |                   ^
main.c:14:33: error: 'b' undeclared (first use in this function)
   14 |         scanf("%lf %lf %lf",&a,&b,&c);
      |                                 ^
main.c:14:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:36: error: 'c' undeclared (first use in this function)
   14 |         scanf("%lf %lf %lf",&a,&b,&c);
      |                                    ^
Language: C

ar=STDIN.gets.split
a =ar[0].to_f
b =ar[1].to_f
kakuc =ar[2].to_f*Math::PI/180.0

c=Math::sqrt(a*a+b*b-2*a*b*Math::cos(kakuc))
s=a*b*Math::sin(kakuc)/2
l=a+b+c
h=s/a*2

puts s
puts l
puts h

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | ar=STDIN.gets.split
      | ^~
main.c:1:1: error: type defaults to 'int' in declaration of 'ar' [-Wimplicit-int]
main.c:1:4: error: 'STDIN' undeclared here (not in a function)
    1 | ar=STDIN.gets.split
      |    ^~~~~
main.c:2:1: error: expected ',' or ';' before 'a'
    2 | a =ar[0].to_f
      | ^
Language: C

#include<stdio.h>
#include<math.h>
int main(void){
double a,b,c,h,sum,s;
scanf("%lf %lf %lf",&a,&b,&c);
h=sin(c*(M_PI*180)))*b;
s=a*h/2;
sum=a+b+sqrt(a*a+b*b-2*a*b*cos(c*(M_PI*180)));
printf("%lf\n%lf\n%lf\n",s,sum,h);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:20: error: expected ';' before ')' token
    6 | h=sin(c*(M_PI*180)))*b;
      |                    ^
      |                    ;
main.c:6:20: error: expected statement before ')' token
main.c:6:21: error: invalid type argument of unary '*' (have 'double')
    6 | h=sin(c*(M_PI*180)))*b;
      |                     ^~
Language: C

#include<stdio.h>
#include<math.h>
int main(){
  int a,b,c,pi = 3.1415892653589;
  double S,L,h;

  scanf("%d %d %d",&a,&b,&c);
  S = a * b * sin(c * pi / 180) / 2;
  L = a + b + sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * cos(c * pi / 180));
  h = 2 * S / a;

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

  return 0;

Compiler output:
main.c: In function 'main':
main.c:16:3: error: expected declaration or statement at end of input
   16 |   return 0;
      |   ^~~~~~
Language: C

#include <cstdio>
#include <cmath>

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

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

    printf("%lf\n", (double)1/2*a*b*sin(C*M_PI/180.0));
    printf("%lf\n", (double)a+b+sqrt(pow(a,2)+pow(b,2)-2*a*b*cos(C*M_PI/180.0)));
    printf("%lf\n", (double)b*sin(C*M_PI/180.0));
    return 0;
}

Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<math.h>
#define PA 3.1415926535
int main()
{
    double a, b, c,C;
    double S, L, h;
    double radius;
    scanf("%lf %lf %lf",&a,&b,&C);
    radius = C * 2 * PA / 360;
    S = a * b * sin(radius) / 2;
    h = 2 * S / a;
    c = sqrt(a*a + b*b - 2 * a*b*cos(rad));
    L = a + b + c;
    printf("%lf \n%lf \n%lf\n",S,L,h);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:38: error: 'rad' undeclared (first use in this function)
   13 |     c = sqrt(a*a + b*b - 2 * a*b*cos(rad));
      |                                      ^~~
main.c:13:38: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(void) {

	double a, b, s, l, h, i;
	double c = 0;

	scanf_s("%lf%lf%lf", &a, &b, &c);

	s = 0.5 * a * b * round(sin(c));
	i = sqrt(a*a + b*b - 2 * a*b* round(cos(c)));
	l = a + b + i;
	h = b * round(sin(c));

	printf("%f\n%f\n%f\n", s, l, h);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |         scanf_s("%lf%lf%lf", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C

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

double square(int l, int m, int N)
{
	return l*m*sin(N * M_PI / 180) / 2;
}

double length(int l, int m, int N)
{
	return sqrt(l*l + m*m - 2 * l*m*cos(N*M_PI / 180))l+m;
}

double height(int l, int m, int N)
{
	return m*sin(N*M_PI / 180);
}

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

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

	printf("%lf\n%lf\n%lf\n", square(a, b, C), length(a, b, C), height(a, b, C));

	return 0;
}

Compiler output:
main.c: In function 'length':
main.c:11:59: error: expected ';' before 'l'
   11 |         return sqrt(l*l + m*m - 2 * l*m*cos(N*M_PI / 180))l+m;
      |                                                           ^
      |                                                           ;
Language: C

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

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

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

  S = (double)(a) * b * sin(PI * c / 180) / 2;
  
  L = (double)(a + b) + sqrt(a * a + b * b - 2 * a * b * cos(PI * c / 180));

  h = (double)(b) * sin(PI * c / 180) / 2;

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:29: error: 'PI' undeclared (first use in this function)
   11 |   S = (double)(a) * b * sin(PI * c / 180) / 2;
      |                             ^~
main.c:11:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(void)
{
  int a, b, c;
  double S, L, h;
  
  scanf("%d %d %d", &a, &b, &c);
  
  S = a * b * sin((double)(M_PI * c / 180) / 2;
		  
  L = a + b + sqrt(a * a + b * b - 2 * a * b * cos((double)(M_PI * c / 180));

  h = b * sin((double)(M_PI * c / 180));

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:47: error: expected ')' before ';' token
   11 |   S = a * b * sin((double)(M_PI * c / 180) / 2;
      |                  ~                            ^
      |                                               )
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
Language: C

#include <stdio.h>
#include <math.h>
int main(){

int a,b,c;

double S,L,h,p;

scanf("%d %d %d",&a,&b,&c);
p=b-sqrt(a*a-h*h);
h=a*sin(c);
S=h*b*1/2;
L=a+b+sprt(p*p+h*h);

printf(%lf\n%lf\n%lf\n,S,L,H);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   13 | L=a+b+sprt(p*p+h*h);
      |       ^~~~
      |       sqrt
main.c:15:8: error: expected expression before '%' token
   15 | printf(%lf\n%lf\n%lf\n,S,L,H);
      |        ^
main.c:15:11: error: stray '\' in program
   15 | printf(%lf\n%lf\n%lf\n,S,L,H);
      |           ^
main.c:15:16: error: stray '\' in program
   15 | printf(%lf\n%lf\n%lf\n,S,L,H);
      |                ^
main.c:15:21: error: stray '\' in program
   15 | printf(%lf\n%lf\n%lf\n,S,L,H);
      |                     ^
Language: C

#include <stdio.h>
#include <math.h>
int main(){

int a,b,c;

double S,L,h,p;

scanf("%d %d %d",&a,&b,&c);
p=b-sqrt(a*a-h*h);
h=a*sin(c);
S=h*b*1/2;
L=a+b+sprt(p*p+h*h);

printf("%lf\n%lf\n%lf\n",S,L,H);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:7: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   13 | L=a+b+sprt(p*p+h*h);
      |       ^~~~
      |       sqrt
main.c:15:30: error: 'H' undeclared (first use in this function)
   15 | printf("%lf\n%lf\n%lf\n",S,L,H);
      |                              ^
main.c:15:30: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <math.h>
int main(){

int a,b,c;

double S,L,h,p;

scanf("%d %d %d",&a,&b,&c);
p=b-sqrt(a*a-h*h);
h=a*sin(c);
S=h*b*1/2;
L=a+b+sprt(p*p+h*h);

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

Compiler output:
main.c: In function 'main':
main.c:13:7: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   13 | L=a+b+sprt(p*p+h*h);
      |       ^~~~
      |       sqrt
Language: C

include <stdio.h>
#include <math.h>
#define MAX 1000

int main(){
    int n;
    int i, j=0, sum;
    int score[MAX];
    double ave, tmp;
    double dev[MAX];

    while(1){
        scanf("%d", &n);
        if(n==0)break;
        sum=0;
        for(i=0;i<n;i++){
            scanf("%d", &score[i]);
            sum+=score[i];
        }
        ave=(double)sum/(double)n;
        tmp=0.0;
        for(i=0;i<n;i++){
            tmp+=pow(score[i]-ave, 2);
        }
        dev[j++]=sqrt(tmp/(double)n);
    }
    for(i=0;i<j;i++){
        printf("%f\n", dev[i]);
    }
    return 0;
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:13:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   13 |         scanf("%d", &n);
      |         ^~~~~
main.c:3:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
    2 | #include <math.h>
  +++ |+#include <stdio.h>
    3 | #define MAX 1000
main.c:13:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   13 |         scanf("%d", &n);
      |         ^~~~~
main.c:13:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:28:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   28 |         printf("%f\n", dev[i]);
      |         ^~~~~~
main.c:28:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:28:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:28:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <stdio.h>
 
int main(void){

    double a,b,c;

    scanf("%lf %lf %lf",&a,&b,&c);
???    c=c*3.14159265/180.0;

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

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:1: error: expected expression before '?' token
    8 | ???    c=c*3.14159265/180.0;
      | ^
main.c:10:23: error: implicit declaration of function 'sin' [-Wimplicit-function-declaration]
   10 |     printf("%f\n",a*b*sin(c)/2);
      |                       ^~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'sin'
    1 | #include <stdio.h>
  +++ |+#include <math.h>
    2 | 
main.c:10:23: warning: incompatible implicit declaration of built-in function 'sin' [-Wbuiltin-declaration-mismatch]
   10 |     printf("%f\n",a*b*sin(c)/2);
      |                       ^~~
main.c:10:23: note: include '<math.h>' or provide a declaration of 'sin'
main.c:11:23: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
   11 |     printf("%f\n",a+b+sqrt(a*a+b*b-2*a*b*cos(c)));
      |                       ^~~~
main.c:11:23: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:11:23: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
main.c:11:23: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:11:42: error: implicit declaration of function 'cos' [-Wimplicit-function-declaration]
   11 |     printf("%f\n",a+b+sqrt(a*a+b*b-2*a*b*cos(c)));
      |                                          ^~~
main.c:11:42: note: include '<math.h>' or provide a declaration of 'cos'
main.c:11:42: warning: incompatible implicit declaration of built-in function 'cos' [-Wbuiltin-declaration-mismatch]
main.c:11:42: note: include '<math.h>' or provide a declaration of 'cos'
Language: C

#include <stdio.h>
#include <math.h>
int main(){

int a,b,c;

double S,L,h,p;

scanf("%d %d %d",&a,&b,&c);
h=a*sin(c);
p=b-sqrt(a*a-h*h);
S=h*b*1/2;
L=a+b+sprt(p*p+h*h);

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

Compiler output:
main.c: In function 'main':
main.c:13:7: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   13 | L=a+b+sprt(p*p+h*h);
      |       ^~~~
      |       sqrt
Language: C

#include <stdio.h>
#include <math.h>
int main(){
double a,b,c;

double S,L,h,p;

scanf("%lf %lf %lf",&a,&b,&c);
h=a*sin(c);
p=b-sqrt(a*a-h*h);
S=h*b*1/2;
L=a+b+sprt(p*p+h*h);

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

Compiler output:
main.c: In function 'main':
main.c:12:7: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   12 | L=a+b+sprt(p*p+h*h);
      |       ^~~~
      |       sqrt
Language: C

#include <stdio.h>
#include <math.h>
int main(){
double a,b,c;

double S,L,h,p;

scanf("%lf %lf %lf",&a,&b,&c);
h=a*sin(c);
S=h*b*1/2;
L=a+b+sprt(a*a+b*b-2*a*b*cos(c));

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

Compiler output:
main.c: In function 'main':
main.c:11:7: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   11 | L=a+b+sprt(a*a+b*b-2*a*b*cos(c));
      |       ^~~~
      |       sqrt
Language: C

#include <stdio.h>
#include <math.h>
int main(){
double a,b,c;

double S,L,h;

scanf("%lf %lf %lf",&a,&b,&c);
h=a*sin(c);
S=h*b*1/2;
L=a+b+sprt(a*a+b*b-2*a*b*cos(c));

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

Compiler output:
main.c: In function 'main':
main.c:11:7: error: implicit declaration of function 'sprt'; did you mean 'sqrt'? [-Wimplicit-function-declaration]
   11 | L=a+b+sprt(a*a+b*b-2*a*b*cos(c));
      |       ^~~~
      |       sqrt
Language: C

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

int main(void)
{
	unsigned int a = 0;
	unsigned int b = 0;
	unsigned int C = 0;
	unsigned double S = 0;
	unsigned double L = 0;
	unsigned double h = 0;
	
	scanf("%d %d %d", &a, &b, &C);
	
	S = (a * b * (cos(90 - C))) / 2;
	L = sqrt((a * a) + (b * b)) + a + b;
	h = S / a * 2;
	printf("%lf %lf %lf\n", S, L, h);
	
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:18: error: both 'unsigned' and 'double' in declaration specifiers
    9 |         unsigned double S = 0;
      |                  ^~~~~~
main.c:10:18: error: both 'unsigned' and 'double' in declaration specifiers
   10 |         unsigned double L = 0;
      |                  ^~~~~~
main.c:11:18: error: both 'unsigned' and 'double' in declaration specifiers
   11 |         unsigned double h = 0;
      |                  ^~~~~~
Language: C

#include <stdio.h>
#include <math.h>
??
int main(int argc, const char * argv[]) {
????????double a, b, d, C, S, L, h;
??????????
????????scanf("%lf %lf %lf",&a, &b, &C);
??????????
????????C = C * M_PI / 180;
??????????
????????h = b * sin(C);
??????????
????????S = a * h / 2;
??????????
????????d = sqrt(a * a + b * b - 2 * a * b * cos(C));
??????????
????????L = a + b + d;
??????????
????????printf("%f\n%f\n%f\n",S, L, h);
??????????
??????????
????????return 0;
}

Compiler output:
main.c:3:1: error: expected identifier or '(' before '?' token
    3 | ??
      | ^
Language: C

#include <stdio.h>

#include <math.h>

#define PI 3.141592653589793

??

??

int main(void){

????????????????int ang;

????????????????double a,b,vol,hei,rou;

????????????????scanf("%lf %lf %d",&a,&b,&ang);

????????????????double radian = ang * PI / 180.0;

????????????????hei=sin(radian)*b;

????????????????vol=a*hei/2;

????????????????rou=a+b+sqrt(pow(a,2)+pow(b,2)-2*a*b*cos(radian));

????????????????printf("%f\n%f\n%f\n",vol,rou,hei);

??

????????????????return 0;

}

Compiler output:
main.c:7:1: error: expected identifier or '(' before '?' token
    7 | ??
      | ^
Language: C

#include <stdio.h>

#include <math.h>

??

int main(void){

????????double a,b,c;

????????scanf("%lf %lf %lf",&a,&b,&c);

????????c=c*3.14159265/180.0;

????????printf("%f\n",a*b*sin(c)/2);

????????printf("%f\n",a+b+sqrt(a*a+b*b-2*a*b*cos(c)));

????????printf("%f\n",b*sin(c));

????????return 0;

}

Compiler output:
main.c:5:1: error: expected identifier or '(' before '?' token
    5 | ??
      | ^
Language: C

#include<stdio.h>

#include<math.h>

#define PI 3.1415926535897932384626

??

int main(void){

????????int a=0, b=0, c=0;

????????double S=0.0, L=0.0, h=0.0;

????????double a_dou=0.0, b_dou=0.0;

????????double c_rad=0.0;

??????????

????????scanf("%d %d %d", &a, &b, &c);

????????a_dou = (double)a;

????????b_dou = (double)b;

????????c_rad = (double)c * PI / (double)180;

??

????????S = a_dou * b_dou * sin(c_rad) / 2.0;

????????L = sqrt(pow(a_dou, 2) + pow(b_dou, 2) - 2 * a_dou * b_dou * cos(c_rad)) + a_dou + b_dou;

????????h = 2.0 * S / a_dou;

??

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

????????return 0;

}


??

??

Compiler output:
main.c:7:1: error: expected identifier or '(' before '?' token
    7 | ??
      | ^
main.c:46:1: error: expected identifier or '(' before '?' token
   46 | ??
      | ^
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
    double a,b,c,S,L,h,rad;
    scanf("%lf %lf %lf",a,b,c)
    rad = (c/180)*PI
    S = (a*b*sin(rad))/2
    L = a+b+a*a+b*b-2*a*b*cos(rad);
    h = b*sin(rad)
        printf("%1f %1f %1f",S,L,h);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:31: error: expected ';' before 'rad'
    5 |     scanf("%lf %lf %lf",a,b,c)
      |                               ^
      |                               ;
    6 |     rad = (c/180)*PI
      |     ~~~                        
main.c:9:19: error: expected ';' before 'printf'
    9 |     h = b*sin(rad)
      |                   ^
      |                   ;
   10 |         printf("%1f %1f %1f",S,L,h);
      |         ~~~~~~
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
    double a,b,c,S,L,h,rad;
    scanf("%lf %lf %lf",a,b,c);
    rad = (c/180)*PI
    S = (a*b*sin(rad))/2;
    L = a+b+a*a+b*b-2*a*b*cos(rad);
    h = b*sin(rad);
        printf("%lf %lf %lf",S,L,h);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'PI' undeclared (first use in this function)
    6 |     rad = (c/180)*PI
      |                   ^~
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: expected ';' before 'S'
    6 |     rad = (c/180)*PI
      |                     ^
      |                     ;
    7 |     S = (a*b*sin(rad))/2;
      |     ~
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
    double a,b,c,S,L,h,rad;
    scanf("%lf %lf %lf",a,b,c);
    rad = (c/180)*PI;
    S = (a*b*sin(rad))/2;
    L = a+b+a*a+b*b-2*a*b*cos(rad);
    h = b*sin(rad);
        printf("%lf %lf %lf",S,L,h);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'PI' undeclared (first use in this function)
    6 |     rad = (c/180)*PI;
      |                   ^~
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
    double a,b,c,S,L,h,rad;
    scanf("%lf %lf %lf",&a,&b,&c);
    rad = (c/180)*PI;
    S = (a*b*sin(rad))/2;
    L = a+b+a*a+b*b-2*a*b*cos(rad);
    h = b*sin(rad);
        printf("%lf %lf %lf",S,L,h);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'PI' undeclared (first use in this function)
    6 |     rad = (c/180)*PI;
      |                   ^~
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <math.h>
int main(void){
    double a,b,c,S,L,h,rad;
    scanf("%lf %lf %lf",a,b,c);
    rad = (c/180)*PI
    S = (a*b*sin(rad))/2;
    L = a+b+sqrt(a*a+b*b-2*a*b*cos(rad));
    h = b*sin(rad);
        printf("%lf %lf %lf",S,L,h);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'PI' undeclared (first use in this function)
    6 |     rad = (c/180)*PI
      |                   ^~
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: expected ';' before 'S'
    6 |     rad = (c/180)*PI
      |                     ^
      |                     ;
    7 |     S = (a*b*sin(rad))/2;
      |     ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'PI' undeclared (first use in this function)
    6 |     rad = (c/180)*PI
      |                   ^~
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: expected ';' before 'S'
    6 |     rad = (c/180)*PI
      |                     ^
      |                     ;
    7 |     S = (a*b*sin(rad))/2;
      |     ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'PI' undeclared (first use in this function)
    6 |     rad = (c/180)*PI;
      |                   ^~
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#include <math.h>
#define PI 3.141593
int main(void){
    int a, b, ｃ;
    double S, L, h;
    scanf("%d %d %d", &a, &b, &ｃ);
    S = 0.5*a*b*sin(ｃ*PI/180);
    L = a + b + sqrt(a*a + b*b - 2*a*b*cos(ｃ*PI/180));
    h = 2*S/a;
    printf("%lf\n", S);
    printf("%lf\n", L);
    printf("%lf\n", h);
    return 0;
    
}


Compiler output:
/usr/bin/ld: /tmp/ccqah22m.o: in function `main':
main.c:(.text+0x84): undefined reference to `sin'
/usr/bin/ld: main.c:(.text+0x110): undefined reference to `cos'
/usr/bin/ld: main.c:(.text+0x12d): undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
Language: C

#include<cstdio>
#include<cmath>
int main(){
  double a,b,c;
  scanf("%lf %lf %lf",&a,&b,&c);
  printf("%.7f\n",a*b*sin((M_PI*c/180))/2);
  printf("%.7f\n",a+b+sqrt(pow(a,2)+pow(b,2)-2*a*b*cos((M_PI*c/180))));
  printf("%.7f\n",b*sin((M_PI*c/180)));
}


Compiler output:
main.c:1:9: fatal error: cstdio: No such file or directory
    1 | #include<cstdio>
      |         ^~~~~~~~
compilation terminated.