Whether or not you need a visa depends on your nationality and the country in which the school will be held. If you are not sure that you have the right to travel to the country in question, we suggest that you contact an embassy of your country of nationality, or a similar authority.
If you are selected and need a VISA, please contact ASAP the CAS Secretariat (Accelerator.school@cern.ch), who will give you the contact email address of our local organizer in order to receive the invitation letter.
Please see also the information how to obtain Schengen Visas for Spain here.