fork download
  1. double x = 5.000;
  2. int y = 5;
  3.  
  4. if (y == x)
  5. {
  6. cout << "Same";
  7. }
  8. else
  9. {
  10. cout << "Different";
  11. }#include <iostream>
  12. using namespace std;
  13.  
  14. int main() {
  15. // your code goes here
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:11:2: error: stray ‘#’ in program
 }#include <iostream>
  ^
prog.cpp:4:1: error: expected unqualified-id before ‘if’
 if (y == x)
 ^~
prog.cpp:8:1: error: expected unqualified-id before ‘else’
 else
 ^~~~
prog.cpp:11:3: error: ‘include’ does not name a type
 }#include <iostream>
   ^~~~~~~
stdout
Standard output is empty