0_0_38996519_24084.cpp:5:13: error: 'int64_t' does not name a type
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:9:7: note: in expansion of macro 'int'
9 | const int kMaxN = 1e6 + 5;
| ^~~
0_0_38996519_24084.cpp:4:1: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
3 | #include <vector>
+++ |+#include <cstdint>
4 |
0_0_38996519_24084.cpp:5:13: error: 'int64_t' does not name a type
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:11:1: note: in expansion of macro 'int'
11 | int pw[20], L;
| ^~~
0_0_38996519_24084.cpp:5:13: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:11:1: note: in expansion of macro 'int'
11 | int pw[20], L;
| ^~~
0_0_38996519_24084.cpp:5:13: error: 'int64_t' was not declared in this scope
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:13:13: note: in expansion of macro 'int'
13 | std::vector<int> primes;
| ^~~
0_0_38996519_24084.cpp:5:13: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:13:13: note: in expansion of macro 'int'
13 | std::vector<int> primes;
| ^~~
0_0_38996519_24084.cpp:13:16: error: template argument 1 is invalid
13 | std::vector<int> primes;
| ^
0_0_38996519_24084.cpp:13:16: error: template argument 2 is invalid
0_0_38996519_24084.cpp:15:6: error: variable or field 'prework' declared void
15 | void prework(int n = 1e6) {
| ^~~~~~~
0_0_38996519_24084.cpp:5:13: error: 'int64_t' was not declared in this scope
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:15:14: note: in expansion of macro 'int'
15 | void prework(int n = 1e6) {
| ^~~
0_0_38996519_24084.cpp:5:13: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:15:14: note: in expansion of macro 'int'
15 | void prework(int n = 1e6) {
| ^~~
0_0_38996519_24084.cpp: In function 'void dickdreamer()':
0_0_38996519_24084.cpp:5:13: error: 'int64_t' was not declared in this scope
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:31:25: note: in expansion of macro 'int'
31 | std::vector<std::pair<int, int>> vec;
| ^~~
0_0_38996519_24084.cpp:5:13: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:31:25: note: in expansion of macro 'int'
31 | std::vector<std::pair<int, int>> vec;
| ^~~
0_0_38996519_24084.cpp:5:13: error: template argument 1 is invalid
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:31:30: note: in expansion of macro 'int'
31 | std::vector<std::pair<int, int>> vec;
| ^~~
0_0_38996519_24084.cpp:31:33: error: template argument 1 is invalid
31 | std::vector<std::pair<int, int>> vec;
| ^~
0_0_38996519_24084.cpp:31:33: error: template argument 2 is invalid
0_0_38996519_24084.cpp:33:7: error: expected ';' before 'lst'
33 | int lst = -1;
| ^~~
0_0_38996519_24084.cpp:34:12: error: expected ';' before 'i'
34 | for (int i = 0; i < s.size(); ++i) {
| ^
0_0_38996519_24084.cpp:34:19: error: 'i' was not declared in this scope
34 | for (int i = 0; i < s.size(); ++i) {
| ^
0_0_38996519_24084.cpp:37:11: error: request for member 'push_back' in 'vec', which is of non-class type 'int'
37 | vec.push_back({now, i - lst}), lst = i;
| ^~~~~~~~~
0_0_38996519_24084.cpp:37:31: error: 'lst' was not declared in this scope
37 | vec.push_back({now, i - lst}), lst = i;
| ^~~
0_0_38996519_24084.cpp:39:12: error: expected ';' before 'i'
39 | for (int i = 0; i < primes.size(); ++i) {
| ^
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
39 | for (int i = 0; i < primes.size(); ++i) {
| ^~~~
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
0_0_38996519_24084.cpp:39:19: error: 'i' was not declared in this scope
39 | for (int i = 0; i < primes.size(); ++i) {
| ^
0_0_38996519_24084.cpp:39:30: error: request for member 'size' in 'primes', which is of non-class type 'int'
39 | for (int i = 0; i < primes.size(); ++i) {
| ^~~~
0_0_38996519_24084.cpp:40:9: error: expected ';' before 'p'
40 | int p = primes[i];
| ^
0_0_38996519_24084.cpp:41:9: error: 'p' was not declared in this scope
41 | if (p > L) break;
| ^
0_0_38996519_24084.cpp:41:13: error: 'L' was not declared in this scope
41 | if (p > L) break;
| ^
0_0_38996519_24084.cpp:42:9: error: expected ';' before 'now'
42 | int now = 0;
| ^~~
0_0_38996519_24084.cpp:43:14: error: expected ';' before 'j'
43 | for (int j = 0; j < vec.size(); ++j) {
| ^
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
43 | for (int j = 0; j < vec.size(); ++j) {
| ^~~~
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
0_0_38996519_24084.cpp:43:21: error: 'j' was not declared in this scope
43 | for (int j = 0; j < vec.size(); ++j) {
| ^
0_0_38996519_24084.cpp:43:29: error: request for member 'size' in 'vec', which is of non-class type 'int'
43 | for (int j = 0; j < vec.size(); ++j) {
| ^~~~
0_0_38996519_24084.cpp:45:20: error: 'pw' was not declared in this scope; did you mean 'pp'?
45 | now = (now * pw[pp.second] + pp.first) % p;
| ^~
| pp
0_0_38996519_24084.cpp:45:26: error: request for member 'second' in 'pp', which is of non-class type 'int'
45 | now = (now * pw[pp.second] + pp.first) % p;
| ^~~~~~
0_0_38996519_24084.cpp:45:39: error: request for member 'first' in 'pp', which is of non-class type 'int'
45 | now = (now * pw[pp.second] + pp.first) % p;
| ^~~~~
0_0_38996519_24084.cpp:45:48: error: 'p' was not declared in this scope; did you mean 'pp'?
45 | now = (now * pw[pp.second] + pp.first) % p;
| ^
| pp
0_0_38996519_24084.cpp:48:30: error: 'p' was not declared in this scope
48 | std::cout << "BAD " << p << '\n';
| ^
0_0_38996519_24084.cpp: In function 'int main()':
0_0_38996519_24084.cpp:5:13: error: 'int64_t' was not declared in this scope
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:61:3: note: in expansion of macro 'int'
61 | int T = 1;
| ^~~
0_0_38996519_24084.cpp:5:13: note: 'int64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
5 | #define int int64_t
| ^~~~~~~
0_0_38996519_24084.cpp:61:3: note: in expansion of macro 'int'
61 | int T = 1;
| ^~~
0_0_38996519_24084.cpp:62:3: error: 'prework' was not declared in this scope
62 | prework();
| ^~~~~~~
0_0_38996519_24084.cpp:64:27: error: 'L' was not declared in this scope
64 | while (std::cin >> s >> L && (s[0] != '0' ||
|