fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. float a,b;
  6. cin >> a;
  7. b = 3.0/2
  8. if (b>=1)
  9. a+=b;
  10. if (a>b)
  11. b+=a;
  12. cout<<a+b>>// your code goes here
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:1: error: expected ‘;’ before ‘if’
 if (b>=1)
 ^~
prog.cpp:13:2: error: expected primary-expression before ‘return’
  return 0;
  ^~~~~~
stdout
Standard output is empty