fork download
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5.  
  6. int myFunc(int * ar) {
  7. printf("%d", ar[4]);
  8. return 1;
  9. }
  10.  
  11. int main() {
  12. int a =1;
  13. a = ++(a++) + a++ +1;
  14. printf("%d", a);
  15.  
  16. // int ar[] = { 1, 2, 3, 4, 5 };
  17.  
  18. // int *ar2 = new int[5];
  19. // memcpy(ar2, ar, 5 * sizeof(int));
  20. // myFunc(ar2);
  21. return 0;
  22. }
Compilation error #stdin compilation error #stdout 0s 3096KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:13:12: error: lvalue required as increment operand
  a = ++(a++) + a++ +1;
            ^
stdout
Standard output is empty