#include <iostream>
using namespace std;
int main(){
int n,i,V[101],B[101],b=0,aux,nr;
cin>>n;
for(i=1; i<=n; i++)
cin>>V[i];
for(i=1; i<=n; i++)
{ nr=0;
aux=V[i];
while(aux){
nr++;
aux/=10;
}
b++;
B[b]=nr;
}
for(b=1; b<=n; b++)
cout<<B[b]<<" ";
return 0; }
Eu n-am mai stricat vectorul a. Am luat aux si am salvat V[i] in aux. E corect si daca strici primul vector dar e bine si asa :)