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_39456077_11333.cpp: In function 'void solve()':
0_0_39456077_11333.cpp:21:9: error: 'vector' was not declared in this scope
   21 |         vector<ull> P(len+1);
      |         ^~~~~~
0_0_39456077_11333.cpp:7:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    6 | #include<cstring>
  +++ |+#include <vector>
    7 | using namespace std;
0_0_39456077_11333.cpp:9:13: error: expected primary-expression before 'unsigned'
    9 | #define ull unsigned long long
      |             ^~~~~~~~
0_0_39456077_11333.cpp:21:16: note: in expansion of macro 'ull'
   21 |         vector<ull> P(len+1);
      |                ^~~
0_0_39456077_11333.cpp:22:9: error: 'P' was not declared in this scope
   22 |         P[0]=A[0]-'A';
      |         ^
0_0_39456077_11333.cpp:31:20: error: expected primary-expression before ')' token
   31 |                 if()
      |                    ^
0_0_39456077_11333.cpp:33:9: error: expected primary-expression before '}' token
   33 |         }
      |         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-23 02:22:36, Gzip enabled