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

#include <fstream>
//#include <iostream>
#include <math.h>
#include <cstdlib>

using namespace std;


int main(void) {
    //ifstream ifs;
    //ifs.open("./input.txt", ifstream::in);
    double x1, x2, y1, y2;
    
    cin >> x1;
    cin >> y1;
    cin >> x2;
    cin >> y2;
    
    cout << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin >> x1;
      |     ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <cstdlib>
  +++ |+#include <iostream>
    5 | 
a.cc:19:5: error: 'cout' was not declared in this scope
   19 |     cout << sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));
      |     ^~~~
a.cc:19:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'x1' was not declared in this scope; did you mean 'y1'?
    4 |   x1,x2,y1,y2;
      |   ^~
      |   y1
a.cc:4:6: error: 'x2' was not declared in this scope
    4 |   x1,x2,y1,y2;
      |      ^~
a.cc:4:12: error: 'y2' was not declared in this scope; did you mean 'yn'?
    4 |   x1,x2,y1,y2;
      |            ^~
      |            yn
Language: C++

#include<iostream>
#include<cmath>

using namespace std;

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

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |         return;
      |         ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'setprecision' was not declared in this scope
    8 |         cout << setprecision(6) << sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)) << endl;
      |                 ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <cmath>
  +++ |+#include <iomanip>
    3 | using namespace std;
Language: C++

#include<iostream>
using namespace std;
int main()
{
	double x1,x2,y1,y2,x,y,z;
	cin>>x1>>y1>>x2>>y2;
	x=x2-x1;
	y=y2-y1;
	x *=x;
	y *=y;
	z=sqrt(x+y);
	cout<<z<<endl;
	return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
	double x1,x2,y1,y2,x,y,z;
	cin>>x1>>y1>>x2>>y2;
	x=x2-x1;
	y=y2-y1;
	x *=x;
	y *=y;
	z=sqrt(x+y);
	printf("%lf\n",z);
	return 0;
}

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

#include<iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

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

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

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

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

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

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

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

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

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

int main(){
	double x1,x2;
	double y1,y2;
	double val;
	
	cin>>x1>>x2>>y1>>y2;
	
	val=sqrt(pow((x1-y1),2)+pow((x2-y2),2));
	printf("%.7f\n",val);
	return 0;
}

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

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

int main(){
	double x1,x2;
	double y1,y2;
	double val;
	
	cin>>x1>>y1>>x2>>y2;
	
	val=sqrt(pow((x1-y1),2)+pow((x2-y2),2));
	printf("%.7f\n",val);
	return 0;
}

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

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

int main(){
	double x1,x2;
	double y1,y2;
	double val;
	
	cin>>x1>>y1>>x2>>y2;
	
	val=sqrt(pow((x2-x1),2)+pow((y2-y1),2));
	printf("%.7f\n",val);
	return 0;
}

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

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

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

	cout << "input numbers (x1 y1 x2 y2)>>";
	cin >> x1 >> y1 >> x2 >> y2;

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

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

#include <iostream>
#include <string>

using namespace std;

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

    double result = sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));

    cout << result << endl;

    return 0;
}

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

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

int main(){
	double x1,x2;
	double y1,y2;
	double val;
	
	cin>>x1>>y1>>x2>>y2;
	
	val=sqrt(pow((x2-x1),2)+pow((y2-y1),2));
	printf("%.8f\n",val);
	return 0;
}

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

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

int main()
{
	double x1,x2,y1,y2;
	int p;
	
	cin >> x1 >> x2 >> y1 >> y2;
	p = sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1))
	
	printf("%f\n",p);
	return 0;
}
	

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

#include<stdio.h>

