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

#include(math.h)
int main(void)
{
  double x1,x2,y1,y2;
  scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); 

  printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
  return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(math.h)
      |         ^
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(math.h)
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:16: error: implicit declaration of function 'sqrt' [-Wimplicit-function-declaration]
    7 |   printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
      |                ^~~~
main.c:1:1: note: include '<math.h>' or provide a declaration of 'sqrt'
  +++ |+#include <math.h>
    1 | #include(math.h)
main.c:7:16: warning: incompatible implicit declaration of built-in function 'sqrt' [-Wbuiltin-declaration-mismatch]
    7 |   printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
      |                ^~~~
main.c:7:16: note: include '<math.h>' or provide a declaration of 'sqrt'
main.c:7:21: error: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
    7 |   printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
      |                     ^~~
main.c:7:21: note: include '<math.h>' or provide a declaration of 'pow'
main.c:7:21: warning: incompatible implicit declaration of built-in function 'pow' [-Wbuiltin-declaration-mismatch]
main.c:7:21: note: include '<math.h>' or provide a declaration of 'pow'
main.c:7:21: error: too few arguments to function 'pow'
main.c:7:32: error: too few arguments to function 'pow'
    7 |   printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
      |                                ^~~
Language: C

#include<math.h>
#include<stdio.h>
int main(void)
{
  double x1,x2,y1,y2;
  scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2); 

  printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:21: error: too few arguments to function 'pow'
    8 |   printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
      |                     ^~~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/bits/libc-header-start.h:33,
                 from /usr/include/math.h:27,
                 from main.c:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
main.c:8:32: error: too few arguments to function 'pow'
    8 |   printf("%lf",sqrt(pow(x1-x2)+pow(y1-y2)));
      |                                ^~~
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:173:1: note: declared here
  173 | __MATHCALL_VEC (pow,, (_Mdouble_ __x, _Mdouble_ __y));
      | ^~~~~~~~~~~~~~
Language: C++

#include "bits/stdc++.h"
using namespace std;
int main(){
    double a,b,c,d,r;
    r = (a-b)*(a-b)+(c-d)*(c-d);
    printf("%.4lf\n",sqrt(r))
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: expected ';' before 'return'
    6 |     printf("%.4lf\n",sqrt(r))
      |                              ^
      |                              ;
    7 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
#include<cmath>

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


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

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

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


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

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

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

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

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

   cout << fixed << setprecision(12) << d <<endl;

	return 0;
}


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

#include <iostream>
#include <string>

using namespace std;

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

	cout << sqrt((x1 - x2)*(x1 - x2)+(y1 - y2)*(y1 - y2)) << 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((x1 - x2)*(x1 - x2)+(y1 - y2)*(y1 - y2)) << endl;
      |                 ^~~~
Language: C++

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

#define STRMAX 1005
#define ORDREMAX 20


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

#define STRMAX 1005
#define ORDREMAX 20


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



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

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

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

	cout << pow((x2 -x1)**2+(y2-y1)**2,1/2) <<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: invalid type argument of unary '*' (have 'int')
    9 |         cout << pow((x2 -x1)**2+(y2-y1)**2,1/2) <<endl;
      |                              ^~
a.cc:9:41: error: invalid type argument of unary '*' (have 'int')
    9 |         cout << pow((x2 -x1)**2+(y2-y1)**2,1/2) <<endl;
      |                                         ^~
Language: C++

#include <bits/stdc++.h>
using namespace std::
int main(){
    double x1, y1, x2, y2;
    cout << sqrt(pow(x1-x2, 2) + pow(y1-y2, 2)) << endl;
}


