Each of the following definitions and program segments has errors.
Locate the error(s) and state whether it is a compiler error or runtime error.
(1) int *ip, x;
*ip = &x;
(2) int *ip;
int arr[100]={0};
for (int i=0; i<100; i++)
ip[i]=arr[i];
(3) int arr1[100], arr2[100];
for (int i=0; i<100; i++)
cin >> arr1[i];
arr2=arr1;
(4) int numbers[] = {1, 2, 3, 4, 5, 6};
cout << "The third element in the array numbers is: ";
cout << *numbers + 3 << endl;
(5) int values[20];
int *iptr;
iptr=values;
iptr *=2;
(6) char *p, str[10];
cin >> str;
p = str;
return p;
(7) int *ip;
ip=new int[100];
// process
delete ip;
(8) struct Player {
int cards[52];
int numcards;
};
Player p1;
// fill up the p1 structure
cout<< "Player 1's cards are " << p1; << endl;
(9) Player *p2;
cout << "Player 2 has " << *p2.numcards << " cards left. " << endl;
(10) const int arr[] = {20, 40, 60};
int *ip;
ip = arr;
(11) int *numbers[SIZE];
for (int i=0; i <= SIZE-1; i++)
numbers[i]=i;
(what if I would replace this with: numbers[i]=&i; )