0_0_36303499_14767.cpp: In function 'int main()':
0_0_36303499_14767.cpp:34:9: error: 'vector' was not declared in this scope
vector<ll> ans(n + 1);
^
0_0_36303499_14767.cpp:2:12: error: expected primary-expression before 'long'
#define ll long long
^
0_0_36303499_14767.cpp:34:16: note: in expansion of macro 'll'
vector<ll> ans(n + 1);
^
0_0_36303499_14767.cpp:35:37: error: 'ans' was not declared in this scope
for (int i = 0; i < n; i++) ans[Next[i]]++;
^
0_0_36303499_14767.cpp:36:41: error: 'ans' was not declared in this scope
for (int i = n - 1; i > 0; i--) ans[Next[i - 1]] = (ans[Next[i - 1]] +ans[i])%mod;
^
0_0_36303499_14767.cpp:37:38: error: 'ans' was not declared in this scope
for (int i = 0; i <= n; i++) ans[i]++;
^
0_0_36303499_14767.cpp:41:22: error: 'ans' was not declared in this scope
num=(num+ans[i])%mod;
^
|