Compiler output:
a.cc:3:1: error: expected identifier before 'int'
    3 | int main(){
      | ^~~
a.cc:2:22: error: expected ';' before 'int'
    2 | using namespace std::
      |                      ^
      |                      ;
    3 | int main(){
      | ~~~                   
a.cc: In function 'int main()':
a.cc:5:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     cout << sqrt(pow(x1-x2, 2) + pow(y1-y2, 2)) << endl;
      |     ^~~~
      |     std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |     cout << sqrt(pow(x1-x2, 2) + pow(y1-y2, 2)) << endl;
      |                                                    ^~~~
      |                                                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:2: error: expected ',' or ';' before 'double'
    9 |  double dis = sqrt( square )
      |  ^~~~~~
Language: C++

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

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

  cout << sqrt(abs(x2 - x1) + abs(y2 - y1)) << 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<#include <bits/stdc++.h>
using namespace std;
int main() {
    // insert code here...
    double a,b,c,d;
    double answer,number1,number2;
    cin>>a>>b>>c>>d;
    if(a==c){
        answer=double (fabs(b-d));
    }else if (b==d){
        answer=double(fabs(a-c));
    }else{
        number1=double (fabs(b-d));
        number2=double (fabs(a-c));
        answer=double (sqrt(number1+number2));
    }
    printf("%lf\n",answer);
    return 0;
}



Compiler output:
a.cc:1:9: error: stray '#' in program
    1 | include<#include <bits/stdc++.h>
      |         ^
a.cc:1:1: error: 'include' does not name a type
    1 | include<#include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a>>b>>c>>d;
      |     ^~~
a.cc:9:24: error: 'fabs' was not declared in this scope
    9 |         answer=double (fabs(b-d));
      |                        ^~~~
a.cc:11:23: error: 'fabs' was not declared in this scope
   11 |         answer=double(fabs(a-c));
      |                       ^~~~
a.cc:13:25: error: 'fabs' was not declared in this scope
   13 |         number1=double (fabs(b-d));
      |                         ^~~~
a.cc:15:24: error: 'sqrt' was not declared in this scope
   15 |         answer=double (sqrt(number1+number2));
      |                        ^~~~
a.cc:17:5: error: 'printf' was not declared in this scope
   17 |     printf("%lf\n",answer);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<#include <bits/stdc++.h>
Language: C++

include<#include <bits/stdc++.h>
using namespace std;
int main() {
    // insert code here...
    double a,b,c,d;
    double answer,number1,number2;
    cin>>a>>b>>c>>d;
    if(a==c){
        answer=fabs(b-d);
    }else if (b==d){
        answer=fabs(a-c);
    }else{
        number1=fabs(b-d);
        number2=fabs(a-c);
        answer=sqrt(number1+number2);
    }
    printf("%lf\n",answer);
    return 0;
}




Compiler output:
a.cc:1:9: error: stray '#' in program
    1 | include<#include <bits/stdc++.h>
      |         ^
a.cc:1:1: error: 'include' does not name a type
    1 | include<#include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>a>>b>>c>>d;
      |     ^~~
a.cc:9:16: error: 'fabs' was not declared in this scope
    9 |         answer=fabs(b-d);
      |                ^~~~
a.cc:11:16: error: 'fabs' was not declared in this scope
   11 |         answer=fabs(a-c);
      |                ^~~~
a.cc:13:17: error: 'fabs' was not declared in this scope
   13 |         number1=fabs(b-d);
      |                 ^~~~
a.cc:15:16: error: 'sqrt' was not declared in this scope
   15 |         answer=sqrt(number1+number2);
      |                ^~~~
a.cc:17:5: error: 'printf' was not declared in this scope
   17 |     printf("%lf\n",answer);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<#include <bits/stdc++.h>
Language: C++

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

int main() {
    // insert code here...
    double a,b,c,d;
    double answer,number1,number2;
    cin>>a>>b>>c>>d;
    if(a==c){
        answer=double (fabs(b-d));
    }else if (b==d){
        answer=double(fabs(a-c));
    }else{
        number1=double (fabs(b-d));
        number2=double (fabs(a-c));
        answer=double (sqrt(number1+number2));
    }
    printf("%lf\n",answer);
    return 0;
}





Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin>>a>>b>>c>>d;
      |     ^~~
a.cc:10:24: error: 'fabs' was not declared in this scope
   10 |         answer=double (fabs(b-d));
      |                        ^~~~
a.cc:12:23: error: 'fabs' was not declared in this scope
   12 |         answer=double(fabs(a-c));
      |                       ^~~~
a.cc:14:25: error: 'fabs' was not declared in this scope
   14 |         number1=double (fabs(b-d));
      |                         ^~~~
a.cc:16:24: error: 'sqrt' was not declared in this scope
   16 |         answer=double (sqrt(number1+number2));
      |                        ^~~~
a.cc:18:5: error: 'printf' was not declared in this scope
   18 |     printf("%lf\n",answer);
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include <bits/stdc++.h>
Language: C++

#include<iostream>
using namespace std;

int main() {
    int x1, x2, y1, y2;
    double ans;
    cin >> x1 >> x2 >> x3 >> x4;
    ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2)
    cout << ans << endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: 'x3' was not declared in this scope; did you mean 'x2'?
    7 |     cin >> x1 >> x2 >> x3 >> x4;
      |                        ^~
      |                        x2
a.cc:7:30: error: 'x4' was not declared in this scope; did you mean 'x2'?
    7 |     cin >> x1 >> x2 >> x3 >> x4;
      |                              ^~
      |                              x2
a.cc:8:22: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2)
      |                      ^~
a.cc:8:37: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2)
      |                                     ^~
