Sortowanie szybkie – czemu "swap" jest podkreślony na czerwono?

0

Dzień dobry

Czy może ktoś mi wytłumaczyć czemu "swap" jest podkreślony na czerwono?

#include"stdafx.h"
#include <iostream>
#include <string>



void Sortowanie(int tab[], int left, int right)
{
	int i = left;
	int j = right;
	int x = tab[(left + right) / 2];
	do
	{
		while (tab[i] < x)
			i++;

		while (tab[j] > x)
			j--;

		if (i <= j)
		{
			swap(tab[i], tab[j]);

			i++;
			j--;
		}
	} while (i <= j);

	if (left < j) Sortowanie(tab, left, j);

	if (right > i) Sortowanie(tab, i, right);

}

Dziękuje za pomoc

1

bo brakuje std:: i #include<algorithm>

1 użytkowników online, w tym zalogowanych: 0, gości: 1