int main(void)
{
	double amount, x1, x2, y1, y2;
	scanf("%f %f %f %f", &x1, &y1, &x2, &y2);
	amount = (x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1);
	printf("%lf\n", sqrt(amount));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'sqrt' was not declared in this scope
    8 |         printf("%lf\n", sqrt(amount));
      |                         ^~~~
Language: C++

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

int main(){
	double x_1, y_1, x_2, y_2;
	cin >> x_1 >> y_1 >> x_2 >> y_2;
	double D = sqrt((x_2 - x_1) * (x_2 - x_1) + (y_2 - y_1) * (y_2 - y_1));
	cout << setprecision(9) << D << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'sqrt' was not declared in this scope
    8 |         double D = sqrt((x_2 - x_1) * (x_2 - x_1) + (y_2 - y_1) * (y_2 - y_1));
      |                    ^~~~
Language: C++

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

int main(){
	double x_1, y_1, x_2, y_2;
	cin >> x_1 >> y_1 >> x_2 >> y_2;
	double D = sqrt((x_2 - x_1) * (x_2 - x_1) + (y_2 - y_1) * (y_2 - y_1));
	cout << fixed << setprecision(8) << D << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'sqrt' was not declared in this scope
    8 |         double D = sqrt((x_2 - x_1) * (x_2 - x_1) + (y_2 - y_1) * (y_2 - y_1));
      |                    ^~~~
Language: C++

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

int main(){
	double x_1, y_1, x_2, y_2;
	cin >> x_1 >> y_1 >> x_2 >> y_2;
	double D = sqrt((x_2 - x_1) * (x_2 - x_1) + (y_2 - y_1) * (y_2 - y_1));
	cout << setprecision(8) << D << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: 'sqrt' was not declared in this scope
    8 |         double D = sqrt((x_2 - x_1) * (x_2 - x_1) + (y_2 - y_1) * (y_2 - y_1));
      |                    ^~~~
Language: C++

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

int main(){
	double x_1, y_1, x_2, y_2;
	cin >> x_1 >> y_1 >> x_2 >> y_2;
	double C = (x_2 - x_1) * (x_2 - x_1) + (y_2 - y_1) * (y_2 - y_1);
	double D = sqrt(C);
	//AIZU??§???sqrt??????????????????????????¨????????????
	cout << fixed << setprecision(8) << D << endl;
	return 0;
}

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

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

int main(){
	double x_1, y_1, x_2, y_2;
	cin >> x_1 >> y_1 >> x_2 >> y_2;
	double D = sqrt((x_2 - x_1) * (x_2 - x_1) + (y_2 - y_1) * (y_2 - y_1));
	//AIZU??§???sqrt??????????????????????????¨????????????
	cout << fixed << setprecision(8) << D << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: 'setprecision' was not declared in this scope
   10 |         cout << fixed << setprecision(8) << D << endl;
      |                          ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include<cmath>
  +++ |+#include <iomanip>
    3 | using namespace std;
Language: C++

#include<iostream>
#include <algorithm>

using namespace std;

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

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

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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: 'setprecision' was not declared in this scope
   11 |         cout << fixed << setprecision(8) << sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)) << endl;
      |                          ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include <math.h>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include<iostream>
#include <iomanip>

using namespace std;

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

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

#include<iostream>

using namespace std;


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

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

	cout << sqrt((x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1)) << endl;

	return 0;
}

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

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

using namespace std;

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

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

    double distance = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2));

    cout << setprecision(8) << distance endl;
   
    return (0);
}    

Compiler output:
a.cc: In function 'int main()':
a.cc:16:40: error: expected ';' before 'endl'
   16 |     cout << setprecision(8) << distance endl;
      |                                        ^~~~~
      |                                        ;
Language: C++

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

