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

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

int main(void)
{
  double x1,x2,y1,y2;

  puts("xi:");scanf(%lf,&x1");
  puts("y1:");scanf(%lf,&y1");
  puts("x2:");scanf(%lf,&x2");
  puts("y2:");scanf(%lf,&y2");

  printf("%f\n", sqrt((x2-x1)^2+(y1-y2)^2));

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:21: error: expected expression before '%' token
    8 |   puts("xi:");scanf(%lf,&x1");
      |                     ^
main.c:8:28: warning: missing terminating " character
    8 |   puts("xi:");scanf(%lf,&x1");
      |                            ^
main.c:8:28: error: missing terminating " character
    8 |   puts("xi:");scanf(%lf,&x1");
      |                            ^~~
main.c:9:28: warning: missing terminating " character
    9 |   puts("y1:");scanf(%lf,&y1");
      |                            ^
main.c:9:28: error: missing terminating " character
    9 |   puts("y1:");scanf(%lf,&y1");
      |                            ^~~
main.c:10:28: warning: missing terminating " character
   10 |   puts("x2:");scanf(%lf,&x2");
      |                            ^
main.c:10:28: error: missing terminating " character
   10 |   puts("x2:");scanf(%lf,&x2");
      |                            ^~~
main.c:11:28: warning: missing terminating " character
   11 |   puts("y2:");scanf(%lf,&y2");
      |                            ^
main.c:11:28: error: missing terminating " character
   11 |   puts("y2:");scanf(%lf,&y2");
      |                            ^~~
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C

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

int main(void)
{
  double x1,x2,y1,y2;

  puts("x1:");scanf("%lf",&x1);
  puts("y1:");scanf("%lf",&y1);
  puts("x2:");scanf("%lf",&x2);
  puts("y2:");scanf("%lf",&y2);

  printf("%f\n", sqrt( (x2-x1)(x2-x1)+(y2-y1)(y2-y1) ) );

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:27: error: called object is not a function or function pointer
   13 |   printf("%f\n", sqrt( (x2-x1)(x2-x1)+(y2-y1)(y2-y1) ) );
      |                        ~~~^~~~
main.c:13:42: error: called object is not a function or function pointer
   13 |   printf("%f\n", sqrt( (x2-x1)(x2-x1)+(y2-y1)(y2-y1) ) );
      |                                       ~~~^~~~
Language: C

#include <stdio.h>
#include <math.h>
int main()
{
	double x1,y1,x2,y2;
	scanf("%lf %lf %lf %lf",&x1,%y1,&x2,&y2);
	printf("%f\n",sqrt(pow((x1-x2),2.0)+pow((y1-y2),2.0)));
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:37: error: expected expression before '%' token
    6 |         scanf("%lf %lf %lf %lf",&x1,%y1,&x2,&y2);
      |                                     ^
Language: C

include<stdio.h>
main(){
  double x1,y1,x2,y2,cou;
  scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
  cou = (x2-x1)*(x2-x1)+(y2-y1)*(y2-y1);
  printf("%f\n",sqrt(cou));
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C++

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
double x1,y1,x2,y2,ans;
cin>>x1>>y1>>x2>>y2;
ans=sqrt((x1-x2)^2+(y1-y2)^2);
cout<<setprecision(8)<<ans<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: invalid operands of types 'double' and 'double' to binary 'operator^'
    8 | ans=sqrt((x1-x2)^2+(y1-y2)^2);
      |          ~~~~~~~^~~~~~~~~~
      |             |     |
      |             |     double
      |             double
Language: C++

int main(){
double x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
double x,y;
x=a(x1);x2=a(x2);
x=max(x1,x2)-min(x1,x2);
if(y1<0&&y2>=0){
	y=a(y1)+y2;
}
else if(y2<0&&y1>=0){
	y=a(y1)+y2;
}
else y=max(a(y1),a(y2))-min(a(y1),a(y2));
	
	double ans=sqrt(x*x+y*y);
	cout<<ans<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin>>x1>>y1>>x2>>y2;
      | ^~~
a.cc:5:3: error: 'a' was not declared in this scope
    5 | x=a(x1);x2=a(x2);
      |   ^
a.cc:6:3: error: 'max' was not declared in this scope
    6 | x=max(x1,x2)-min(x1,x2);
      |   ^~~
a.cc:6:14: error: 'min' was not declared in this scope; did you mean 'main'?
    6 | x=max(x1,x2)-min(x1,x2);
      |              ^~~
      |              main
a.cc:15:20: error: 'sqrt' was not declared in this scope
   15 |         double ans=sqrt(x*x+y*y);
      |                    ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<ans<<endl;
      |         ^~~~
a.cc:16:20: error: 'endl' was not declared in this scope
   16 |         cout<<ans<<endl;
      |                    ^~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<string>
#include<cctype>
using namespace std;


int a(int x){
	if(x<0)return -x;
	
	return x;
}
int main(){
double x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
double x,y;
x=a(x1);x2=a(x2);

if(x1<0&&x2>=0){
	x=a(x1)+x2;
}
else if(x2<0&&x1>=0){
	x=x+1+a(x2);
}
else x=max(a(x1),a(x2))-min(a(x1),a(x2));

if(y1<0&&y2>=0){
	y=a(y1)+y2;
}
else if(y2<0&&y1>=0){
	y=y1+a(y2);
}
else y=max(a(y1),a(y2))-min(a(y1),a(y2));
	
	double ans=sqrt(x*x+y*y);
	cout<<ans<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:20: error: 'sqrt' was not declared in this scope
   37 |         double ans=sqrt(x*x+y*y);
      |                    ^~~~
Language: C++

int main(){
long double x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
long double x,y;

/*if(x1<0&&x2>=0){
	x=a(x1)+x2;
}
else if(x2<0&&x1>=0){
	x=x1+a(x2);
}
else x=max(a(x1),a(x2))-min(a(x1),a(x2));

if(y1<0&&y2>=0){
	y=a(y1)+y2;
}
else if(y2<0&&y1>=0){
	y=y1+a(y2);
}
else y=max(a(y1),a(y2))-min(a(y1),a(y2));*/
	//printf("%f : %f",x,y);
	
	cout<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'cin' was not declared in this scope
    3 | cin>>x1>>y1>>x2>>y2;
      | ^~~
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
      |         ^~~~
a.cc:23:15: error: 'sqrt' was not declared in this scope
   23 |         cout<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
      |               ^~~~
a.cc:23:54: error: 'endl' was not declared in this scope
   23 |         cout<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
      |                                                      ^~~~
Language: C++

int main(){
long double x1,y1,x2,y2;
scanf("%lf%lf%lf%lf",x1,y1,x2,y2);
long double x,y;

/*if(x1<0&&x2>=0){
	x=a(x1)+x2;
}
else if(x2<0&&x1>=0){
	x=x1+a(x2);
}
else x=max(a(x1),a(x2))-min(a(x1),a(x2));

if(y1<0&&y2>=0){
	y=a(y1)+y2;
}
else if(y2<0&&y1>=0){
	y=y1+a(y2);
}
else y=max(a(y1),a(y2))-min(a(y1),a(y2));*/
	//printf("%f : %f",x,y);
	
	cout<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'scanf' was not declared in this scope
    3 | scanf("%lf%lf%lf%lf",x1,y1,x2,y2);
      | ^~~~~
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
      |         ^~~~
a.cc:23:15: error: 'sqrt' was not declared in this scope
   23 |         cout<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
      |               ^~~~
a.cc:23:54: error: 'endl' was not declared in this scope
   23 |         cout<<sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
      |                                                      ^~~~
Language: C++

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
	double x1, y1, x2, y2, d1, d2, d;
	cin >> x1 >> y1 >> x2 >> y2;
	d1 = x2 - x1;
	d2 = y2 - y1;
	d = sqrt(d1 * d1 + d2 * d2);
	cout << fixed << std::setprecision(5) << d << "\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'sqrt' was not declared in this scope
   10 |         d = sqrt(d1 * d1 + d2 * d2);
      |             ^~~~
Language: C++

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

int main(void)
{
    double x1, y1, x2, y2;

    scanf("%f %f %f %f", &x1, &y1, &x2, &y2);
    printf("%f\n", sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:71: error: expected ')' before ';' token
    9 |     printf("%f\n", sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
      |           ~                                                           ^
      |                                                                       )
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
	int x1,x2,y1,y2;
	double a;
	cin>>x1>>y1>>x2>>y2;
	a=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
	a=(double)sqrt((double)a);
	cout<<a;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: 'sqrt' was not declared in this scope
   11 |         a=(double)sqrt((double)a);
      |                   ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <stdio.h>
#include <string>


using namespace std;

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

	cout << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: 'pow' was not declared in this scope
   14 |         cout << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
      |                      ^~~
a.cc:14:17: error: 'sqrt' was not declared in this scope
   14 |         cout << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
      |                 ^~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <stdio.h>
#include <string>


using namespace std;

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

	printf("%.8f\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: 'pow' was not declared in this scope
   14 |         printf("%.8f\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
      |                               ^~~
a.cc:14:26: error: 'sqrt' was not declared in this scope
   14 |         printf("%.8f\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
      |                          ^~~~
Language: C++

	cout << setprecision(10) <<  sqrt(pow((x2-x1), 2.0) + pow((y2-y1), 2.0)) << endl;
	return 0;
}

Compiler output:
a.cc:1:9: error: 'cout' does not name a type
    1 |         cout << setprecision(10) <<  sqrt(pow((x2-x1), 2.0) + pow((y2-y1), 2.0)) << endl;
      |         ^~~~
a.cc:2:9: error: expected unqualified-id before 'return'
    2 |         return 0;
      |         ^~~~~~
a.cc:3:1: error: expected declaration before '}' token
    3 | }
      | ^
Language: C++

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

int main()
{
int x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2;
cout<<(sqrt(pow(x1-x2,2)+pow(y1-y2,2))<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 | cout<<(sqrt(pow(x1-x2,2)+pow(y1-y2,2))<<endl;
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
a.cc:9:45: error: expected ')' before ';' token
    9 | cout<<(sqrt(pow(x1-x2,2)+pow(y1-y2,2))<<endl;
      |       ~                                     ^
      |                                             )
Language: C++

#include <iostream>
#include <math>
#include <iomanip>
using namespace std;
int main(){
int x1,y1,x2,y2;
cin >> x1 >> y1 >> x2 >> y2;
double res;
res = sqrt(fabs(pow(x1-x2,2)+pow(y1-y2,2)));
cout.setf(ios_base::fixed,ios_base::floatfield);
cout << setprecision(6) << res << endl;
return 0;
}

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

#include <iostream>
#include <math>
#include <iomanip>
using namespace std;
int main(){
int x1,y1,x2,y2;
cin >> x1 >> y1 >> x2 >> y2;
double res;
res = sqrt(fabs(pow(x1-x2,2)+pow(y1-y2,2)));
cout << setprecision(6) << fixed << res << endl;
return 0;
}

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

#include <iostream>
#include <iomanip>
#include <math>
using namespace std;
int main(){
int x1,y1,x2,y2;
cin >> x1 >> y1 >> x2 >> y2;
double res;
res = sqrt(fabs(pow(x1-x2,2)+pow(y1-y2,2)));
cout << setprecision(6) << fixed << res << endl;
return 0;
}

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

#include <iostream>
#include <math>
using namespace std;
int main(){
int x1,y1,x2,y2;
cin >> x1 >> y1 >> x2 >> y2;
double res;
res = sqrt(fabs(pow(x1-x2,2)+pow(y1-y2,2)));
cout << res << endl;
return 0;
}

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

#include <iostream>
#include <math>
using namespace std;
int main(){
double x1,y1,x2,y2;
cin >> x1 >> y1 >> x2 >> y2;
double res;
res = sqrt(fabs(pow(x1-x2,2)+pow(y1-y2,2)));
cout << res << endl;
return 0;
}

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

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

int main(void){
	double x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	cout.setf(ios::fixed);
	cout.precision(6);
	cout << sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'sqrt' was not declared in this scope
   10 |         cout << sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
      |                 ^~~~
Language: C++

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

int main(){

  int x1,x2,y1,y2,a,b,n,m;
  double c;

  while(cin >> x1 >> y1 >> x2 >> y2){

    n = max(x1,x2);
    m = min(x1,x2);

    a = n - m;

    n = max(y1,y2);
    m = min(y1,y2);

    b = n - m;

    c = sqrt((a * a) + (b * b));

    printf("%.8lf\n",c);
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:27:4: error: expected '}' at end of input
   27 |   }
      |    ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;

int main(){
	double x1,x2,y1,y2,d ;

	cin >> x1 >> y1 >> x2 >> y2 ; 
	
	d = sqrt(((x2-x1)*(x2-x1)) + ((y2-y1)*(y2-y1))) ;

	cout << d << endl ;

	return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: 'sqrt' was not declared in this scope
    9 |         d = sqrt(((x2-x1)*(x2-x1)) + ((y2-y1)*(y2-y1))) ;
      |             ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	double x1,x2,y1,y2,d,x,y ;

	cin >> x1 >> y1 >> x2 >> y2 ; 

	x = ((x2-x1)*(x2-x1)) ;
	y = ((y2-y1)*(y2-y1)) ;
	
	d = sqrt((x + y)) ;

	cout << d << endl ;

	return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: 'sqrt' was not declared in this scope
   12 |         d = sqrt((x + y)) ;
      |             ^~~~
Language: C++

#include <iostream>
using namespace std;

int main()
{
int x1,x2,y1,y2;
while (cin>>a>>b>>x>>y)
{
cout<<(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'a' was not declared in this scope
    7 | while (cin>>a>>b>>x>>y)
      |             ^
a.cc:7:16: error: 'b' was not declared in this scope
    7 | while (cin>>a>>b>>x>>y)
      |                ^
a.cc:7:19: error: 'x' was not declared in this scope; did you mean 'x2'?
    7 | while (cin>>a>>b>>x>>y)
      |                   ^
      |                   x2
a.cc:7:22: error: 'y' was not declared in this scope; did you mean 'y2'?
    7 | while (cin>>a>>b>>x>>y)
      |                      ^
      |                      y2
Language: C++

#include<iostream>
#include<cmath>
#include<longlong>
using namespace std;
const long double EPS=1.0e-18;

long long double sqrt_ll(long long double x){
	long long double a= sqrt(double(x));
	do{
		a=(a+(x/a))/2.0;
	}while(fabsl(x-a*a)>EPS);
	return a;
}




int main(){
	long double a,b,c,d;
	cin>>a>>b>>c>>d;
	long long double tmp=(a-c)*(a-c)+(b-d)*(b-d);
	tmp = sqrt_ll(tmp);
	cout<<tmp<<endl;
	
}

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

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <sstream>
using namespace std;

int main()
{
	cout.setf(ios::fixed, ios::floatfield);

	double x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	double r = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
	cout << r << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:25: error: 'pow' was not declared in this scope
   14 |         double r = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
      |                         ^~~
a.cc:14:20: error: 'sqrt' was not declared in this scope
   14 |         double r = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
      |                    ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	int x,y,z,u;
	cin>>x>>y>>z>>u;
	cout<<sqrt((x-z)*(x-z)+(y-u)*(y-u));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'sqrt' was not declared in this scope
    7 |         cout<<sqrt((x-z)*(x-z)+(y-u)*(y-u));
      |               ^~~~
Language: C++

//与えられた単語の中で、辞書式順序で先頭になるものを出力する
#include<iostream>
#include<math.h>
using namespace std;

int main(){
	long float n;
	float x1,x2,y1,y2;

	cin >> x1 >> y1 >> x2 >> y2;
	n = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));

	cout << n << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'long' specified with 'float'
    7 |         long float n;
      |         ^~~~
Language: C++

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

int main(){
	double x,y,z,u,a;
	cin>>x>>y>>z>>u;
	cout<<asqrt((x-z)*(x-z)+(y-u)*(y-u));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'asqrt' was not declared in this scope; did you mean 'sqrt'?
    8 |         cout<<asqrt((x-z)*(x-z)+(y-u)*(y-u));
      |               ^~~~~
      |               sqrt
Language: C++

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

int main()
{
int x1,x2,y1,y2;
cin>>x1>>y1>>x2>>y2;
cout<<cmath((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'cmath' was not declared in this scope
    9 | cout<<cmath((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))<<endl;
      |       ^~~~~
Language: C++

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

int main(){
	double xa,ya,xb,yb;
	cin>>xa>>ya>>xb>>yb;
	double a=(xb-xa)^2+(yb-ya)^2;
	cout<<sqrt(a)<<endl;



	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: invalid operands of types 'double' and 'double' to binary 'operator^'
    8 |         double a=(xb-xa)^2+(yb-ya)^2;
      |                  ~~~~~~~^~~~~~~~~~
      |                     |     |
      |                     |     double
      |                     double
Language: C++

#include<iostream>#include<cmath>using namespace std;int main(){	long double a,b,c,d;	cin>>a>>b>>c>>d;	long double tmp=(a-c)*(a-c)+(b-d)*(b-d);	tmp = sqrt(tmp);		cout<<tmp<<endl;} 

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<iostream>#include<cmath>using namespace std;int main(){        long double a,b,c,d;    cin>>a>>b>>c>>d;        long double tmp=(a-c)*(a-c)+(b-d)*(b-d);        tmp = sqrt(tmp);                cout<<tmp<<endl;}
      |                   ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<iostream>
using namespace std;

int main()
{
 int x,y,a,b;
 while(cin>>x>>y>>a>>b)
 {
  cout<<sqrt(((a-x)^2)+((b-y)^2))<<endl;
 }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'sqrt' was not declared in this scope
    9 |   cout<<sqrt(((a-x)^2)+((b-y)^2))<<endl;
      |         ^~~~
Language: C++

#include<iostream>
#include<stdio.h>
#include<string>
#include<math.h>
using namespace std;
int main(void){
	double x1,y1,x2,y2,l;

	cin>>x1>>y1>>x2>>y2;

	l=sqrt(pow((x2-x1),2)+pow((y2-y1),2));
	cout<<setprecision(6)<<l<<endl;

	
	}

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

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

int main(void){

	int x1,y1,x2,y2;
	cin>>x1>>y1>>x2>>y2;
	cout<<fixed<<setprecision(8)<<sqrt((double)(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:39: error: 'sqrt' was not declared in this scope
    9 |         cout<<fixed<<setprecision(8)<<sqrt((double)(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1))<<endl;
      |                                       ^~~~
Language: C++

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

struct point {
    double x;
    double y;
};

double getDistance(point p1, point p2)
{
    double distance;
    distance = pow(p1.x - p2.x, 2) 
            + pow(p1.y - p2.y, 2); 
    distance = sqrt(distance);
    
    return distance;
}

int main()
{
    point p1, p2;
    double ans;

    cin >> p1.x >> p1.y >> p2.x >> p2.y;
    //cout.precision(5);
    ans = getDistance(p1, p2);
    //cout << ans << endl;
    printf("%lf\n", ans);
    return EXIT_SUCCESS;
}

Compiler output:
a.cc:4:10: fatal error: cstdio.h: No such file or directory
    4 | #include <cstdio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class AOJ10025 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        double rad = c * Math.PI / 180;
        
        double s = a * b * Math.sin(rad) / 2;
        double l = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(rad)) + a + b;
        double h = s / a * 2;
        
        System.out.println(s);
        System.out.println(l);
        System.out.println(h);
    }
}

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

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    Double a = sc.nextDouble();
    Double b = sc.nextDouble();
    Double c = sc.nextDouble();
    c = Math.toRadians(c)
    System.out.println(a*b*Math.sin(c));
    System.out.println(a+b+c);
    System.out.println(b*Math.sin(c));
  }
}

Compiler output:
Main.java:8: error: ';' expected
    c = Math.toRadians(c)
                         ^
1 error
Language: C

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

#define PI 3.1415925359

main()
{
	int a = 0;
	int b = 0;
	int r = 0;
	
	scanf("%d %d %d", &a, &b, &r);
	
	double sin_r = sin(r * (PI / 180));
	double cos_r = cos(r * (PI / 180));
	double height = b * sin_r;
	double a_1 = b * cos_r;
	
	double a_2 = a - a_1;
	
	double c = pow(height, 2) + pow(a_2, 2);
	c = sqrt(c);
	
	double area = (a * height) / 2;
	double long = a + b + c;
	
	printf("%f\n%f\n%f\n", area, long, height);
	return 0;
}

Compiler output:
main.c:8:1: error: return type defaults to 'int' [-Wimplicit-int]
    8 | main()
      | ^~~~
main.c: In function 'main':
main.c:27:21: error: expected identifier or '(' before '=' token
   27 |         double long = a + b + c;
      |                     ^
main.c:29:38: error: expected expression before 'long'
   29 |         printf("%f\n%f\n%f\n", area, long, height);
      |                                      ^~~~
Language: C

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

int main()
{
  double a, b, c;
  double x, y, z;
  cin >> a >> b >> c;
  c = c / 180 * M_PI;

  x = a * b * sin(c) / 2;
  y = a + b + sqrt(a * a + b * b -2 * a * b * cos(c));
  z = b * sin(c);

  printf("%f\n%f\n%f\n", x, y, z);

  return 0;
}

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

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

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

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

	L=a+b+sqrt((a*a)+(b*b)-2*(a*b)*cons(c));

	h=b*sin(c);

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

	return (0);
}

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

#include <stdio.h>
#include <math.h>
#define PI 3.141592653589793238462643383279
int main(){
  int a,b,c,angle;
  int x1,x2;
  double h;
  scanf("%d %d %d",&a,&b,&angle);
  
  h = sin(angle * PI / 180) * b;
  x1 = cos(angle * PI / 180) * b;
  x2 = x - x1;
  c = sqrt(pow(x2,2) + pow(h,2));
  
  printf("%f %f %f\n",a*h/2,a + b + c,h);
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:12:8: error: 'x' undeclared (first use in this function)
   12 |   x2 = x - x1;
      |        ^
main.c:12:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

using namespace std;

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

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

	C=C*M_PI/180.0;
	printf("%.6f\n%.6f\n%.6f\n",a*b*sin(C)/2.0,a+b+sqrt(a*a+b*b-2.0*a*b*cos(C)),b*sin(C));

	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>

double sin(double x);
double cos(double x);

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

Compiler output:
main.c: In function 'main':
main.c:18:49: error: expected ')' before ';' token
   18 |         printf("%lf\n", (double)(a * sin(C) / a);
      |               ~                                 ^
      |                                                 )
main.c:20:20: error: expected ';' before '}' token
   20 |         return (0);
      |                    ^
      |                    ;
   21 | }
      | ~
Language: C

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

int main(void)
{
	float a, b, c;
	float s, l, h;
	float h2;
	
	scanf("%f %f %f", &a, &b, &c);
	
	c = c / 180 * M_PI;
	h2 = sin(c) * b;
	h = cos(c) * b;
	h = h <= 0 ? a - h : h
	l = sqrt(h * h + h2 * h2) + a + b;
	s = a * h2 / 2;
	
	printf("%f\n%f\n%f\n", s, l, h2);
	
	return (0);
}

Compiler output:
main.c: In function 'main':
main.c:15:31: error: expected ';' before 'l'
   15 |         h = h <= 0 ? a - h : h
      |                               ^
      |                               ;
   16 |         l = sqrt(h * h + h2 * h2) + a + b;
      |         ~
Language: C

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

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

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:38: error: implicit declaration of function 'bcos'; did you mean 'cos'? [-Wimplicit-function-declaration]
    9 |   printf("%f\n",sqrt(a+b+a*a+b*b-2*a*bcos(c)));
      |                                      ^~~~
      |                                      cos
Language: C

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

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

  c=pai*c/180

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'pai' undeclared (first use in this function)
    8 |   c=pai*c/180
      |     ^~~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:14: error: expected ';' before 'printf'
    8 |   c=pai*c/180
      |              ^
      |              ;
    9 | 
   10 |   printf("%f\n",(a*b*sin(c))/2);
      |   ~~~~~~
Language: C

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

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

  c=pi*c/180

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: 'pi' undeclared (first use in this function)
    8 |   c=pi*c/180
      |     ^~
main.c:8:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:13: error: expected ';' before 'printf'
    8 |   c=pi*c/180
      |             ^
      |             ;
    9 | 
   10 |   printf("%f\n",(a*b*sin(c))/2);
      |   ~~~~~~
Language: C

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

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

  c=M_PI*c/180

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:15: error: expected ';' before 'printf'
    8 |   c=M_PI*c/180
      |               ^
      |               ;
    9 | 
   10 |   printf("%f\n",(a*b*sin(c))/2);
      |   ~~~~~~
Language: C

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

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

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

  c=(c/180)*M_PI;

  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:9: error: expected expression before '%' token
    8 |   scanf(%lf %lf %lf,&a,&b,&c);
      |         ^
Language: C

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

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

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

  c=(c/180)*M_PI;

  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:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%lf %lf %lf",&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:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%lf %lf %lf",&a,&b,&c);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:12:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   12 |   printf("%f\n",(a*b*sin(c))/2);
      |   ^~~~~~
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
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);
	
	S = b*(sin(C/180 * M_PI) * a) / 2;
	L = a+b+sqrt(pow(a,2) + pow(b,2) - 2*a*b*cos(C*M_PI/180));
	h = sin(c/180 + M_PI)*b;
	
	printf("%lf\n%lf\n%lf\n",S,L,h);
	
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: 'c' undeclared (first use in this function)
   13 |         h = sin(c/180 + M_PI)*b;
      |                 ^
main.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

import math
a,b,C = map(float,raw_input().split())
C = C/180 + math.pi

S = a*b*sin(C)/2.0;
L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
h = b*sin(C)
print "%f\n%f\n%f\n" % (S,L,h)

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import math
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'a'
    2 | a,b,C = map(float,raw_input().split())
      | ^
main.c:6:1: warning: data definition has no type or storage class
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      | ^
main.c:6:1: error: type defaults to 'int' in declaration of 'L' [-Wimplicit-int]
main.c:6:5: error: 'a' undeclared here (not in a function)
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      |     ^
main.c:6:9: error: 'b' undeclared here (not in a function)
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      |         ^
main.c:6:13: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      |             ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'sqrt'
  +++ |+#include <math.h>
    1 | import math
main.c:6:13: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      |             ^~~~
main.c:6:13: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:6:18: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      |                  ^~~
main.c:6:18: note: include '<math.h>' or provide a declaration of 'pow'
main.c:6:18: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
main.c:6:18: note: include '<math.h>' or provide a declaration of 'pow'
main.c:6:24: error: implicit declaration of function 'sin' [-Wimplicit-function-declaration]
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      |                        ^~~
main.c:6:24: note: include '<math.h>' or provide a declaration of 'sin'
main.c:6:24: warning: incompatible implicit declaration of built-in function 'sin' [-Wbuiltin-declaration-mismatch]
main.c:6:24: note: include '<math.h>' or provide a declaration of 'sin'
main.c:6:28: error: 'C' undeclared here (not in a function)
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      |                            ^
main.c:6:46: error: implicit declaration of function 'cos' [-Wimplicit-function-declaration]
    6 | L = a + b + sqrt(pow(b*sin(C),2.0) + pow(a-b*cos(C),2))
      |                                              ^~~
main.c:6:46: note: include '<math.h>' or provide a declaration of 'cos'
main.c:6:46: warning: incompatible implicit declaration of built-in function 'cos' [-Wbuiltin-declaration-mismatch]
main.c:6:46: note: include '<math.h>' or provide a declaration of 'cos'
main.c:7:1: error: expected ',' or ';' before 'h'
    7 | h = b*sin(C)
      | ^
Language: C++

#include<iostream>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
int a,b,si-ta;
double c,h;
cin>>a>>b>>si-ta;
c=sqrt(a*a+b*b-a*b*2*cos(si-ta));
h=b*sin(si-ta);
cout<<setprecision(8)<<a*h/2<<endl;
cout<<setprecision(8)<<a+b+c<<endl;
cout<<setprecision(8)<<h<<endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected initializer before '-' token
    6 | int a,b,si-ta;
      |           ^
a.cc:8:12: error: 'si' was not declared in this scope; did you mean 'sin'?
    8 | cin>>a>>b>>si-ta;
      |            ^~
      |            sin
a.cc:8:15: error: 'ta' was not declared in this scope; did you mean 'a'?
    8 | cin>>a>>b>>si-ta;
      |               ^~
      |               a
Language: C++

#include<math.h>
using namespace std;
int main(){ 
 int a, b, C;
 double c, L, S, h, D;
 cin >> a >> b >> C;
 D = C * (M_PI / 180);
 c =sqrt(a*a + b*b - 2*a*b*cos(D));
 L = a + b + c;
 S = (a * b * sin(D)) / 2;
 h = (2*S) / a;
 printf("%.8f\n",S);
 printf("%.8f\n",L);
 printf("%.8f\n",h);
 

 return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope
    6 |  cin >> a >> b >> C;
      |  ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<math.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:12:2: error: 'printf' was not declared in this scope
   12 |  printf("%.8f\n",S);
      |  ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include<math.h>
  +++ |+#include <cstdio>
    2 | using namespace std;
Language: C++

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

#define PI 3.1415925359

main()
{
	int a = 0;
	int b = 0;
	int r = 0;
	
	scanf("%d %d %d", &a, &b, &r);
	
	double sin_r = sin(r * (PI / 180));
	double cos_r = cos(r * (PI / 180));
	double height = b * sin_r;
	double a_1 = b * cos_r;
	
	double a_2 = a - a_1;
	
	double c = pow(height, 2) + pow(a_2, 2);
	c = sqrt(c);
	
	double area = (a * height) / 2;
	double long = a + b + c;
	
	printf("%f\n%f\n%f\n", area, long, height);
	return 0;
}

Compiler output:
a.cc:8:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    8 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:27:21: error: expected unqualified-id before '=' token
   27 |         double long = a + b + c;
      |                     ^
a.cc:29:38: error: expected primary-expression before 'long'
   29 |         printf("%f\n%f\n%f\n", area, long, height);
      |                                      ^~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <cmath>

using namespace std;

int main (void) {

  unsigned double a, b, C, S, L, h;

  cin >> a >> b >> C;
  
  S = (a * b * sin((C/180)*M_PI)) / 2;
  L = a + b + sqrt(( a*a + b*b + a*b*cos( (C/180) * M_PI) ));
  h = b * sin((C/180)*M_PI);
  
  printf("%lf\n%lf\n%lf\n", S, L, h);
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'unsigned' specified with 'double'
    9 |   unsigned double a, b, C, S, L, h;
      |   ^~~~~~~~
a.cc:9:3: error: 'unsigned' specified with 'double'
a.cc:9:3: error: 'unsigned' specified with 'double'
a.cc:9:3: error: 'unsigned' specified with 'double'
a.cc:9:3: error: 'unsigned' specified with 'double'
a.cc:9:3: error: 'unsigned' specified with 'double'
Language: C++

#include <ioostream>
#include <cmath>
using namespace std;
int main(){
	double a,b,c;
	cin >> a>>b>>c;
	double s,l,h;
	c=c*M_PI\180;
	s=a*b*sin(c)/2;
	l=sqrt(a*a+b*b-2*a*b*cos(c))+a+b;
	h=(s*2)/a;
	cout.setf(ios::fixed,ios::floatfield);
	cout <<s<<endl;
	cout <<l<<endl;
	cout <<h<<endl;
	return 0;
}

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

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
#define PI 3.141592653589793

int main()
{
	double a,b,c,h,l,s,hoge,fuga,piyo;
	cin>>a>>b>>c;
	c = c * PI /180.0;
	hoge = sin(c);
	s = a * b * hoge/2;
	piyo = cos(c);
	fuga = a * a + b * b - (2 * a * b * piyo);
	fuga = sqrt(fuga);
	l = a + b + fuga;
	h = b * hoge;

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

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'sin' was not declared in this scope
   12 |         hoge = sin(c);
      |                ^~~
a.cc:14:16: error: 'cos' was not declared in this scope
   14 |         piyo = cos(c);
      |                ^~~
a.cc:16:16: error: 'sqrt' was not declared in this scope
   16 |         fuga = sqrt(fuga);
      |                ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef vector<int> vi;
typedef vector<vi> vii;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<vb> vbb;ac
typedef pair<int, int> pii;
typedef long long ll;
typedef unsigned long long ull;

#define all(a)  (a).begin(),(a).end()
#define rall(a) (a).rbegin(), (a).rend()
#define pb push_back
#define mp make_pair

#define loop(i,a,b) for(int i=(a);i<ull(b);++i)
#define rep(i,n) loop(i,0,n)

const double eps = 1e-10;
const double pi  = acos(-1.0);
const double inf = (int)1e8;

int main(){
    double a, b, c;
    cin >> a >>b >> c;
    c = c*M_PI/180.0;
    printf("%lf\n",0.5*a*b*sin(c));
    printf("%lf\n",a+b+sqrt(pow(a, 2)+pow(b, 2)-2*a*b*cos(c)));
    printf("%lf\n",b*sin(c));;
}

Compiler output:
a.cc:9:24: error: 'ac' does not name a type
    9 | typedef vector<vb> vbb;ac
      |                        ^~
Language: Java

public class Main {
	public static void main(String args[]) throws IOException{
		double n = 0;
		double m = 0;
		double sigma = 0;
		double alpha =0;
		ArrayList<Double> s = new ArrayList<Double>();
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		while(true){
			n = Double.parseDouble(br.readLine());
			if(n == 0){
				break;
			}
			
			String str[] = br.readLine().split(" ");
			for(int i=0; i<str.length; i++){
				s.add(Double.parseDouble(str[i]));
			}
			
			
			m = ave(s,n);
			
			for(int i=0; i<s.size(); i++){
				sigma += (s.get(i) - m) * (s.get(i) - m);
			}
			
			alpha = Math.sqrt(sigma / n);
			System.out.println(alpha);
		}
	}
	
	public static double ave (ArrayList<Double> s, double n){
		double sum =0;
		
		for(int i=0; i<s.size(); i++){
			sum += s.get(i);
		}
		
		return (sum / n);
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String args[]) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:33: error: cannot find symbol
	public static double ave (ArrayList<Double> s, double n){
	                          ^
  symbol:   class ArrayList
  location: class Main
Main.java:7: error: cannot find symbol
		ArrayList<Double> s = new ArrayList<Double>();
		^
  symbol:   class ArrayList
  location: class Main
Main.java:7: error: cannot find symbol
		ArrayList<Double> s = new ArrayList<Double>();
		                          ^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
7 errors
Language: Java

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	while(true){
	    int n=sc.nextInt();
	    if(n==0){
		break;
	    }
	    int [] scores=new int[n];
	    int sum=0;
	    for(int i=0;i<scores.length;i++){
		scores[i]=sc.nextInt();
		
	    }
	    double a=0,v=0;
	    for(int j=0;j<scores.length;j++){
            sum=sum+scores[j];
            int a=sum/n;
            v=v+(scores[j]-a)*(scores[j]-a)/n;
	    }
	    System.out.println(Math.sqrt(v));
	}
    }
}

Compiler output:
Main.java:20: error: variable a is already defined in method main(String[])
            int a=sum/n;
                ^
1 error
Language: Java

import java.util.Scanner;

public class Standard {
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);

		int i=0;

		double a=0;
		double m=0;

		while(true){
		int n = sc.nextInt();
		if(n==0)	break;

		int s[]= new int[n];

		for(i=0;i<n;i++){
			s[i] = sc.nextInt();
			m+=s[i];
		}
		m/=n;

		for(i=0;i<n;i++){
			a += (s[i]-m)*(s[i]-m);
		}	
		a/=n;
		a=Math.sqrt(a);

		System.out.printf("%f.",a);

		System.out.printf("\n");

		a=0;
		m=0;
		}
	}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int i;
        double avr=0, ans=0;
        int[] num;
        
		while(true){

        int n = sc.nextInt();
        num=new int[n];
        
		if(n==0){
			System.exit(0);
		}

    	for(i=0;i<num.length;i++){
        num[i] = sc.nextInt();
        avr+=num[i];
    	}
    	avr = avr/num.length;
        for(i=0;i<num.length;i++){
            ans=ans+(num[i]-avr)*(num[i]-avr);
        }
        System.out.println("%6d",Math.sqrt(ans/num.length));
		}
	}
}

Compiler output:
Main.java:28: error: no suitable method found for println(String,double)
        System.out.println("%6d",Math.sqrt(ans/num.length));
                  ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
        int i;
        double avr=0, ans=0;
        int[] num;
        
		while(true){

        int n = sc.nextInt();
        num=new int[n];
        
		if(n==0){
			System.exit(0);
		}

    	for(i=0;i<num.length;i++){
        num[i] = sc.nextInt();
        avr+=num[i];
    	}
    	avr = avr/num.length;
        for(i=0;i<num.length;i++){
            ans=ans+(num[i]-avr)*(num[i]-avr);
        }
        System.out.print("%6d\n",Math.sqrt(ans/num.length));
		}
	}
}

Compiler output:
Main.java:28: error: no suitable method found for print(String,double)
        System.out.print("%6d\n",Math.sqrt(ans/num.length));
                  ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error