运行时unresolved external symbol _r错误 不懂 求解
#include <stdio.h>int r[];
convert(int m)
{
int i=0,j,s;
j=m%10;
s=j/10;
r[i]=j;
i++;
convert(s);
}
int main()
{
int n,l,i;
scanf("%d",&l);
printf("\n");
scanf("%d",&n);
convert(n);
for(i=0;i<=l+1;i++)
printf("%d",r[i]);
return 0;
}