int main() {
	long double x1, x2, y1, y2, dis;
	scanf_s("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
	dis = hypotl(x2 - x1, y2 - y1);
	printf("%.6lf\n",dis);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
      |         ^~~~~~~
      |         scanf
Language: C++

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


int main() {
	long double x1, x2, y1, y2,s,t,u, dis;
	scanf_s("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
	s = pow(x2 - x1, 2);
	t = pow(y2 - y1, 2);
	u = s + t;
	dis = sqrt(u);
	printf("%.5lf\n", dis);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    9 |         scanf_s("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
      |         ^~~~~~~
      |         scanf
Language: C++

#include<iostream>
using namespace std;

int main(){
     double x1,x2,y1,y2,ans;
     cin>>x1>>y1>>x2>>y2;
     ans=sqrt(pow(x1-x2,2.0)-pow(y1-y2,2.0));
     cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'pow' was not declared in this scope
    7 |      ans=sqrt(pow(x1-x2,2.0)-pow(y1-y2,2.0));
      |               ^~~
a.cc:7:10: error: 'sqrt' was not declared in this scope
    7 |      ans=sqrt(pow(x1-x2,2.0)-pow(y1-y2,2.0));
      |          ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |      ans=sqrt(pow(x1-x2,2.0)+pow(y1-y2,2.0));
      |      ^~~
      |      abs
Language: C++

#include <iostream>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cMath>
using namespace std;

int main()
{
	double x1,y1,x2,y2;
	scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
	printf("%4lf\n",sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)));
	return 0;
	
}

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

#include<iostream>
#include<cmath>

using namespace std;

int main(){
        double x1,y1,x2,y2;
        cin >> x1 >> y1 >> x2 >> y2;
        cout << setprecision(20);
        cout << pow( (x1-x2)*(x1-x2) + (y1-y2)*(y1-y2) ,0.5) << endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'setprecision' was not declared in this scope
    9 |         cout << setprecision(20);
      |                 ^~~~~~~~~~~~
a.cc:3:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    2 | #include<cmath>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include <iostream>
#include <iomanip>

#define INPUT_FROM_FILE (0)
#if INPUT_FROM_FILE
#include <fstream>
#endif

int main(int argc, char **argv){
#if INPUT_FROM_FILE
	std::ifstream ifs("test.txt");
#endif
	double x1 = 0;
	double y1 = 0;
	double x2 = 0;
	double y2 = 0;

#if INPUT_FROM_FILE
	ifs >> x1 >> y1 >> x2 >> y2;
#else
	std::cin >> x1 >> y1 >> x2 >> y2;
#endif
	std::cout << std::fixed << std::setprecision(5) << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << std::endl; 
	return 0;
}

Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:23:65: error: 'pow' was not declared in this scope
   23 |         std::cout << std::fixed << std::setprecision(5) << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << std::endl;
      |                                                                 ^~~
a.cc:23:60: error: 'sqrt' was not declared in this scope
   23 |         std::cout << std::fixed << std::setprecision(5) << sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)) << std::endl;
      |                                                            ^~~~
Language: C++

#include <iostream>
#include <math>
#include <iomanip>
using namespace std;
    
int main()
{
	float p1x, p1y, p2x, p2y, l;
	cin >> p1x >> p1y >> p2x >> p2y;
	l = pow((p2x-p1x),2)+pow((p2y-p1y),2);
	l = sqrt(l);
	cout << fixed << setprecision(4) <<l << 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.h>
#include <iomanip.h>
using namespace std;
    
int main()
{
	float p1x, p1y, p2x, p2y, l;
	cin >> p1x >> p1y >> p2x >> p2y;
	l = pow((p2x-p1x),2)+pow((p2y-p1y),2);
	l = sqrt(l);
	cout << fixed << setprecision(4) <<l << endl;
	return 0;
}

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

import math
x = map(int, (raw_input()).split(" "))

print math.sqrt((x[2]-x[0])*(x[2]-x[0]) + (x[3]-x[1])*(x[3]-x[1]))

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

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

using namespace std;
typedef long long ll;

int main(){

  float a,b,c,d,e,f;
  float g;

  cin>>a>>b>>c>>d;

  e = pow((c-a), 2);
  f = pow((d-b), 2);
  g = e+f;

  printf("%.10f"\n, sqrt(g));

}

Compiler output:
a.cc:19:17: error: stray '\' in program
   19 |   printf("%.10f"\n, sqrt(g));
      |                 ^
a.cc: In function 'int main()':
a.cc:19:17: error: expected ')' before 'n'
   19 |   printf("%.10f"\n, sqrt(g));
      |         ~       ^~
      |                 )
Language: C++

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

double x,y,X,Y;

int main(){
 cin>>x>>y>>X>>Y;
 double e=abs(x-y),E=abs(X-Y);
 cout<<sqrt(e*e+E*E)<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'sqrt' was not declared in this scope
   11 |  cout<<sqrt(e*e+E*E)<<endl;
      |        ^~~~
Language: C++

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

int main(){
 double x1,x2,y1,y2;
 cin >> x1 >> x2 >> y1 >> y2;
 int distance=sqrt(pow(x1-x2,2)+pow(y1-y2,2));

 cout << distance;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  cin >> x1 >> x2 >> y1 >> y2;
      |  ^~~
      |  std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |  cout << distance;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main(){
 double x1,x2,y1,y2;
 cin >> x1 >> x2 >> y1 >> y2;
 double distance=sqrt(pow(x1-x2,2)+pow(y1-y2,2));

 cout << distance;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |  cin >> x1 >> x2 >> y1 >> y2;
      |  ^~~
      |  std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:2: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |  cout << distance;
      |  ^~~~
      |  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main(){
 double x1,x2,y1,y2;
 cin >> x1 >> y1 >> x2 >> y2;
 double distance=sqrt(pow(x1-x2,2)+pow(y1-y2,2));

 cout fixed << setprecision(16) << distance << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:6: error: expected ';' before 'fixed'
   11 |  cout fixed << setprecision(16) << distance << endl;
      |      ^~~~~~
      |      ;
Language: C++

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

int main(){
 double x1,x2,y1,y2;
 cin >> x1 >> y1 >> x2 >> y2;
 double distance=sqrt(pow(x1-x2,2)+pow(y1-y2,2));

 cout fixed << setprecision(16) << distance << endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: expected ';' before 'fixed'
   12 |  cout fixed << setprecision(16) << distance << endl;
      |      ^~~~~~
      |      ;
Language: C++

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

int main(int argc, char const *argv[])
{
  double x1, x2, y1, y2;
  cin >> x1 >> y1 >> x2 >> y2;
  cout << << fixed << setprecision(10) << sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:8:11: error: expected primary-expression before '<<' token
    8 |   cout << << fixed << setprecision(10) << sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)) << endl;
      |           ^~
Language: C++

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

using namespace std;

int main() {
	float x1, y1, x2, y1;
	scanf("%f %f %f %f", &x1, &y1, &x2, &y2);
	printf("%f\n", sqrt((x2 - x1) * (x2 - x2) + (y2 - y1) * (y2 - y1)));
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: redeclaration of 'float y1'
    8 |         float x1, y1, x2, y1;
      |                           ^~
a.cc:8:19: note: 'float y1' previously declared here
    8 |         float x1, y1, x2, y1;
      |                   ^~
a.cc:9:46: error: 'y2' was not declared in this scope; did you mean 'x2'?
    9 |         scanf("%f %f %f %f", &x1, &y1, &x2, &y2);
      |                                              ^~
      |                                              x2
Language: C++

#include<iostream>
using namespace std;
int main(){
	double x1,y1,x2,y2,a,b,c,ans;
	cin>>x1>>y1>>x2>>y2;
	a=x1-x2;
	b=y1-y2;
	ans=sqrt(a*a+b*b);
	cout<<ans<<endl;
}

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

#include<stdio.h>
int main()
{
float x1,y1,x2,y2,s;
i=((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))*((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
printf("%f\n",i);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'i' was not declared in this scope
    5 | i=((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))*((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))
      | ^
Language: C++

#include<stdio.h>
int main()
{
float x1,y1,x2,y2,s;
i=((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))*((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
printf("%f\n",i);
return 0;
}

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

#include<stdio.h>
int main()
{
float x1,y1,x2,y2,s;
s=((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))*((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
printf("%f\n",i);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: 'i' was not declared in this scope
    6 | printf("%f\n",i);
      |               ^
Language: C++

#include<stdio.h>
int main()
{
float x1,y1,x2,y2,s;
s*s=((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))*((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
printf("%f\n",s);
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: lvalue required as left operand of assignment
    5 | s*s=((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2))*((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
      | ~^~
Language: C++

x1,y1,x2,y2=map(float,input().split())
print("%.6f"%((x2-x1)**2+(y2-y1**2))**0.5)

Compiler output:
a.cc:1:1: error: 'x1' does not name a type
    1 | x1,y1,x2,y2=map(float,input().split())
      | ^~
Language: C++

#include <iostream>
#include <sstream>
#include <vector>
#include <algorithm>
#include <string>
#include <functional>
#include <numeric>
#include <ctype.h>
#include <cstdlib>
#include <string.h>


using namespace std;


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

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

	 double distance = pow(x2 - x1, 2.0) + pow(y2 - y1, 2.0);
	distance = sqrt(distance);

	cout << distance << endl;

	
}

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

#include<cstdio>
#include<complex>

double InnerProd(point x,point y){
   return (std::conj(x)*y).real();
}

typedef std::complex<double> point;
int main(){
   double x1,y1,x2,y2;
   point x,y;
   scanf("%lf%lf%lf%lf",&x1,&y1,&x2,&y2);
   x=point(x1,y1);
   y=point(x2,y2);
   printf("%lf\n",InnerProd(x-y,x-y));
    return 0;
}

Compiler output:
a.cc:4:18: error: 'point' was not declared in this scope
    4 | double InnerProd(point x,point y){
      |                  ^~~~~
a.cc:4:26: error: 'point' was not declared in this scope
    4 | double InnerProd(point x,point y){
      |                          ^~~~~
a.cc:4:33: error: expression list treated as compound expression in initializer [-fpermissive]
    4 | double InnerProd(point x,point y){
      |                                 ^
a.cc: In function 'int main()':
a.cc:15:28: error: 'InnerProd' cannot be used as a function
   15 |    printf("%lf\n",InnerProd(x-y,x-y));
      |                   ~~~~~~~~~^~~~~~~~~
Language: C++

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

#define scanf scanf_s
#define printf printf_s

int main(){
	int x1, x2, y1, y2;
	scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
	long double d = sqrtl((x1 - x2)*(x1 - x2) + (y2 - y1)*(y2 - y1));
	printf("%lf\n",d);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:10:9: note: in expansion of macro 'scanf'
   10 |         scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
      |         ^~~~~
a.cc:6:16: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
    6 | #define printf printf_s
      |                ^~~~~~~~
a.cc:12:9: note: in expansion of macro 'printf'
   12 |         printf("%lf\n",d);
      |         ^~~~~~
Language: C++

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

#define scanf scanf_s
#define printf printf_s

int main(){
	long double x1, x2, y1, y2;
	scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
	long double d = sqrtl((x1 - x2)*(x1 - x2) + (y2 - y1)*(y2 - y1));
	printf("%lf\n",d);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    5 | #define scanf scanf_s
      |               ^~~~~~~
a.cc:10:9: note: in expansion of macro 'scanf'
   10 |         scanf("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
      |         ^~~~~
a.cc:6:16: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
    6 | #define printf printf_s
      |                ^~~~~~~~
a.cc:12:9: note: in expansion of macro 'printf'
   12 |         printf("%lf\n",d);
      |         ^~~~~~
Language: C++

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

int main(){
	double x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	cout << sqrt((pow(x1-x2,2)+pow(y1-y2,2)) << "\n";

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:50: error: invalid operands of types '__gnu_cxx::__promote<double>::__type' {aka 'double'} and 'const char [2]' to binary 'operator<<'
    8 |         cout << sqrt((pow(x1-x2,2)+pow(y1-y2,2)) << "\n";
      |                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~~
      |                                   |                 |
      |                                   |                 const char [2]
      |                                   __gnu_cxx::__promote<double>::__type {aka double}
Language: C++

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


int main(){
	double x1, x2, y1, y2;
	scanf_s("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
	double ans = sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
	printf_s("%.8f\n", ans);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    8 |         scanf_s("%lf %lf %lf %lf", &x1, &y1, &x2, &y2);
      |         ^~~~~~~
      |         scanf
a.cc:10:9: error: 'printf_s' was not declared in this scope; did you mean 'printf'?
   10 |         printf_s("%.8f\n", ans);
      |         ^~~~~~~~
      |         printf
Language: C++

int main()
{
    int x1,y1,x2,y2;
    cin >> x1 >> y1 >> x2 >> y2;
    double data = sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));
    printf("%lf\n", data);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> x1 >> y1 >> x2 >> y2;
      |     ^~~
a.cc:5:19: error: 'sqrt' was not declared in this scope
    5 |     double data = sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1));
      |                   ^~~~
a.cc:6:5: error: 'printf' was not declared in this scope
    6 |     printf("%lf\n", data);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
Language: C++

#include <stdio.h>
#include <math.h>
int main(void){
double x1,x2,y1,y2,XX,YY;
scanf(%lf %lf %lf %lf,&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:5:7: error: expected primary-expression before '%' token
    5 | scanf(%lf %lf %lf %lf,&x1,&y1,&x2,&y2);
      |       ^
a.cc:5:8: error: 'lf' was not declared in this scope
    5 | scanf(%lf %lf %lf %lf,&x1,&y1,&x2,&y2);
      |        ^~
Language: C++

#include<cstdio>
#include<cmath>

int main(){
double x1,x2,y1,y2;
scanf("%lf %lf %lf %lf",x1,y1,x2,y2);
printf("%lf\n",sqrt(pow(x1-x2,2)+pow(y1-y2,2),)
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: expected primary-expression before ')' token
    7 | printf("%lf\n",sqrt(pow(x1-x2,2)+pow(y1-y2,2),)
      |                                               ^
Language: C++

#include<cstdio>
#include<cmath>

int main(){
double x1,x2,y1,y2;
scanf("%lf %lf %lf %lf",x1,y1,x2,y2);
printf("%lf\n",sqrt(pow(x1-x2,2)+pow(y1-y2,2))
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:47: error: expected ')' before 'return'
    7 | printf("%lf\n",sqrt(pow(x1-x2,2)+pow(y1-y2,2))
      |       ~                                       ^
      |                                               )
    8 | return 0;
      | ~~~~~~
Language: C++

#include<cstdio>
#include<cmath>

int main(){
double x1,x2,y1,y2;
scanf("%lf %lf %lf %lf",x1,y1,x2,y2);
printf("%lf\n",sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
return 0;
}

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

#include<stdio.h>
#include<math.h>
using namespace std;
int main(){
	double x1, x2, y1, y2, p1 , p2 , x ;
	scanf_s("%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2);
	p1 = x2 - x1;
	p2 = y2 - y1;
	x = p1*p1 + p2*p2;
	x = sqrt(x);
	printf("%.8lf\n ", x);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%lf,%lf,%lf,%lf", &x1, &y1, &x2, &y2);
      |         ^~~~~~~
      |         scanf
Language: C++

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

int main(){
	double x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	double d  sqrt( (x1-x2)*(x1-x2))+((y1-y2)*(y1-y2));
	printf("lf\n",d);

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected initializer before 'sqrt'
    7 |         double d  sqrt( (x1-x2)*(x1-x2))+((y1-y2)*(y1-y2));
      |                   ^~~~
a.cc:8:23: error: 'd' was not declared in this scope
    8 |         printf("lf\n",d);
      |                       ^
Language: C++

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

int main(void)
{
	double x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2; 
	
	double x = (x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2);
	
	double y = sqrt(x);
	
	printf("%.4f\n", y);
	//cout << y << endl;
	
	return 0;
}

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

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

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

 cout << sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1) << endl ;
 
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:47: error: invalid operands of types 'double' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |  cout << sqrt((x2-x1)*(x2-x1)+(y2-y1)*(y2-y1) << endl ;
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
Language: C++

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

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

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

#include <iostream>
#include <cstdio>
#include <iomanip>
#include <algorithm>
using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

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

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

#include <iostream>
using namespace std;

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

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

#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<cctype>
#include<string.h>

#define sqr(x) ((x) * (x))

int main()
{
	int x[2];
	int y[2];
	scanf("%d %d %d %d", &x[1], &y[1], &x[2], &y[2]);
	printf("%f\n", sqrt(sqr(x[1] - x[2]) + sqr(y[1] - y[2], 2)));
	return 0;
}

Compiler output:
a.cc:14:66: error: macro "sqr" passed 2 arguments, but takes just 1
   14 |         printf("%f\n", sqrt(sqr(x[1] - x[2]) + sqr(y[1] - y[2], 2)));
      |                                                                  ^
a.cc:7:9: note: macro "sqr" defined here
    7 | #define sqr(x) ((x) * (x))
      |         ^~~
a.cc: In function 'int main()':
a.cc:14:48: error: 'sqr' was not declared in this scope
   14 |         printf("%f\n", sqrt(sqr(x[1] - x[2]) + sqr(y[1] - y[2], 2)));
      |                                                ^~~
Language: C++

#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<cctype>
#include<string.h>

#define sqr(x) ((x) * (x))

int main()
{
	int x1,x2;
	int y1,y2;
	scanf("%d %d %d %d", &x1, &y1, &x2, &y2);
	printf("%f\n", sqrt(sqr(x1 - x2) + sqr(y1 - y2,)));
	return 0;
}

Compiler output:
a.cc:14:56: error: macro "sqr" passed 2 arguments, but takes just 1
   14 |         printf("%f\n", sqrt(sqr(x1 - x2) + sqr(y1 - y2,)));
      |                                                        ^
a.cc:7:9: note: macro "sqr" defined here
    7 | #define sqr(x) ((x) * (x))
      |         ^~~
a.cc: In function 'int main()':
a.cc:14:44: error: 'sqr' was not declared in this scope
   14 |         printf("%f\n", sqrt(sqr(x1 - x2) + sqr(y1 - y2,)));
      |                                            ^~~
Language: C++

#include <bits/stdc++.h>
int main(){
  double a,b,c,d;
  std::cin>>a>>b>>c>>d;
  std::cout<<fixed<<setprecision(4)<<hypot(a-c,b-d);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: 'fixed' was not declared in this scope
    5 |   std::cout<<fixed<<setprecision(4)<<hypot(a-c,b-d);
      |              ^~~~~
a.cc:5:14: note: suggested alternatives:
In file included from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54,
                 from a.cc:1:
/usr/include/c++/14/bits/ios_base.h:1104:3: note:   'std::fixed'
 1104 |   fixed(ios_base& __base)
      |   ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:198:
/usr/include/c++/14/charconv:622:21: note:   'std::chars_format::fixed'
  622 |     scientific = 1, fixed = 2, hex = 4, general = fixed | scientific
      |                     ^~~~~
a.cc:5:21: error: 'setprecision' was not declared in this scope; did you mean 'std::setprecision'?
    5 |   std::cout<<fixed<<setprecision(4)<<hypot(a-c,b-d);
      |                     ^~~~~~~~~~~~
      |                     std::setprecision
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:202:3: note: 'std::setprecision' declared here
  202 |   setprecision(int __n)
      |   ^~~~~~~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
	double x1, x2, y1, y2,a,b;
	cin >> x1 >> y1 >> x2 >> y2;
	a = pow(x2 - x1, 2) + pow(y2 - y1, 2);
	b = sqrt(a);
	cout << b << endl;

	return 0;
}


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

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

int main(){
	double x1, x2, y1, y2,a,b;
	cin >> x1 >> y1 >> x2 >> y2;
	a = pow(x2 - x1, 2) + pow(y2 - y1, 2);
	b = sqrt(a);
	printf("%f\n", b);

	return 0;
}


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

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

int main(){
	double x1, x2, y1, y2,a,b;
	cin >> x1 >> y1 >> x2 >> y2;
	a = pow(x2 - x1, 2) + pow(y2 - y1, 2);
	b = sqrt(a);
	printf("%f\n", b);

	return 0;
}


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

#include<cstdio>
#include<limits>
int main() {
	double x1, x2, y1, y2;
	scanf("%lf%lf%lf%lf", &x1, &y1, &x2, &y2);
	printf("%f", std::sqrt((x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1)));
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: 'sqrt' is not a member of 'std'
    6 |         printf("%f", std::sqrt((x2 - x1)*(x2 - x1) + (y2 - y1)*(y2 - y1)));
      |                           ^~~~
Language: C++

#include<iostream>
#include <iomanip>
using namespace std;
int main()
{
	long double x1, y1, x2, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	long double res = sqrtl((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
	cout << fixed << setprecision(8) << res << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'sqrtl' was not declared in this scope; did you mean 'strtol'?
    8 |         long double res = sqrtl((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
      |                           ^~~~~
      |                           strtol
Language: C++

# Your code here!
x1, y1, x2, y2 = gets.split.map(&:to_f)
puts ((x2 - x1)**2 + (y2 - y1)**2)**(1/2.0)


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #Your
    1 | # Your code here!
      |   ^~~~
a.cc:2:1: error: 'x1' does not name a type
    2 | x1, y1, x2, y2 = gets.split.map(&:to_f)
      | ^~
Language: C++

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

int main(void) {
  int a, b, c, d;
  scanf("%d%d%d%d", &a, &b, &c, &d);
  printf("%f\n", sqrt((a - c) * (a - c) + (b - d) * (b - d));
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:61: error: expected ')' before ';' token
    7 |   printf("%f\n", sqrt((a - c) * (a - c) + (b - d) * (b - d));
      |         ~                                                   ^
      |                                                             )
Language: C++

#include <iostream>

using namespace std;

int main() {
	int a, b, c, d;
	cin >> a >> b >> c >> d;
	cout << sqrt(((b - a) * (b - a)) + ((d - c) * (d - c)))
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'sqrt' was not declared in this scope
    8 |         cout << sqrt(((b - a) * (b - a)) + ((d - c) * (d - c)))
      |                 ^~~~
Language: C++

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

int main(){
    cout<<fixed<<setprecision(12);
    double x1,y1,x2,y2;
    cin>>x1>>y1>>x2>>y2;
    double X=pow(x1-x2;2);
    double Y=pow(y1-y2;2);
    cout<< sqrt( X+Y ) <<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ')' before ';' token
    8 |     double X=pow(x1-x2;2);
      |                 ~     ^
      |                       )
a.cc:8:25: error: expected ';' before ')' token
    8 |     double X=pow(x1-x2;2);
      |                         ^
      |                         ;
a.cc:9:23: error: expected ')' before ';' token
    9 |     double Y=pow(y1-y2;2);
      |                 ~     ^
      |                       )
a.cc:9:25: error: expected ';' before ')' token
    9 |     double Y=pow(y1-y2;2);
      |                         ^
      |                         ;
Language: C++

#include<iostream>
#include<math.h>
using namespace std;
int main() {
	double x1, y1, x2, y2, tate, yoko;
	cin >> x1 >> y1 >> x2 >> y2;
	tate = abs(y1 - y2);
	yoko = abs(x1 - x2);
	double answer = sqrt(tate*tate + yoko*yoko);
	cout << std::setprecision(9) << answer << endl;
	return 0;
}


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

#include<iostream>
#include<cstdlib>
#include<math.h>
using namespace std;
int main() {
	double x1, y1, x2, y2, tate, yoko;
	cin >> x1 >> y1 >> x2 >> y2;
	tate = abs(y1 - y2);
	yoko = abs(x1 - x2);
	double answer = sqrt(tate*tate + yoko*yoko);
	cout << std::setprecision(9) << answer << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'setprecision' is not a member of 'std'
   11 |         cout << std::setprecision(9) << answer << endl;
      |                      ^~~~~~~~~~~~
a.cc:4:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    3 | #include<math.h>
  +++ |+#include <iomanip>
    4 | using namespace std;
Language: C++

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

int mian(){
    int x1,y1,x2,y2;

  double dis;
  
  cin >> x1 >> y1 >> x2 >> y2;

  dis = ((double)x1 - x2) * ((double)x1 - x2) + ((double)y1 - y2) * ((double)y1 - y2);
  dis = sqrt(dis);

  cout << dis << endl;
  
  return 0;
}



Compiler output:
/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(){
	double x1, x2, y1, y2;
	cin >> x1;
	cin >> y1;
	cin >> x2;
	cin >> y2;
	cout << sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));
}


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

#include <iostream>
#include <string>
#include <cstadio>
#include <cmath>

using namespace std;
int main() {
    int a,b,c,d;
    cin >> a >> b >> c >> d ;
    int e;
    e = (c-a)*(c-a)+(d-b)*(d-b);
    printf("%.7f\n", sqrt(e));
    
}



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