colors.cpp:29:7: error: expected constructor, destructor, or type conversion before '(' token
29 | iota(ind,ind+n,0);
| ^
colors.cpp:30:7: error: expected constructor, destructor, or type conversion before '(' token
30 | sort(ind,ind+n,cmp);
| ^
colors.cpp:31:3: error: expected unqualified-id before 'for'
31 | for(int i=0;i<n;i++){
| ^~~
colors.cpp:31:15: error: 'i' does not name a type
31 | for(int i=0;i<n;i++){
| ^
colors.cpp:31:19: error: 'i' does not name a type
31 | for(int i=0;i<n;i++){
| ^
colors.cpp:41:3: error: expected unqualified-id before 'for'
41 | for(int i=0;i<n;i++)if(a[i]!=b[i]){
| ^~~
colors.cpp:41:15: error: 'i' does not name a type
41 | for(int i=0;i<n;i++)if(a[i]!=b[i]){
| ^
colors.cpp:41:19: error: 'i' does not name a type
41 | for(int i=0;i<n;i++)if(a[i]!=b[i]){
| ^
colors.cpp:46:3: error: 'cout' does not name a type
46 | cout<<1<<endl;
| ^~~~
colors.cpp:47:3: error: expected declaration before '}' token
47 | }
| ^