If it is just one scratch, most home centers sell a stain pen you could touch up the scratch with. If there are scratches all over you'll need to sand and refinish the entire floor. You'll need to...
1 .
If you can pull up the carpet to get to that area, then you can screw or nail through the offending/sqeaking floor board into the subfloor and then put back the carpet.
If you have a...
Depends on what you think is causing it.You could try spreading chalk powder with a broom,so the powder gets in between the joints of the boards.Talcum powder is ok but a bit perfumy,ballroom powder...