fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float masa;
  6. float wzrost;
  7. float bmi;
  8. cin>>masa;
  9. cin>>wzrost;
  10. bmi=masa/(wzrost*wzrost);
  11. if(bmi>25&&bmi>16)
  12. {cout<<"ważysz dobrze";}
  13. else
  14. if(bmi>=25)
  15. {cout<<"niedowaga";}
  16. else
  17. {cout<<"nadwaga";}
  18. )
  19. // your code goes here
  20. return 0;
  21. }
  22.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:18:2: error: expected primary-expression before ‘)’ token
  )
  ^
stdout
Standard output is empty