/in/foo.cc:4:29: error: 'M' was not declared in this scope
4 | const int N = 1105, V = N * M, MOD = 1e9 + 7;
| ^
/in/foo.cc:6:15: error: size of array 'mns' is not an integral constant-expression
6 | int a[N], mns[V], secs[V];
| ^
/in/foo.cc:6:24: error: size of array 'secs' is not an integral constant-expression
6 | int a[N], mns[V], secs[V];
| ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:33:31: error: 'MOD' was not declared in this scope
33 | ans += sum %= MOD;
| ^~~
/in/foo.cc:35:24: error: 'MOD' was not declared in this scope
35 | cout << (ans % MOD + MOD) % MOD;
| ^~~