0_0_37723281_28888.cpp: In function 'int main()': 0_0_37723281_28888.cpp:29:13: error: 'ans' was not declared in this scope ans=k*f[t]+f[x%t]; ^