rail.cpp: In function 'void findLocation(int, int, int*, int*)':
rail.cpp:80:14: error: expected unqualified-id before 'auto'
80 | for(const &auto inf : rig){
| ^~~~
rail.cpp:80:14: error: expected ';' before 'auto'
80 | for(const &auto inf : rig){
| ^~~~
| ;
rail.cpp:80:23: error: found ':' in nested-name-specifier, expected '::'
80 | for(const &auto inf : rig){
| ^
| ::
rail.cpp:80:19: error: 'inf' has not been declared
80 | for(const &auto inf : rig){
| ^~~
rail.cpp:80:28: error: qualified-id in declaration before ')' token
80 | for(const &auto inf : rig){
| ^
rail.cpp:80:28: error: expected ';' before ')' token
80 | for(const &auto inf : rig){
| ^
| ;
rail.cpp:81:14: error: 'inf' was not declared in this scope; did you mean 'int'?
81 | int n1 = inf.x;
| ^~~
| int
rail.cpp:114:14: error: expected unqualified-id before 'auto'
114 | for(const &auto inf : lef){
| ^~~~
rail.cpp:114:14: error: expected ';' before 'auto'
114 | for(const &auto inf : lef){
| ^~~~
| ;
rail.cpp:114:23: error: found ':' in nested-name-specifier, expected '::'
114 | for(const &auto inf : lef){
| ^
| ::
rail.cpp:114:19: error: 'inf' has not been declared
114 | for(const &auto inf : lef){
| ^~~
rail.cpp:114:28: error: qualified-id in declaration before ')' token
114 | for(const &auto inf : lef){
| ^
rail.cpp:114:28: error: expected ';' before ')' token
114 | for(const &auto inf : lef){
| ^
| ;
rail.cpp:115:14: error: 'inf' was not declared in this scope; did you mean 'int'?
115 | int n1 = inf.x;
| ^~~
| int