F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
                      ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-01-11 04:16:34, Gzip enabled