error: invalid conversion from 'const int*' to 'int*' [-fpermissive code example
Example: error: invalid conversion from ‘int*’ to ‘int’ [-fpermissive]
#include<iostream>
using namespace std;
int main()
{
int a[]={5,6,7,8,10};
int *p,*q;
*p=&a[0];
*q=&a[4];
}