ant.cpp: In function 'int FindK()':
ant.cpp:11:3: error: 'vector' was not declared in this scope
vector<pair<int, int>> logs;
^~~~~~
ant.cpp:11:3: note: suggested alternative: 'perror'
vector<pair<int, int>> logs;
^~~~~~
perror
ant.cpp:11:23: error: expected primary-expression before '>' token
vector<pair<int, int>> logs;
^~
ant.cpp:11:26: error: 'logs' was not declared in this scope
vector<pair<int, int>> logs;
^~~~
ant.cpp:11:26: note: suggested alternative: 'labs'
vector<pair<int, int>> logs;
^~~~
labs
ant.cpp:28:18: error: unable to deduce 'auto&&' from 'logs'
for(auto log : logs)
^~~~