#include<stdio.h>
#define MAXSIZE 10
#define ERROR 0
typrdef struct{
int *elem;
int length;
}Sqlist;
viod insert(Sqlist &l;int i;int e){
if(length==MAXSIZE)
return OVERFLOW;
if(i<1||i>length+1)
return Insert position error!;
for(int j=length-1;j>=i-1;j--){
elem[j]=elem[j+1];
}
elem[i-1]=e;
l.length++;
}
int main(){
Sqlist l;
int n;
scanf("%d",&n);
for(int j=0;j<n;j++){
scanf("%d ",&l.elem[j]);
}
print("Before:(")
for(int j=0;j<n-1;j++){
printf("%d,",l.elem[j]);
}
printf("%d)\n",l.elem[n-1]);
int i,e
scanf("%d %d",&i,&e);
void insert(l,i,e);
printf("After:(");
for(int j=0;j<n;j++){
printf("%d,"l.elem[j]);
}
printf("%d)",l.elem[n]);
return 0;
}
为什么e和ⅰ不能输入,求解