Submission #1175800


Source Code Expand

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

    class Program
    {
int d;
                int t;
                int[] c;
                int[] a;

        static void Main()
        {
            for (int i = 0; i < 1000; i++)
            {
                                for (int i = 0; i < 8; i++)
                {
                if (a[i] == d)
                {
                    Console.Out.WriteLine("sell 1 " + i);


                }
                else if (c[i] == d && t != 1)
                {
                    Console.Out.WriteLine("fill" + i);
                }
                else
                {

                    Console.Out.WriteLine("pass");
                }
                }
               
               
            }
        }
    }

Submission Info

Submission Time
Task A - 石油王Xの憂鬱
User kazuma0824
Language C# (Mono 4.6.2.0)
Score 0
Code Size 885 Byte
Status CE

Compile Error

./Main.cs(18,42): error CS0136: A local variable named `i' cannot be declared in this scope because it would give a different meaning to `i', which is already used in a `parent or current' scope to denote something else