Hello, I was searching for a solution to a challenge and this was one of the answers, but I can't understand the for(int y:arr). What does it mean? Thank you for your attention
1 2 3 4 5 6 7 8 9
int getAbsSum(std::vector<int> arr) {
int x=0;
for (int y:arr)
{
x+= abs(y);
}
return x;
}