teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

.

2023/03/22 07:06

投稿

int32_t
int32_t

スコア21933

answer CHANGED
@@ -1,3 +1,7 @@
1
1
  変数 `temp` の宣言がありません。
2
2
 
3
3
  `temp` と `r` は `compute()` の中で宣言すればよいでしょう。
4
+
5
+ > error: cannot find symbolが出る原因としてimportの不足、変数名の間違い、大文字小文字の間違いの可能性を考えて
6
+
7
+ エラーメッセージに `symbol: variable temp` と書いてあるのですから、変数 `temp` について調べましょう。