Why i am getting compilation error?

Could someone please tell me why i keep getting compilation errors when submit my code

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

namespace experiment
{
    class Program
    {
        static void Main(string[] args)
        {
            long t = long.Parse(Console.ReadLine());
            List<long> lines = new List<long>();
            for (int i = 0; i <t; i++)
            {
                lines.Add(long.Parse(Console.ReadLine()));
            }
            foreach (long x in lines)
            {
                long result=1;
                for (long i = x; i>=1; i--)
                {
                    result = result * i;
                }
                Console.WriteLine(result);
            }
            Console.ReadLine();
        }
    }
}

for some reason it keeps giving me compilation errors when i submit the code.could somebody please tell what i need to do to get it fixed

see this code…[LINK][1]!!!

also the algo u r using for FCTRL2(it seems it is a code for that) will give a WA…as the value after multiplication will overflow!!!
[1]: http://ideone.com/2EFM54

1 Like

Please send the code true.We need to read it before each work