fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a[]={5,7,9,11,13};
  6. int*p;
  7. int i=2;
  8. p=a;
  9. *(p++)=++i;
  10. printf("%d%d%d%d%d",a[0],a[1],a[i++],*p,*(p+1));
  11. return 0;
  12. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:10:48: error: 'printf' was not declared in this scope
  printf("%d%d%d%d%d",a[0],a[1],a[i++],*p,*(p+1));
                                                ^
stdout
Standard output is empty