chameleon.cpp: In function 'void Solve(int)':
chameleon.cpp:35:33: error: 'put' was not declared in this scope; did you mean 'putw'?
35 | put[c].push_back(v);
| ^~~
| putw
chameleon.cpp:44:47: error: conversion from '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to non-scalar type 'std::vector<int>' requested
44 | vector<int> q = sets[k];
| ^
chameleon.cpp:50:50: error: request for member 'size' in 'sets.std::vector<int>::operator[](((std::vector<int>::size_type)k))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
50 | int hi = sets[k].size() - 1;
| ^~~~
chameleon.cpp:54:90: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
54 | for(int j=start; j<=mid; ++j) p.push_back(sets[k][j]);
| ^
chameleon.cpp:58:55: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
58 | G[i].push_back(sets[k][lo]);
| ^
chameleon.cpp:59:55: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
59 | g[i].push_back(sets[k][lo]);
| ^
chameleon.cpp:60:42: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
60 | G[sets[k][lo]].push_back(i);
| ^
chameleon.cpp:63:60: error: request for member 'size' in 'sets.std::vector<int>::operator[](((std::vector<int>::size_type)k))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
63 | for(int j=start; j<sets[k].size(); ++j) q.push_back(sets[k][j]);
| ^~~~
chameleon.cpp:63:92: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
63 | for(int j=start; j<sets[k].size(); ++j) q.push_back(sets[k][j]);
| ^