a.cc:8:41: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2)
      |                                         ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2)
      |                      ^~
a.cc:8:37: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2)
      |                                     ^~
a.cc:8:41: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2)
      |                                         ^~~~~~
Language: C++

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2);
      |                      ^~
a.cc:8:37: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2);
      |                                     ^~
a.cc:8:41: error: invalid type argument of unary '*' (have 'int')
    8 |     ans = ((x1 - y1)**2 + (x2 - y2)**2)**(1/2);
      |                                         ^~~~~~
Language: C++

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

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


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

#incldue <iostream>
#include <cmath>
using namespace std;
int main(){
    int x1,x2,x3,y1,y2,y3,n;
    cin>.x1>>y1>>x2>>y2;
    x3 = pow(x2-x1,2);
    y3 = pow(y2-y1,2);
    n = x3+y3;
    cout<<sqrt(n)<<endl;
    
return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>.x1>>y1>>x2>>y2;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <cmath>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:6:9: error: expected primary-expression before '.' token
    6 |     cin>.x1>>y1>>x2>>y2;
      |         ^
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<sqrt(n)<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout<<sqrt(n)<<endl;
      |                    ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <cmath>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

#incldue <iostream>
#include <cmath>
using namespace std;
int main(){
    int x1,x2,x3,y1,y2,y3,n;
    cin>>x1>>y1>>x2>>y2;
    x3 = pow(x2-x1,2);
    y3 = pow(y2-y1,2);
    n = x3+y3;
    cout<<sqrt(n)<<endl;
    
return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>x1>>y1>>x2>>y2;
      |     ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <cmath>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<sqrt(n)<<endl;
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |     cout<<sqrt(n)<<endl;
      |                    ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <cmath>
  +++ |+#include <ostream>
    3 | using namespace std;
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int main(){
    double x1,x2,x3,y1,y2,y3,n;
    flaot m;
    cin>>x1>>y1>>x2>>y2;
    x3 = (x2-x1)*(x2-x1);
    y3 = (y2-y1)*(y2-y1);
    n = x3+y3;
    m = sqrt(n);
    cout<<m<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'flaot' was not declared in this scope; did you mean 'float'?
    6 |     flaot m;
      |     ^~~~~
      |     float
a.cc:11:5: error: 'm' was not declared in this scope
   11 |     m = sqrt(n);
      |     ^
Language: C++

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

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


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
    2 | #incldue <cmath>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:13: error: 'sqrt' was not declared in this scope
   10 |     cout << sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)) << endl;
      |             ^~~~
Language: C++

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

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


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
    2 | #incldue <cmath>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:12:13: error: 'sqrt' was not declared in this scope
   12 |     cout << sqrt(a) << endl;
      |             ^~~~
Language: C++

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

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


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
    2 | #incldue <cmath>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:11:9: error: 'sqrt' was not declared in this scope
   11 |     a = sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));
      |         ^~~~
Language: C++

<include>iostream
<include>cmath
using namespace std;
int main()｛
    double x1,x2,y1,y2,d;
    int n=2
    cin>>x1>>y1>>x2>>y2;
    d=pow(x1-x2,n)+pow（y1-y2,n);
    cout<<sqrt(d)<<endl;
    return 0;
}
    



Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <include>iostream
      | ^
a.cc:4:11: error: expected initializer before '\U0000ff5b'
    4 | int main()｛
      |           ^~
a.cc:7:5: error: expected ',' or ';' before 'cin'
    7 |     cin>>x1>>y1>>x2>>y2;
      |     ^~~
a.cc:8:5: error: 'd' does not name a type
    8 |     d=pow(x1-x2,n)+pow（y1-y2,n);
      |     ^
a.cc:9:5: error: 'cout' does not name a type
    9 |     cout<<sqrt(d)<<endl;
      |     ^~~~
a.cc:10:5: error: expected unqualified-id before 'return'
   10 |     return 0;
      |     ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

<include>iostream
<include>cmath
using namespace std;
int main()｛
    double x1,x2,y1,y2,d,n=2;
    cin>>x1>>y1>>x2>>y2;
    d=pow(x1-x2,n)+pow（y1-y2,n);
    cout<<sqrt(d)<<endl;
    return 0;
}
    



Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <include>iostream
      | ^
