fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. int a, b, c;
  7. cin >> a;
  8. cin>> b;
  9. c= sqrt(pow(a,2)+pow(b,2))
  10. cout<< "hypotenusa ="<< c ;
  11.  
  12. return 0;
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
2
3
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:10:2: error: expected ‘;’ before ‘cout’
  cout<< "hypotenusa ="<< c ;
  ^~~~
stdout
Standard output is empty