Main.cc:4:1: error: 'll' does not name a type
4 | ll fa[n + 2], num[n + 2], sum[n + 2], ansi;
| ^~
Main.cc:5:1: error: 'll' does not name a type
5 | ll finds(ll k)
| ^~
Main.cc: In function 'int main()':
Main.cc:16:10: error: 'll' was not declared in this scope
16 | for (ll i = 1; i <= n; ++i)
| ^~
Main.cc:16:20: error: 'i' was not declared in this scope
16 | for (ll i = 1; i <= n; ++i)
| ^
Main.cc:18:9: error: 'fa' was not declared in this scope
18 | fa[i] = i;
| ^~
Main.cc:20:10: error: 'll' was not declared in this scope
20 | for (ll i = 1; i <= m; ++i)
| ^~
Main.cc:20:20: error: 'i' was not declared in this scope
20 | for (ll i = 1; i <= m; ++i)
| ^
Main.cc:22:11: error: expected ';' before 'j'
22 | ll j = (i * i + i * m) % n + 1;
| ^~
| ;
Main.cc:23:9: error: 'fa' was not declared in this scope
23 | fa[finds(j)] = finds(i);
| ^~
Main.cc:23:18: error: 'j' was not declared in this scope
23 | fa[finds(j)] = finds(i);
| ^
Main.cc:23:12: error: 'finds' was not declared in this scope
23 | fa[finds(j)] = finds(i);
| ^~~~~
Main.cc:25:10: error: 'll' was not declared in this scope
25 | for (ll i = 1; i <= n; ++i)
| ^~
Main.cc:25:20: error: 'i' was not declared in this scope
25 | for (ll i = 1; i <= n; ++i)
| ^
Main.cc:27:11: error: expected ';' before 'k'
27 | ll k = finds(i);
| ^~
| ;
Main.cc:28:9: error: 'num' was not declared in this scope; did you mean 'enum'?
28 | num[k]++;
| ^~~
| enum
Main.cc:28:13: error: 'k' was not declared in this scope
28 | num[k]++;
| ^
Main.cc:29:9: error: 'sum' was not declared in this scope
29 | sum[k] += i;
| ^~~
Main.cc:31:10: error: 'll' was not declared in this scope
31 | for (ll i = 1; i <= n; ++i)
| ^~
Main.cc:31:20: error: 'i' was not declared in this scope
31 | for (ll i = 1; i <= n; ++i)
| ^
Main.cc:33:13: error: 'num' was not declared in this scope; did you mean 'enum'?
33 | if (num[i] > num[ansi] || (num[i] == num[ansi] && sum[i] > sum[ansi]))
| ^~~
| enum
Main.cc:33:26: error: 'ansi' was not declared in this scope
33 | if (num[i] > num[ansi] || (num[i] == num[ansi] && sum[i] > sum[ansi]))
| ^~~~
Main.cc:33:59: error: 'sum' was not declared in this scope
33 | if (num[i] > num[ansi] || (num[i] == num[ansi] && sum[i] > sum[ansi]))
| ^~~
Main.cc:38:26: error: 'num' was not declared in this scope; did you mean 'enum'?
38 | printf("flag{%lld}", num[ansi] * sum[ansi]);
| ^~~
| enum
Main.cc:38:30: error: 'ansi' was not declared in this scope
38 | printf("flag{%lld}", num[ansi] * sum[ansi]);
| ^~~~
Main.cc:38:38: error: 'sum' was not declared in this scope
38 | printf("flag{%lld}", num[ansi] * sum[ansi]);
| ^~~
Main.cc:38:5: error: 'printf' was not declared in this scope
38 | printf("flag{%lld}", num[ansi] * sum[ansi]);
| ^~~~~~
Main.cc:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | #define n 1000