Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;



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:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:14:26: error: 'string' has not been declared
   14 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:14:35: error: expected ',' or '...' before 'args'
   14 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:94:6: error: expected ';' after class definition
   94 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication2::Program::Main(int*)':
a.cc:19:13: error: 'string' was not declared in this scope
   19 |             string[] eatmass = Console.ReadLine().Split(' ');
      |             ^~~~~~
a.cc:19:20: error: expected primary-expression before ']' token
   19 |             string[] eatmass = Console.ReadLine().Split(' ');
      |                    ^
a.cc:26:29: error: expected primary-expression before 'float'
   26 |             float Eatmass = float.Parse(eatmass[0]);
      |                             ^~~~~
a.cc:75:13: error: 'Console' was not declared in this scope
   75 |             Console.Write(result);
      |             ^~~~~~~