How to fix this please?
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sololearn { class Program { class Shape { private int dimensions; public Shape(int dimensions) { this.dimensions = dimensions; int[] parts = new int[dimensions+1]; } public int[] parts; public static Shape operator * (Shape P1, Shape P2) { Shape P = new Shape(P1.dimensions+P2.dimensions); for (int x=0; x<=P.dimensions; x++) { for (int y=0; y<=P1.dimensions; y++) { for (int z=0; z<=P2.dimensions; z++) { if (x==y+z) P.parts[x]+=P1.parts[y]*P2.parts[z]; }} } return P; } }