TOPIC
Erro de compilação, alguem pode ajudar
amourao1 asked 5 years ago
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(){
int M=1,N=1,soma;
char ta[1000];
while(true){
scanf("%i %i",&M,&N);
if(1<=M<=N<=999999999){
if(M!=0 && N!=0){
soma = M+N;
sprintf(ta, "%i", soma);
for(int x=0;x<strlen(ta);x++){
if(ta[x]=='0'){
for(int x2=x;x2<strlen(ta);x2++){
ta[x2] = ta[x2+1];
}
x--;
}
}
printf("%s\n",ta);
}
else{
break;
}
}
}
return 0;
}