0_0_21458958_3095.cpp: In function 'int main()': 0_0_21458958_3095.cpp:30:26: error: 'i' was not declared in this scope if(qus%sum==0&&s[i]!=0){ans=ans+qus/sum-1;qus=0;} ^