#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
string s = "G:/Dev/MinGW/bin/Patch.exe -p0 -i"
" G:/avidemux_2.7.4/avidemux_core/..//avidemux_core/"
"ffmpeg_package//patches////////libavcodec_ac3_h.patch ";
auto end = unique(s.begin(), s.end(), [](unsigned char l, unsigned char r){
return l == '/' && r == '/';
});
s.erase(end, s.end());
cout << s;
}