consul.cpp: In function 'void solve(int)':
consul.cpp:12:20: error: expected primary-expression before '}' token
if(vis[id])}{x++;continue;}
^
consul.cpp:12:26: error: continue statement not within a loop
if(vis[id])}{x++;continue;}
^~~~~~~~
consul.cpp:13:13: error: 'id' was not declared in this scope
vis[id]=1;
^~
consul.cpp: At global scope:
consul.cpp:23:5: error: expected unqualified-id before 'for'
for(auto x:res){
^~~
consul.cpp:28:5: error: expected unqualified-id before 'if'
if(cnt(mx.first)>n/3){
^~
consul.cpp:32:15: error: expected constructor, destructor, or type conversion before '(' token
say_answer(-1);
^
consul.cpp:33:1: error: expected declaration before '}' token
}
^