Чего он ругается что нет ссылки Какая еще ссылка нужна здесь?

The type or namespace name 'num' could not be found (are you missing a using directive or an assembly reference?) Program.cs 14 Active

  using System;
using System.Collections;

namespace ConsoleApp1
{
    class Program
    {
        public int w = 2;
        public int h = 2;
        public int[,] dvu;
        public int num = -1;
        static void Main(string[] args)
        {
                 num
                Console.WriteLine("Hello World!");
        }
    }
}

Прописываю int переменную и сразу же ошибка В чём проблема у VS?


Ответы (0 шт):