fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. сhar buf[]="Hello world";
  6. сhar puf[256];
  7. for(int i=0;buf[i]!=0;i++)
  8. if(buf[i]!=' '){
  9. puf= puf+int (buf[i]);
  10. }
  11. else }
  12. puf= puf+buf[i]);
  13. }
  14. }
  15. cout<<puf<endl;
  16. return 0;
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:5:2: error: stray '\321' in program
  сhar buf[]="Hello world";
  ^
prog.cpp:5:2: error: stray '\201' in program
prog.cpp:6:1: error: stray '\321' in program
 сhar puf[256];
 ^
prog.cpp:6:1: error: stray '\201' in program
prog.cpp: In function 'int main()':
prog.cpp:5:4: error: 'har' was not declared in this scope
  сhar buf[]="Hello world";
    ^
prog.cpp:6:7: error: expected ';' before 'puf'
 сhar puf[256];
       ^
prog.cpp:7:13: error: 'buf' was not declared in this scope
 for(int i=0;buf[i]!=0;i++)
             ^
prog.cpp:9:12: error: 'puf' was not declared in this scope
            puf= puf+int (buf[i]);
            ^
prog.cpp:11:8: error: expected primary-expression before '}' token
 else   }
        ^
prog.cpp: At global scope:
prog.cpp:12:1: error: 'puf' does not name a type
 puf= puf+buf[i]);
 ^
prog.cpp:13:1: error: expected declaration before '}' token
 }
 ^
stdout
Standard output is empty