Language: C++


namespace ConsoleApplication2
{

    class Program
    {
        static void Main(string[] args)
        {


            //int  postition=0,range=0;
            string[] eatmass = Console.ReadLine().Split(' ');
            //string[] mass = Console.ReadLine().Split(' ');

            //string[] greed = Console.ReadLine().Split(' ');
            //string[] bonus = Console.ReadLine().Split(' ');

            //int[] pointlist = new int[mass.Length];
            float Eatmass = float.Parse(eatmass[0]);
            float height;
            height = Eatmass / 3.00000000000f;



            //for (int i = 0; i < Eatmass; i++)
            //{
            //    pointlist[i] = int.Parse(mass[i]);
            //}

            //int[] greedlist = new int[greed.Length];
            //for (int i = 0; i < Eatmass; i++)
            //{
            //    greedlist[i] = int.Parse(greed[i]);
            //}

            //int[] bonuslist = new int[bonus.Length];
            //for (int i = 0; i < bonus.Length; i++)
            //{
            //    bonuslist[i] = int.Parse(bonus[i]);
            //}

            float result = 0,eaten=0;

            result = height * height * height;
            //for(int i=0;i< Eatmass; i++)
            //{

            //    result += greedlist[pointlist[i]-1];
               
            //    if(eaten!=0)
            //    {
            //        if(pointlist[i]  == eaten+1)
            //        {
            //            result += bonuslist[eaten-1];
            //        }
            //    }
            //    eaten = pointlist[i];

            //}
            //int[] listinput = new int[mass.Length];

            //for (int i = 0; i < mass.Length; i++)
            //{
            //    listinput[i] = int.Parse(mass[i]);
            //}


            Console.Write(result);



            //postition = int.Parse(mass[1]);

            //int nowposition = postition - (range - 1);

            //for(int i= 0; i<=(range-1)*2;i++)
            //{

            //    Console.Write(nowposition);
            //    Console.Write(" ");
            //    nowposition++;
            //}

            //result = 0;

        }
    }
}


Compiler output:
a.cc:7:26: error: 'string' has not been declared
    7 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:7:35: error: expected ',' or '...' before 'args'
    7 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:87:6: error: expected ';' after class definition
   87 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication2::Program::Main(int*)':
a.cc:12:13: error: 'string' was not declared in this scope
   12 |             string[] eatmass = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:12:20: error: expected primary-expression before ']' token
   12 |             string[] eatmass = Console.ReadLine().Split(' ');
      |                    ^
a.cc:19:29: error: expected primary-expression before 'float'
   19 |             float Eatmass = float.Parse(eatmass[0]);
      |                             ^~~~~
a.cc:68:13: error: 'Console' was not declared in this scope
   68 |             Console.Write(result);
      |             ^~~~~~~