0_0_21744073_19730.cpp: In function 'int main()':
0_0_21744073_19730.cpp:119:41: error: 'ans' was not declared in this scope
for (int i = 1; i <= cnt; i ++) ans = (ans + func(v[i])) % P;
^
0_0_21744073_19730.cpp:120:25: error: 'ans' was not declared in this scope
printf("%d\n", (ans - 1 + P) % P);
^
|