0_0_39458518_17451.cpp: In function 'void solve()':
0_0_39458518_17451.cpp:14:92: error: 'mod' was not declared in this scope; did you mean 'modf'?
14 | if(a[i]==a[j]&&a[j]==a[k]) f[i][j][k]=(w[i-1][j-1][k-1]+1)%mod;
| ^~~
| modf
0_0_39458518_17451.cpp:15:70: error: 'mod' was not declared in this scope; did you mean 'modf'?
15 | g[i][j][k]=(g[i-1][j][k]+f[i][j][k])%mod;
| ^~~
| modf
|