a.cc:4:11: error: expected initializer before '\U0000ff5b'
    4 | int main()｛
      |           ^~
a.cc:6:5: error: 'cin' does not name a type
    6 |     cin>>x1>>y1>>x2>>y2;
      |     ^~~
a.cc:7:5: error: 'd' does not name a type
    7 |     d=pow(x1-x2,n)+pow（y1-y2,n);
      |     ^
a.cc:8:5: error: 'cout' does not name a type
    8 |     cout<<sqrt(d)<<endl;
      |     ^~~~
a.cc:9:5: error: expected unqualified-id before 'return'
    9 |     return 0;
      |     ^~~~~~
a.cc:10:1: error: expected declaration before '}' token
   10 | }
      | ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;
int main(){
    double a,b,c,S,L,h,C;
    cin >> a >> b >> C;
    h = b*sin(C*PI/180);
    S = a*h/2;
    c = a*a + b*b - 2*a*b*cos(C*PI/180);
    L = a+b+c;
    cout << fixed << S << endl;
    cout << fixed << L << endl;
    cout << fixed << h << endl;
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: expected ';' before 'return'
    7 |     printf("%f\n",d)
      |                     ^
      |                     ;
    8 |     return 0;
      |     ~~~~~~
Language: C++

#incliude<iostream>
#include<stdio.h>
#include<cmath>
using namespace std;
int main(){
    double x1,y1,x2,y2,d;
    cin>>x1>>y1>>x2>>y2;
    d=sqrt((x1-x2)*(x1-x2)+(y1-y1)*(y1-y2));
    printf("%f\n",d);
    return 0;
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incliude; did you mean #include?
    1 | #incliude<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>x1>>y1>>x2>>y2;
      |     ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include<cmath>
  +++ |+#include <iostream>
    4 | using namespace std;
Language: C++

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

int main() {
	pair<double, double> p1, p2;
	cin >> p1.first >> p1.second >> p2.first >> p2.second;
　　　　　printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
}

Compiler output:
a.cc:9:1: error: extended character 　 is not valid in an identifier
    9 | 　　　　　printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
      | ^
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc:9:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000\U00003000\U00003000\U00003000\U00003000printf' was not declared in this scope
    9 | 　　　　　printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
      | ^~~~~~~~~~~~~~~~
Language: C++

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

int main() {
	pair<double, double> p1, p2;
	cin >> p1.first >> p1.second >> p2.first >> p2.second;
　　　　　printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
}

Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　　　　printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:1: error: '\U00003000\U00003000\U00003000\U00003000\U00003000printf' was not declared in this scope
   10 | 　　　　　printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
      | ^~~~~~~~~~~~~~~~
Language: C++

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

int main() {
	pair<double, double> p1, p2;
	cin >> p1.first >> p1.second >> p2.first >> p2.second;
　　　　  printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
}

Compiler output:
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　　　　  printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
      | ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc:10:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:10:1: error: '\U00003000\U00003000\U00003000\U00003000' was not declared in this scope
   10 | 　　　　  printf("%.8f\n", sqrt(pow(p2.first - p1.first, 2) + pow(p2.second - p1.second, 2)));
      | ^~~~~~~~
Language: C++

#include <iostream>

using namespace std;

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

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

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

	cout << fixed << v << endl;

	system("PAUSE");

	return 0;
}

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

#include <iostream>

using namespace std;

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

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

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

	cout << fixed << v << endl;

	return 0;
}

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

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

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

