TOPIC

Compilation error, Ajudem por favor C#.

fmeleuterio asked 4 years ago

tudo OK aqui, porem quando vou enviar para o URI da o erro.

using System;
using System.Collections.Generic;
using System.Linq;

namespace UriOnline

{
    class Program
    {
        static void Main(string[] args)
        {
            List<int> a = new List<int>();
            int x = int.Parse(Console.ReadLine());
            for (int u = 0; u < x; u++)
            {
                a.Add(int.Parse(Console.ReadLine()));
            }
            var i = a.Count(x => 
                                x >= 10 && x <= 20);
            var b = a.Count(x => x >20);
            var c = a.Count(x => x < 10);

            int o = b + c;

            Console.WriteLine(i+" in");
            Console.WriteLine(o+" out");
        }

    }
}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.