fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; }
  7. return 0;
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:6:46: error: stray ‘\342’ in program
  char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0’; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; }
                                              ^
prog.cpp:6:47: error: stray ‘\200’ in program
  char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0’; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; }
                                               ^
prog.cpp:6:48: error: stray ‘\230’ in program
  char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0’; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; }
                                                ^
prog.cpp:6:49: error: stray ‘\’ in program
  char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0’; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; }
                                                 ^
prog.cpp:6:51: error: stray ‘\342’ in program
  char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0’; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; }
                                                   ^
prog.cpp:6:52: error: stray ‘\200’ in program
  char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0’; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; }
                                                    ^
prog.cpp:6:53: error: stray ‘\231’ in program
  char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0’; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; }
                                                     ^
stdout
Standard output is empty