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_38782733_28667.cpp:9:1: error: 'vector' does not name a type
    9 | vector<int> getnxt(string c) {
      | ^~~~~~
0_0_38782733_28667.cpp:32:1: error: 'vector' does not name a type
   32 | vector<int> exkmp(string test, string pattern, vector<int>nxt) {
      | ^~~~~~
0_0_38782733_28667.cpp: In function 'void solve()':
0_0_38782733_28667.cpp:62:5: error: 'vector' was not declared in this scope
   62 |     vector nxt = getnxt(t1);
      |     ^~~~~~
0_0_38782733_28667.cpp:6:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
    5 | #include <algorithm>
  +++ |+#include <vector>
    6 | #define int long long
0_0_38782733_28667.cpp:63:11: error: expected ';' before 'ext'
   63 |     vector ext = exkmp(s, t1, nxt);
      |           ^~~~
      |           ;
0_0_38782733_28667.cpp:65:11: error: expected ';' before 'nxt1'
   65 |     vector nxt1 = getnxt(invt1);
      |           ^~~~~
      |           ;
0_0_38782733_28667.cpp:66:11: error: expected ';' before 'ext1'
   66 |     vector ext1 = exkmp(invs, invt1, nxt1);
      |           ^~~~~
      |           ;
0_0_38782733_28667.cpp:68:13: error: 'ext1' was not declared in this scope; did you mean 't1'?
   68 |     reverse(ext1.begin(), ext1.end());
      |             ^~~~
      |             t1
0_0_38782733_28667.cpp:6:13: error: expected primary-expression before 'long'
    6 | #define int long long
      |             ^~~~
0_0_38782733_28667.cpp:69:12: note: in expansion of macro 'int'
   69 |     vector<int> sum(s.size() + 1);
      |            ^~~
0_0_38782733_28667.cpp:74:26: error: 'ext' was not declared in this scope; did you mean 'exp'?
   74 |         int R = r - n1 + ext[l];
      |                          ^~~
      |                          exp
0_0_38782733_28667.cpp:80:9: error: 'sum' was not declared in this scope
   80 |         sum[L] ++;
      |         ^~~
0_0_38782733_28667.cpp:85:9: error: 'sum' was not declared in this scope
   85 |         sum[i] = sum[i - 1] + sum[i];
      |         ^~~
0_0_38782733_28667.cpp:6:13: error: expected primary-expression before 'long'
    6 | #define int long long
      |             ^~~~
0_0_38782733_28667.cpp:87:12: note: in expansion of macro 'int'
   87 |     vector<int> f(t2.size() + 1);
      |            ^~~
0_0_38782733_28667.cpp:90:17: error: 'f' was not declared in this scope
   90 |             j = f[j];
      |                 ^
0_0_38782733_28667.cpp:93:9: error: 'f' was not declared in this scope
   93 |         f[i + 1] = j;
      |         ^
0_0_38782733_28667.cpp:98:17: error: 'f' was not declared in this scope
   98 |             j = f[j];
      |                 ^
0_0_38782733_28667.cpp:103:17: error: 'f' was not declared in this scope
  103 |             j = f[j];ans += sum[i - n2 + 1];
      |                 ^
0_0_38782733_28667.cpp:103:29: error: 'sum' was not declared in this scope
  103 |             j = f[j];ans += sum[i - n2 + 1];
      |                             ^~~


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-10-02 01:59:36, Gzip enabled