swap.cpp: In function 'void DSU(int, int, int, int)':
swap.cpp:54:40: error: request for member 'size' in 'CurRep[u]', which is of non-class type 'int'
54 | for(int i=0;i<InComponents[CurRep[u].size();i++){
| ^~~~
swap.cpp:54:46: error: expected ']' before ';' token
54 | for(int i=0;i<InComponents[CurRep[u].size();i++){
| ^
| ]
swap.cpp:55:56: error: invalid types 'int[int]' for array subscript
55 | InComponents[CurID].push_back(InComponents[CurRep[u][i]);
| ^
swap.cpp:55:59: error: expected ']' before ')' token
55 | InComponents[CurID].push_back(InComponents[CurRep[u][i]);
| ^
| ]
swap.cpp:56:33: error: invalid types 'int[int]' for array subscript
56 | CurRep[InComponents[CurRep[u][i]]=CurID;
| ^
swap.cpp:56:43: error: expected ']' before ';' token
56 | CurRep[InComponents[CurRep[u][i]]=CurID;
| ^
| ]
swap.cpp:58:40: error: request for member 'size' in 'CurRep[v]', which is of non-class type 'int'
58 | for(int i=0;i<InComponents[CurRep[v].size();i++){
| ^~~~
swap.cpp:58:46: error: expected ']' before ';' token
58 | for(int i=0;i<InComponents[CurRep[v].size();i++){
| ^
| ]
swap.cpp:59:56: error: invalid types 'int[int]' for array subscript
59 | InComponents[CurID].push_back(InComponents[CurRep[v][i]);
| ^
swap.cpp:59:59: error: expected ']' before ')' token
59 | InComponents[CurID].push_back(InComponents[CurRep[v][i]);
| ^
| ]
swap.cpp:60:33: error: invalid types 'int[int]' for array subscript
60 | CurRep[InComponents[CurRep[v][i]]=CurID;
| ^
swap.cpp:60:43: error: expected ']' before ';' token
60 | CurRep[InComponents[CurRep[v][i]]=CurID;
| ^
| ]
swap.cpp: In function 'void init(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
swap.cpp:100:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
100 | for(int i=0;i<adj[Cur].size();i++){
| ~^~~~~~~~~~~~~~~~
swap.cpp:113:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
113 | for(int k=0;k<KRTID.size();k++){
| ~^~~~~~~~~~~~~
swap.cpp: In function 'int getMinimumFuelCapacity(int, int)':
swap.cpp:146:2: warning: label 'SkipPoint' defined but not used [-Wunused-label]
146 | SkipPoint:;
| ^~~~~~~~~