Proszę o pomoc!
Dlaczego to nie działa:
#include <iostream>
using namespace std;
string na2(int liczba) {
if (liczba == 0)
return "0";
string pom = "";
while (liczba> 0) {
pom = char (liczba % 2 + 48) + pom;
liczba = liczba / 2;
}
return pom;
}```