Quick Answer
50 grams is not one fixed cup amount for every ingredient. In practical US cup references, 50 grams is about 0.4 cups of all-purpose flour, 0.25 cups of sugar, and 0.22 cups of butter.
That is why a grams-to-cups answer only works when the ingredient is clearly identified first.