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