Loading...

Във форума е въведено ограничение, което позволява на потребителите единствено да разглеждат публикуваните въпроси.

SonGokuBg avatar SonGokuBg 3 Точки

Как да го пусна като код?

0
stefanivanov95 avatar stefanivanov95 5 Точки

Първо оправи отварящите и затварящи скоби! Няма как да мине като липсват :)
 {
    {
       {
           { 
            var word1 = (Console.ReadLine());
            var word2 = (Console.ReadLine());
            word1 = word1.ToLower();
            word2 = word2.ToLower();
            if (word1 == word2)
            {
                Console.WriteLine("yes");
            }
            else
            {
                Console.WriteLine("no");
            }
        }
    }
}

1
SonGokuBg avatar SonGokuBg 3 Точки

A compile time error occurred.

Compilation result:

Compiled file is missing. Compiler output: ...\tmp96CD.tmp(1,2): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(7,13): error CS0116: A namespace cannot directly contain members such as fields or methods
...\tmp96CD.tmp(7,19): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(7,27): error CS0116: A namespace cannot directly contain members such as fields or methods
...\tmp96CD.tmp(7,35): error CS8124: Tuple must contain at least two elements.
...\tmp96CD.tmp(7,36): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(8,13): error CS0116: A namespace cannot directly contain members such as fields or methods
...\tmp96CD.tmp(8,19): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(8,27): error CS0116: A namespace cannot directly contain members such as fields or methods
...\tmp96CD.tmp(8,35): error CS8124: Tuple must contain at least two elements.
...\tmp96CD.tmp(8,36): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(9,23): error CS8124: Tuple must contain at least two elements.
...\tmp96CD.tmp(9,23): error CS1026: ) expected
...\tmp96CD.tmp(9,23): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(9,26): error CS0116: A namespace cannot directly contain members such as fields or methods
...\tmp96CD.tmp(9,31): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(11,25): error CS0116: A namespace cannot directly contain members such as fields or methods
...\tmp96CD.tmp(11,35): error CS1031: Type expected
...\tmp96CD.tmp(11,35): error CS8124: Tuple must contain at least two elements.
...\tmp96CD.tmp(11,35): error CS1026: ) expected
...\tmp96CD.tmp(11,35): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(12,13): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(13,13): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(15,25): error CS0116: A namespace cannot directly contain members such as fields or methods
...\tmp96CD.tmp(15,35): error CS1031: Type expected
...\tmp96CD.tmp(15,35): error CS8124: Tuple must contain at least two elements.
...\tmp96CD.tmp(15,35): error CS1026: ) expected
...\tmp96CD.tmp(15,35): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(16,13): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(17,9): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(18,5): error CS1022: Type or namespace definition, or end-of-file expected
...\tmp96CD.tmp(19,1): error CS1022: Type or namespace definition, or end-of-file expected
0
Tspetrova avatar Tspetrova 125 Точки

Кода на stefanivanov95 е коректен, нали копираш в judge и началото на кода

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

0
SonGokuBg avatar SonGokuBg 3 Точки

Кода който постнах си работи, но системата не го приема

0
Можем ли да използваме бисквитки?
Ние използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Можете да се съгласите с всички или част от тях.
Назад
Функционални
Използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Използваме „сесийни“ бисквитки, за да Ви идентифицираме временно. Те се пазят само по време на активната употреба на услугите ни. След излизане от приложението, затваряне на браузъра или мобилното устройство, данните се трият. Използваме бисквитки, за да предоставим опцията „Запомни Ме“, която Ви позволява да използвате нашите услуги без да предоставяте потребителско име и парола. Допълнително е възможно да използваме бисквитки за да съхраняваме различни малки настройки, като избор на езика, позиции на менюта и персонализирано съдържание. Използваме бисквитки и за измерване на маркетинговите ни усилия.
Рекламни
Използваме бисквитки, за да измерваме маркетинг ефективността ни, броене на посещения, както и за проследяването дали дадено електронно писмо е било отворено.