【エラー】undeclared (first use in this function) (Each undeclared identifer is reported only once for each function it appears in.)

プログラムをコンパイルした時に表示されるエラー「undeclared (first use in this function)~」について紹介します。

## エラー文の解説

【エラー文】
(変数名) undeclared (first use in this function) (Each undeclared identifer is reported only once for each function it appears in.)

上記のエラーは、「変数(変数名)があらかじめ宣言されてない、以後はエラーを出さない」という意味です。
変数宣言がしっかりされているか確認しましょう。

コメント