Upvote:0
For Andorra: if you have the corresponding stamps in your passport, the days there could be considered outside the Schengen Area.
For Monaco: You will receive a French Schengen entry/exit stamps when coming in or travelling out through Monaco.
San Marino and the Vatican have open borders agreements, so days there will count as inside the Schengen Area.
In the end, the Schengen enter/exit stamps are what counts.
The Border control can, however, accept alternative proof should a stamp be missing. They, however, have the last say as to whether the proof is considered sufficient.
Sources: