#include <iostream> using namespace std; int main() { // your code goes here char st[] = "ABCD"; for(int i = 0; st[i] != ‘\0’; i++) { cout << st[i] << *(st)+i << *(i+st) << i[st]; } return 0; }
Standard input is empty
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]; } ^
Standard output is empty