C言語 【C言語】conversion to non-scalar type requested conversion to non-scalar type requested というエラーメッセージは、プログラムでスカラー型(整数や浮動小数点数などの単一の値を表す型)を非スカラー型(配列や構造体など複数の値をまとめた型)へ変換しよう... 2022.12.14 C言語自動生成
C言語 【C言語】array type has incomplete element type "array type has incomplete element type" というエラーメッセージは、配列の要素の型が不完全な場合に表示されます。 例えば、次のようなクラスを定義したとします。 class MyClass... 2022.12.14 C言語自動生成
C言語 【C言語】unrecognized command line option “xxx” "unrecognized command line option 'xxx'" というエラーメッセージは、コマンドラインから指定されたオプションが無効な場合に表示されます。 例えば、次のようなコマンドを実行したとします。 $... 2022.12.14 C言語自動生成
C言語 【C言語】size of array ‘xxx’ is too large "size of array 'xxx' is too large" というエラーメッセージは、配列のサイズが大きすぎる場合に表示されます。 例えば、次のようなコードを書いたとします。 int x; このコードでは、整数... 2022.12.14 C言語自動生成
C言語 【C言語】invalid operands to binary OP (have ‘xxx’ and ‘yyy’) "invalid operands to binary OP (have 'xxx' and 'yyy')" というエラーメッセージは、二項演算子 (例えば +、-、* など) を適用しようとしたとき、演算子の左右のオペランドの型が異なる... 2022.12.14 C言語自動生成
C言語 【C言語】assignment of read-only location ‘xxx’ "assignment of read-only location 'xxx'" というエラーメッセージは、読み取り専用の場所に代入しようとした場合に表示されます。 例えば、次のようなコードを書いたとします。 const in... 2022.12.14 C言語自動生成
C言語 【C言語】increment of read-only member ‘xxx’ "increment of read-only member 'xxx'" というエラーメッセージは、読み取り専用のメンバ変数に ++ 演算子を適用しようとした場合に表示されます。 例えば、次のようなクラスを定義したとします。 ... 2022.12.14 C言語自動生成
C言語 【C言語】assignment of read-only member ‘xxx’ "assignment of read-only member 'xxx'" というエラーメッセージは、読み取り専用のメンバ変数に代入しようとした場合に表示されます。 例えば、次のようなクラスを定義したとします。 class ... 2022.12.14 C言語自動生成
C言語 【C言語】subscripted value is neither array nor pointer "subscripted value is neither array nor pointer" というエラーメッセージは、配列のようにインデックスでアクセスしようとした変数が、配列やポインタのいずれでもない場合に表示されます。 例... 2022.12.14 C言語未分類
C言語 【C言語】subscripted value is neither array nor pointer nor vector "subscripted value is neither array nor pointer nor vector" というエラーメッセージは、配列のようにインデックスでアクセスしようとした変数が、配列やポインタ、ベクターのいずれでもな... 2022.12.14 C言語未分類