consul.cpp: In function 'void Solve(int)':
consul.cpp:7:12: error: 'time' was not declared in this scope
7 | srand (time (0));
| ^~~~
consul.cpp:7:5: error: 'srand' was not declared in this scope
7 | srand (time (0));
| ^~~~~
consul.cpp:8:5: error: 'vector' was not declared in this scope
8 | vector <int> a;
| ^~~~~~
consul.cpp:8:13: error: expected primary-expression before 'int'
8 | vector <int> a;
| ^~~
consul.cpp:10:20: error: 'rand' was not declared in this scope
10 | int x=kth (rand ());
| ^~~~
consul.cpp:17:24: error: 'a' was not declared in this scope
17 | for (int i=0;i<a.size ();++i){
| ^
consul.cpp:24:13: error: 'a' was not declared in this scope
24 | a.push_back (x);
| ^