fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. cout << "input integer\ n";
  7. cin >> x;
  8. if (0 < x < 1){
  9. cout << "true \n";
  10. }
  11. Else{
  12. Cout<<"false \n";
  13. }
  14. return 0;
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
0.5
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:6:11: warning: unknown escape sequence: '\040'
   cout << "input integer\ n";
           ^~~~~~~~~~~~~~~~~~
prog.cpp:11:2: error: ‘Else’ was not declared in this scope
  Else{
  ^~~~
prog.cpp:11:2: note: suggested alternative: ‘pclose’
  Else{
  ^~~~
  pclose
stdout
Standard output is empty