fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x1,x2,y1,y2;
  6. float distanza;
  7. char *;
  8. cout<<"inserire x1,x2,y1,y2"<<endl;
  9. cin>>x1>>x2>>y1>>y2;
  10. cout<<"Inserire * se si vuole stoppare il calcolo della distanza"<<endl;
  11. while(x1!=0){
  12. distanza=sqrt((x2-12)^2+(y2-y1)^2))
  13. cout<<"las distanza é"<<distanza<<endl;
  14. }
  15.  
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:8: error: expected unqualified-id before ‘;’ token
  char *;
        ^
prog.cpp:12:36: error: ‘sqrt’ was not declared in this scope
   distanza=sqrt((x2-12)^2+(y2-y1)^2))
                                    ^
stdout
Standard output is empty