stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:44:14: error: wrong number of template arguments (1, should be 2)
44 | pair <int> mn = (1e9,1e9);
| ^
In file included from /usr/include/c++/13/bits/stl_algobase.h:64,
from /usr/include/c++/13/vector:62,
from stations.h:1,
from stations.cpp:1:
/usr/include/c++/13/bits/stl_pair.h:187:12: note: provided for 'template<class _T1, class _T2> struct std::pair'
187 | struct pair
| ^~~~
stations.cpp:6:12: error: request for member 'second' in 'mn', which is of non-class type 'int'
6 | #define se second
| ^~~~~~
stations.cpp:46:15: note: in expansion of macro 'se'
46 | if(mn.se > abs(i - t)){
| ^~
stations.cpp:47:32: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
47 | mn = {i, abs(i - t)};
| ^
stations.cpp:5:12: error: request for member 'first' in 'mn', which is of non-class type 'int'
5 | #define fi first
| ^~~~~
stations.cpp:50:15: note: in expansion of macro 'fi'
50 | return mn.fi;
| ^~