0_0_37783595_5494.cpp: In function 'int main()': 0_0_37783595_5494.cpp:99:9: error: 'ans' was not declared in this scope ans=(z-z2+N)%N; ^