0_0_38901817_3202.cpp:7:1: error: 'll' does not name a type
7 | ll pows(ll x, ll y) {
| ^~
0_0_38901817_3202.cpp:23:1: error: 'll' does not name a type
23 | ll a[Max], num[Max];
| ^~
0_0_38901817_3202.cpp: In function 'void solve()':
0_0_38901817_3202.cpp:26:9: error: 'memset' was not declared in this scope
26 | memset(ok, 0, sizeof ok);
| ^~~~~~
0_0_38901817_3202.cpp:6:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
5 | #include<algorithm>
+++ |+#include <cstring>
6 | using namespace std;
0_0_38901817_3202.cpp:27:16: error: 'num' was not declared in this scope; did you mean 'enum'?
27 | memset(num, 0, sizeof num);
| ^~~
| enum
0_0_38901817_3202.cpp:28:9: error: 'll' was not declared in this scope
28 | ll n, result = 1;
| ^~
0_0_38901817_3202.cpp:29:16: error: 'n' was not declared in this scope
29 | cin >> n;
| ^
0_0_38901817_3202.cpp:31:31: error: 'a' was not declared in this scope
31 | scanf("%lld", a + i);
| ^
0_0_38901817_3202.cpp:36:27: error: expected ';' before 'times'
36 | ll times = 0, j = i;
| ^~~~~~
| ;
0_0_38901817_3202.cpp:37:35: error: 'j' was not declared in this scope
37 | while (ok[j] == 0) {
| ^
0_0_38901817_3202.cpp:39:37: error: 'a' was not declared in this scope
39 | j = a[j];
| ^
0_0_38901817_3202.cpp:40:33: error: 'times' was not declared in this scope; did you mean 'timeb'?
40 | times++;
| ^~~~~
| timeb
0_0_38901817_3202.cpp:42:46: error: 'times' was not declared in this scope; did you mean 'timeb'?
42 | for (int i = 2; i <= times; i++) {
| ^~~~~
| timeb
0_0_38901817_3202.cpp:43:35: error: expected ';' before 'number'
43 | ll number = 0;
| ^~~~~~~
| ;
0_0_38901817_3202.cpp:45:41: error: 'number' was not declared in this scope
45 | number++;
| ^~~~~~
0_0_38901817_3202.cpp:48:54: error: 'number' was not declared in this scope
48 | num[i] = max(num[i], number);
| ^~~~~~
0_0_38901817_3202.cpp:52:16: error: expected ';' before 'i'
52 | for (ll i = 2; i <= n; i++) {
| ^~
| ;
0_0_38901817_3202.cpp:52:24: error: 'i' was not declared in this scope
52 | for (ll i = 2; i <= n; i++) {
| ^
0_0_38901817_3202.cpp:54:25: error: 'result' was not declared in this scope
54 | result = result * pows(i, num[i]) % 3221225473;
| ^~~~~~
0_0_38901817_3202.cpp:54:43: error: 'pows' was not declared in this scope; did you mean 'powl'?
54 | result = result * pows(i, num[i]) % 3221225473;
| ^~~~
| powl
0_0_38901817_3202.cpp:58:17: error: 'result' was not declared in this scope
58 | cout << result % 3221225473 << endl;
| ^~~~~~
|