A Cults Academy pupil who knew Bailey Gwynne's killer carried a knife in school says he regrets not warning teachers before the fatal stabbing.

Bailey, 16, died following the attack at school in Aberdeen on October 28 last year.

His teenage killer, who cannot be named for legal reasons, regularly took a knife to school and was seen with it as many as 25 times before the attack.

On Tuesday, an inquiry concluded the incident could have been avoided "if those who knew [the killer] carried weapons in school had reported this to staff".

A Cults Academy pupil told STV News: "I had seen the knife on multiple occasions but obviously not knowing how much the situation would escalate I didn't think much of it - which is a regret now.

"But I think at the time it was just 'oh he's being stupid, I'm not going to get involved'."

S1 pupils at Cults Academy are now being taught about the dangers of knives for the first time since the attack, for which Bailey's killer was detained for nine years.

The pupil, who asked not to be identified, said: "I think the message about pupils taking a bit more responsibility is important but it's not realistic.

"Whether it be a knife, or a matchbox or a lighter, pupils wouldn't grass on their friends or snitch on anyone unless they think there's danger.

"It should be more the teachers and school's responsibility than the pupils'. We are not in school to manage the school - we are there to learn."

The inquiry into Bailey's death, which published its findings on Tuesday, recommended giving staff greater powers to search pupils suspected of carrying weapons.

That suggestion has been rejected by the Educational Institute of Scotland, which represents 80% of Scottish teachers.

The union said it would risk "undermining the trust and respect between pupils and school staff".

Bailey's killer admitted carrying weapons in an attempt to "be cool" and bought the knife used in the stabbing from Amazon because "they don't check if you're over 18".

Tougher rules on the sale of knives online set out in the wake of the attack are not being enforced in Scotland.

Earlier this year, STV News found nearly 700 children have been excluded for attacks with weapons in Scottish schools over the last five years.