range-based ‘for’ loops are not allowed in C++98 mode

Glad that the flag works.

If you find additional problems that you think are LAMMPS-related:
https://lammps.sandia.gov/guidelines.html
please write to the whole list again.

Thanks
Giacomo