# 1번째 컴파일 단계
Joi.cpp:2:9: error: 'vector' does not name a type
2 | vector<int>e;
| ^~~~~~
Joi.cpp: In member function 'void DSU::init(int)':
Joi.cpp:4:17: error: 'e' was not declared in this scope
4 | e=vector<int>(n,-1);
| ^
Joi.cpp:4:19: error: 'vector' was not declared in this scope
4 | e=vector<int>(n,-1);
| ^~~~~~~~~~~
Joi.cpp: In member function 'int DSU::get(int)':
Joi.cpp:8:24: error: 'e' was not declared in this scope
8 | return e[x]<0?x:e[x]=get(e[x]);
| ^
Joi.cpp: In member function 'bool DSU::unite(int, int)':
Joi.cpp:14:20: error: 'e' was not declared in this scope
14 | if(e[x]>e[y]) swap(x,y);
| ^
Joi.cpp:14:31: error: 'swap' was not declared in this scope
14 | if(e[x]>e[y]) swap(x,y);
| ^~~~
Joi.cpp:15:17: error: 'e' was not declared in this scope
15 | e[x]+=e[y];
| ^
Joi.cpp: At global scope:
Joi.cpp:21:1: error: 'vector' does not name a type
21 | vector<int>adj2[10005];
| ^~~~~~
Joi.cpp:24:1: error: 'vector' does not name a type
24 | vector<int>storage2[65];
| ^~~~~~
Joi.cpp: In function 'void dfs3(int, int)':
Joi.cpp:28:9: error: 'storage2' was not declared in this scope
28 | storage2[in2[index]%60].push_back(index);
| ^~~~~~~~
Joi.cpp:29:21: error: 'adj2' was not declared in this scope
29 | for(auto it:adj2[index]){
| ^~~~
Joi.cpp: At global scope:
Joi.cpp:35:6: error: variable or field 'Joi' declared void
35 | void Joi(int32_t n, int32_t m, int32_t a[], int32_t b[], long long val, int32_t t){
| ^~~
Joi.cpp:35:10: error: 'int32_t' was not declared in this scope
35 | void Joi(int32_t n, int32_t m, int32_t a[], int32_t b[], long long val, int32_t t){
| ^~~~~~~
Joi.cpp:1:1: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
+++ |+#include <cstdint>
1 | struct DSU{
Joi.cpp:35:21: error: 'int32_t' was not declared in this scope
35 | void Joi(int32_t n, int32_t m, int32_t a[], int32_t b[], long long val, int32_t t){
| ^~~~~~~
Joi.cpp:35:21: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
Joi.cpp:35:32: error: 'int32_t' was not declared in this scope
35 | void Joi(int32_t n, int32_t m, int32_t a[], int32_t b[], long long val, int32_t t){
| ^~~~~~~
Joi.cpp:35:32: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
Joi.cpp:35:45: error: 'int32_t' was not declared in this scope
35 | void Joi(int32_t n, int32_t m, int32_t a[], int32_t b[], long long val, int32_t t){
| ^~~~~~~
Joi.cpp:35:45: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
Joi.cpp:35:58: error: expected primary-expression before 'long'
35 | void Joi(int32_t n, int32_t m, int32_t a[], int32_t b[], long long val, int32_t t){
| ^~~~
Joi.cpp:35:73: error: 'int32_t' was not declared in this scope
35 | void Joi(int32_t n, int32_t m, int32_t a[], int32_t b[], long long val, int32_t t){
| ^~~~~~~
Joi.cpp:35:73: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?