0_0_18979395_23693.cpp: In function 'int main()': 0_0_18979395_23693.cpp:7:24: error: 'i' was not declared in this scope while(~scanf("%d",&i)&&i!=0) ^