#include <string>
#include <iostream>
using namespace std;
int main()
{
int k,a =0,i=0,b=0,j=0,h=0;
char q;
again:for(j=0;j<1;j++)
{cout << "\nEnter a value: ";
cin >> a;
for (h=0;a!=b;h++)
{cout << "Guess the value: ";
cin >> b;
}
cout << "Right value!, you have " << h << " tries.";}
if(j==0)
k=h;}
cout << "Dou you want to end the game:Y/N? ";
cin >> q;
if (q == 'N' || q == 'n')
goto again;
else
system("pause");
return 0;}
The compiler is talking about some destrukctors, constructors needed after << in the last cout.But in general it gives 100 mistakes.So i removed the bracket near it and it has compiled, but the point is that It is necessary the thing to repeat 2 times before ask to end