初級 › does not exist in the current context の原因と直し方 › パターン4
does not exist in the current context の原因と直し方
変数名のスペルミスやスコープ外参照で出る、初心者に最も身近なエラーの一つです。
1 class Program { 2 static void Main(string[] args) { 3 int score = 88; 4 System.Console.WriteLine(_____); ^ 5 } 6 }
Program.cs(4,34): error CS0103: The name 'scroe' does not exist in the current context
空欄を埋めてビルドを通す
scoreのタイプミスであるscroeは宣言されていないため、未知の識別子として扱われます。
次の問題