This commit is contained in:
Andrii Hermaniuk 2022-03-18 14:58:45 +01:00
parent 43c77c16c8
commit 1cb2cefad6

View File

@ -13,7 +13,7 @@ int main(){
if(ch==EOF||ch==' ')break;
pol[idx]=ch;
}
for(int i=0, p=1;i<strlen(pol);i++){
for(int i=0, p=0;i<strlen(pol);i++){
if(pol[i]=='\n')p++;
else if((pol[i]<='9'&&pol[i]>='0')||(pol[i]=='.')||(pol[i]==EOF)||(pol[i]==' '));
else {