#include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
for (int i=0; i<10000; i++)
{
s+=1;
for (int j=0; j<i; j++)
{s+=0;}
}
cout << s;
}
This is a code i wrote to make s=110100100010000... until 10 to the power of 10000. However in the line s+=0 i get an error saying "error: ambiguous overload for 'operator+=' in 's += 0'"