fork download
  1. /*
  2.  * File: main.cpp
  3.  * Author: mg909
  4.  *
  5.  * Created on July 30, 2015, 10:59 AM
  6.  */
  7.  
  8. #include <cstdlib>
  9. #include <iostream>
  10.  
  11.  
  12. int main()
  13. {
  14. int a,b,c;
  15.  
  16. std::cout<<"Enter the number in increasing order/n";
  17. std::cin>>a;
  18. std::cin>>b;
  19. std::cin>>c;
  20. int PYthagorean(a,b,c)
  21. { if(c*c= a*a + b*b)
  22. { std::cout<<"Your numbers are pythagorean triplets" ;
  23. }
  24. else
  25. { std::cout<<"Your Numbers are not pythagorean triplets";
  26.  
  27.  
  28. return 0;
  29.  
  30.  
  31. }
  32.  
  33.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:20:30: error: expression list treated as compound expression in initializer [-fpermissive]
         int PYthagorean(a,b,c)
                              ^
prog.cpp:21:17: error: expected ',' or ';' before '{' token
                 {       if(c*c= a*a + b*b)
                 ^
prog.cpp:31:1: error: expected '}' at end of input
 }
 ^
stdout
Standard output is empty