0_0_33748687_9857.cpp: In function 'int main()': 0_0_33748687_9857.cpp:13:9: error: 'ans' was not declared in this scope cout << ans % 1000; ^