int main() { // 1 int& x1[5]; // 2 int * x2; // 3 int *x3, *x4; auto dx = x3 - x4; // 4 int *x5 = x3*5; // 5 auto x6 = x3 + x4; // 6 int& z; // 7 auto y = &z; }
Standard input is empty
prog.cpp: In function 'int main()':
prog.cpp:4:14: error: declaration of 'x1' as array of references
int& x1[5];
^
prog.cpp:14:18: error: invalid operands of types 'int*' and 'int' to binary 'operator*'
int *x5 = x3*5;
^
prog.cpp:17:20: error: invalid operands of types 'int*' and 'int*' to binary 'operator+'
auto x6 = x3 + x4;
^
prog.cpp:20:10: error: 'z' declared as reference but not initialized
int& z;
^
Standard output is empty