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