#include<iostream>
using namespace std;
int main(){
	float x1,y1,x2,y2,r,r2;
	cin >> x1 >>y1 >> x2 >> y2;
	r2 = (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
	r = sqrt(r2);
	cout << (double)r <<"\n";
	return 0;
}

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

#include<iostream>
using namespace std;
int main(){
	float x1,y1,x2,y2,r,r2;
	cin >> x1 >>y1 >> x2 >> y2;
	r2 = (x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
	r = sqrt(r2);
	cout << (double)r ;
        cout <<"\n";
	return 0;
}

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

#include <iostream>
using namespace std;
int main()
{
	double x, y, x1, x2, y1, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	x = x2 - x1;
	y = y2 - y1;
	cout << sqrt(x*x + y*y) << "\n";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: 'sqrt' was not declared in this scope
    9 |         cout << sqrt(x*x + y*y) << "\n";
      |                 ^~~~
Language: C++

#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
	double x, y, x1, x2, y1, y2;
	cin >> x1 >> y1 >> x2 >> y2;
	x = x2 - x1;
	y = y2 - y1;
	if( x == 0 ) {
		cout << fixed << setprecision(5) << fabs(y) << "\n";
		return 0;
	} else if( y == 0 ) {
		cout << fixed << setprecision(5) << fabs(x) << "\n";
		return 0;
	}

	double v = x*x + y*y,
	       d = 1,
		   eps = 0.00001;
	do
	{
		d = (d + v / d ) / 2.0L; 
	}
	while( fabs( v - d * d ) > eps );

	cout << fixed << setprecision(5) << d << "\n";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:53: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   11 |                 cout << fixed << setprecision(5) << fabs(y) << "\n";
      |                                                     ^~~~
      |                                                     labs
a.cc:14:53: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   14 |                 cout << fixed << setprecision(5) << fabs(x) << "\n";
      |                                                     ^~~~
      |                                                     labs
a.cc:25:16: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   25 |         while( fabs( v - d * d ) > eps );
      |                ^~~~
      |                labs
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<iomanip>
#include<vector>
using namespace std;
#define pi 3.141592653589793283462   
int main(){
    double x1,x2,y1,y2;
	cin>>x1>>y1>>x2>>y2;
	cout<<fixed<<setw(12)<<sqrt((x2-x1)+(y2-y1))<<endl;
  return 0;
}

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

#include<stdio,h>
#include<cmath>

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

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

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

int main(){
double a,b;
cin >> a >> b;
cout << sqrt(a*a+b*b) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> a >> b;
      | ^~~
      | 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:7:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 | cout << sqrt(a*a+b*b) << endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 | cout << sqrt(a*a+b*b) << endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 | cin >> x1 >> y1 >> x2 >> 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:11:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 | cout << sqrt(x1+y1) << endl;
      | ^~~~
      | std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 | cout << sqrt(x1+y1) << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
#include <cmath>

using namespace std;

int main(){
    double x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;
    cout << fixed << setprecision(5) << hypot(x2 - x1, y2 - y1) << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'setprecision' was not declared in this scope
    9 |     cout << fixed << setprecision(5) << hypot(x2 - x1, 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 <cmath>
  +++ |+#include <iomanip>
    3 |
Language: C++

#include <iostream>
//#include <string>
//#include <cctype>

using namespace std;

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

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

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

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

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

	cout << setprecision(10) << sqrt((x2-x1)*(x2-x1) + (y2-y1)*(y2-y1)) << "\n";

	return 0;
}

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

#include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
int main(){
   double x1,x2,y1,y2;
   double d;
   cin >> x1 >> y1 >> x2 >> y2;

   d = (double)sqrt(((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1)));
   printf("%.6lf",d)

   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected ';' before 'return'
   11 |    printf("%.6lf",d)
      |                     ^
      |                     ;
   12 | 
   13 |    return 0;
      |    ~~~~~~
Language: C++

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

	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:25: error: expected unqualified-id before ',' token
    5 |         double x,y,x1x2,,y1,y2,d,distance;
      |                         ^
a.cc:6:34: error: 'x1' was not declared in this scope; did you mean 'y1'?
    6 |         scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
      |                                  ^~
      |                                  y1
a.cc:6:42: error: 'x2' was not declared in this scope; did you mean 'y2'?
    6 |         scanf("%lf %lf %lf %lf",&x1,&y1,&x2,&y2);
      |                                          ^~
      |                                          y2
Language: C++

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

using namespace std;

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

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

    d = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2))

    cout << fixed << setprecision(15) << d << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:48: error: expected ';' before 'cout'
   13 |     d = sqrt(pow(x2 - x1, 2) + pow(y2 - y1, 2))
      |                                                ^
      |                                                ;
   14 | 
   15 |     cout << fixed << setprecision(15) << d << endl;
      |     ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> x1 >> y1 >> x2 >> y2;
      |     ^~~
a.cc:4:21: error: 'pow' was not declared in this scope
    4 |     double d = sqrt(pow(x2-x1,2)+pow(y2-y1,2));
      |                     ^~~
a.cc:4:16: error: 'sqrt' was not declared in this scope
    4 |     double d = sqrt(pow(x2-x1,2)+pow(y2-y1,2));
      |                ^~~~
a.cc:5:5: error: 'cout' was not declared in this scope
    5 |     cout << d << endl;
      |     ^~~~
a.cc:5:18: error: 'endl' was not declared in this scope
    5 |     cout << d << endl;
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){

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

    double ans;

    ans = pow( pow((x2-x1),2) + pow((y2-y1),2),(0.5));
    cout<<ans<<endl;

    return 0;
}

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

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

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

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

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

#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)

int main(){
	long double x1,x2,y1,y2,d;
	cin >> x1 >> y1 >> x2 >> y2;
	d = pow(pow(x1 - x2, 2.0) + pow(y1 - y2, 2.0), 0.5);
	printf("%.10lf", d);
	return 0;
}}

Compiler output:
a.cc:18:2: error: expected declaration before '}' token
   18 | }}
      |  ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'setprecision' was not declared in this scope
    8 | cout<<fixed<<setprecision(15)<<sqrt((x2-x1)^2+(y2-y1)^2)<<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;

