0_0_37694005_8004.cpp: In function 'int main()': 0_0_37694005_8004.cpp:9:26: error: 'd' was not declared in this scope ans=(ans*10+s[i]-'0')%d; ^