0_0_39451138_5075.cpp:13:8: error: 'N' was not declared in this scope
13 | int p1[N], p2[N];
| ^
0_0_39451138_5075.cpp:13:15: error: 'N' was not declared in this scope
13 | int p1[N], p2[N];
| ^
0_0_39451138_5075.cpp: In function 'void hash_init(int)':
0_0_39451138_5075.cpp:15:11: error: 'time' was not declared in this scope
15 | srand(time(nullptr));
| ^~~~
0_0_39451138_5075.cpp:1:1: note: 'time' is defined in header '<ctime>'; did you forget to '#include <ctime>'?
+++ |+#include <ctime>
1 |
0_0_39451138_5075.cpp:15:5: error: 'srand' was not declared in this scope
15 | srand(time(nullptr));
| ^~~~~
0_0_39451138_5075.cpp:16:25: error: 'rand' was not declared in this scope
16 | Base1 = BASE_SET[0][rand() % 3];
| ^~~~
0_0_39451138_5075.cpp:19:5: error: 'p1' was not declared in this scope
19 | p1[0] = 1; p2[0] = 1;
| ^~
0_0_39451138_5075.cpp:19:16: error: 'p2' was not declared in this scope
19 | p1[0] = 1; p2[0] = 1;
| ^~
0_0_39451138_5075.cpp: At global scope:
0_0_39451138_5075.cpp:53:16: error: expected ')' before '&' token
53 | Hash(string &s) {
| ~ ^~
| )
0_0_39451138_5075.cpp: In function 'Hash::HashCode operator+(const Hash::HashCode&, const Hash::HashCode&)':
0_0_39451138_5075.cpp:47:31: error: 'p1' was not declared in this scope; did you mean 'h1'?
47 | int s1 = (x.hc1 * p1[y.len] + y.hc1) % HM;
| ^~
| h1
0_0_39451138_5075.cpp:48:31: error: 'p2' was not declared in this scope; did you mean 'h2'?
48 | int s2 = (x.hc2 * p2[y.len] + y.hc2) % HM;
| ^~
| h2
0_0_39451138_5075.cpp: In member function 'Hash::HashCode Hash::sub(int, int)':
0_0_39451138_5075.cpp:106:40: error: 'p1' was not declared in this scope; did you mean 'h1'?
106 | int s1 = ((h1[r] - h1[l - 1] * p1[r - l + 1]) % HM + HM) % HM;
| ^~
| h1
0_0_39451138_5075.cpp:107:40: error: 'p2' was not declared in this scope; did you mean 'h2'?
107 | int s2 = ((h2[r] - h2[l - 1] * p2[r - l + 1]) % HM + HM) % HM;
| ^~
| h2
0_0_39451138_5075.cpp: At global scope:
0_0_39451138_5075.cpp:120:5: error: 'size_t' does not name a type
120 | size_t operator()(const HashCode& hc) const {
| ^~~~~~
0_0_39451138_5075.cpp:1:1: note: 'size_t' is defined in header '<cstddef>'; did you forget to '#include <cstddef>'?
+++ |+#include <cstddef>
1 |
0_0_39451138_5075.cpp: In function 'void solve()':
0_0_39451138_5075.cpp:126:5: error: 'string' was not declared in this scope
126 | string s, t; cin >> s >> t;
| ^~~~~~
0_0_39451138_5075.cpp:126:18: error: 'cin' was not declared in this scope
126 | string s, t; cin >> s >> t;
| ^~~
0_0_39451138_5075.cpp:126:25: error: 's' was not declared in this scope
126 | string s, t; cin >> s >> t;
| ^
0_0_39451138_5075.cpp:126:30: error: 't' was not declared in this scope
126 | string s, t; cin >> s >> t;
| ^
0_0_39451138_5075.cpp:130:5: error: 'set' was not declared in this scope
130 | set<HashCode> st;
| ^~~
0_0_39451138_5075.cpp:130:17: error: expected primary-expression before '>' token
130 | set<HashCode> st;
| ^
0_0_39451138_5075.cpp:130:19: error: 'st' was not declared in this scope; did you mean 'std'?
130 | set<HashCode> st;
| ^~
| std
0_0_39451138_5075.cpp:141:5: error: 'cout' was not declared in this scope
141 | cout << res << "\n";
| ^~~~
0_0_39451138_5075.cpp: In function 'int main()':
0_0_39451138_5075.cpp:150:5: error: 'ios' has not been declared
150 | ios::sync_with_stdio(false);
| ^~~
0_0_39451138_5075.cpp:151:5: error: 'cin' was not declared in this scope
151 | cin.tie(nullptr); cout.tie(nullptr);
| ^~~
0_0_39451138_5075.cpp:151:23: error: 'cout' was not declared in this scope
151 | cin.tie(nullptr); cout.tie(nullptr);
| ^~~~
0_0_39451138_5075.cpp:153:19: error: 'multiple_test' was not declared in this scope
153 | int t = 1; if(multiple_test) cin >> t;
| ^~~~~~~~~~~~~
0_0_39451138_5075.cpp:155:19: error: 'MAXN' was not declared in this scope
155 | hash_init(MAXN);
| ^~~~
|