both are important, pieces are worth slightly more and leave a bigger impression, but scales must be good too if you want to do well.
i'd suggest warming up with scales (choose one key everyday to practice intensely), before heading to the pieces. it's tempting to sit down and play your pieces...