#include <iostream> using namespace std; int main() { сhar buf[]="Hello world"; сhar puf[256]; for(int i=0;buf[i]!=0;i++) if(buf[i]!=' '){ puf= puf+int (buf[i]); } else } puf= puf+buf[i]); } } cout<<puf<endl; return 0; }
Standard input is empty
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 } ^
Standard output is empty