teraz ja mam problem niby wszystko działa ale nie uznaje
//http://pl.spoj.com/problems/PROGC05/
#include <iostream>
#include <vector>
using namespace std;
void usun(char a, string b)
{
int i=0;
while(b[i])
{
if(b[i]==a)
{
int j=i;
while(b[j])
{
b[j]=b[j+1];
j++;
}i--;
}
i++;
}cout << b << endl;
}
int main()
{
vector <char> a;
vector <string> b;
char aa;
string bb;
int c=0;
while(cin >>aa && cin >>bb )
{
a.push_back(aa);
b.push_back(bb);
c++;
}
for(int i=0;i<c;i++)
{
usun(a[i],b[i]);
}
return 0;
}
próbowałem bez vectorów i od razu po pobraniu wypisywać jednak i tak nie idzie