double x0, y0, x1, y1;

int main() {
  cin>>x0>>y0>>x1>>y1;
  x1-=x0;
  y1-=y0;
  cout<<sqrt(x1*x1+y1*y1)<<endl;
  return 0;
}

Compiler output:
a.cc:5:12: warning: built-in function 'y0' declared as non-function [-Wbuiltin-declaration-mismatch]
    5 | double x0, y0, x1, y1;
      |            ^~
a.cc:5:20: warning: built-in function 'y1' declared as non-function [-Wbuiltin-declaration-mismatch]
    5 | double x0, y0, x1, y1;
      |                    ^~
a.cc: In function 'int main()':
a.cc:11:9: error: 'sqrt' was not declared in this scope
   11 |   cout<<sqrt(x1*x1+y1*y1)<<endl;
      |         ^~~~
Language: C++

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

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

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

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

 retrun 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:2: error: 'retrun' was not declared in this scope
   12 |  retrun 0;
      |  ^~~~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <algorithm>
#include <stdio.h>
#include <cstring>
#include <iomanip>
#define _USE_MATH_DEFINES
#include <math.h>
#include <numeric>
#include <regex>
#include <locale>
#include <fstream>
#include <stdlib.h>
#include <cctype>

//#include <map>

using namespace std;

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

	fin >> x1 >> y1 >> x2 >> y2;

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

	cout << d << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: 'fin' was not declared in this scope; did you mean 'sin'?
   29 |         fin >> x1 >> y1 >> x2 >> y2;
      |         ^~~
      |         sin
Language: C++

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

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

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

#include <cstdio>
#include <cstring>
#include <cctype>

using namespace std;

int main(void) {

    int x1, y1, x2, y2;
    cin >> x1 >> y1 >> x2 >> y2;

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

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin >> x1 >> y1 >> x2 >> y2;
      |     ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <cctype>
  +++ |+#include <iostream>
    4 | 
a.cc:12:27: error: 'pow' was not declared in this scope
   12 |     printf("%llf\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
      |                           ^~~
a.cc:12:22: error: 'sqrt' was not declared in this scope
   12 |     printf("%llf\n", sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2)));
      |                      ^~~~
Language: C++

import sys
import math

line = []
for l in sys.stdin:
    for i in l.split(' '):
    	line.append(float(i))
a = (line[0]-line[2])**2+(line[1]-line[3])**2
b = math.sqrt(a)
print ('%.12f' % b)

Compiler output:
a.cc:10:8: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
   10 | print ('%.12f' % b)
      |        ^~~~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

	return 0;
}

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

#include <iostream>
using namespace std;
#include <stdio.h>
int main()
{
	double x1, x2, y1, y2, ans;
	cin >> x1 >> y1 >> x2 >> y2;
	ans = sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));
	cout << ans << endl;
	printf("%f",ans);
	return 0;
}

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

#include <iostream>
using namespace std;
#include <stdio.h>
int main()
{
	double x1,x2,y1,y2,ans;
	cin >> x1 >> y1 >> x2 >> y2;
	ans=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
	cout << ans << endl;
	printf("%f",ans);
	return 0;
}

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

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

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

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

  cout << fixed
       << setprecision(5)
       << dist
       << endl;

  return(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:11: error: 'setprecision' was not declared in this scope
   16 |        << setprecision(5)
      |           ^~~~~~~~~~~~
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++

import math
x1,y1,x2,y2 = map(int,input().split(" "))
yoko = x2 - x1
tate = y2 - y1
print(math.sqrt(yoko**2+tate**2))

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'