C言語 【C言語】unknown conversion type character ‘xxx’ in format 'xxx' は C 言語での未知の変換文字です。これは、C 言語のフォーマット文字列内で有効な変換文字以外が指定された場合に発生します。 例えば、次のようなコードを見てみましょう。 #include <stdio.h&g... 2022.12.11 C言語
C言語 【C言語】initializer element is not constant "initializer element is not constant" というエラーメッセージは、配列の初期化子に定数以外の値が指定されている場合に発生するものです。C 言語では、配列の初期化子には定数のみが指定できます。 例え... 2022.12.09 C言語
C言語 【C言語】duplicate case value "duplicate case value" というエラーメッセージは、プログラムの switch 文で同じ値を持つ case 文が複数定義されている場合に発生するものです。C 言語では、switch 文内の case 文には、異なる値を... 2022.12.09 C言語
C言語 【C言語】missing terminating ” character "missing terminating '"' character" というエラーメッセージは、プログラムで文字列定数を定義する際に、文字列を囲む引用符(")が不足している場合に発生するものです。C 言語では、文字列定数を定義するには、... 2022.12.09 C言語
C言語 【C言語】request for member ‘xxx’ in something not a structure or union "request for member 'xxx' in something not a structure or union" というエラーメッセージは、プログラムが構造体または共用体のメンバーにアクセスしようとしているものが実際には構... 2022.12.09 C言語
C言語 【C言語】called object ‘xxx’ is not a function "called object 'xxx' is not a function" というエラーメッセージは、プログラムが関数として呼び出しているものが実際には関数ではない場合に発生するものです。C 言語では、関数を呼び出すには、関数名の後ろ... 2022.12.09 C言語
C言語 【C言語】lvalue required as decrement operand "lvalue required as decrement operand" というエラーメッセージは、プログラムが左辺値(lvalue)が必要なデクリメント(減算)を実行しようとした際に発生するものです。デクリメントは、変数の値を 1 ... 2022.12.09 C言語
C言語 【C言語】wrong type argument to decrement "wrong type argument to decrement" というエラーメッセージは、プログラムが型が一致しないデクリメント(減算)を実行しようとした際に発生するものです。デクリメントは、変数の値を 1 減らす操作を表します。 ... 2022.12.09 C言語
C言語 【C言語】incompatible types when returning type ‘xxx’ but ‘yyy’ was expected C言語で「incompatible types when returning type 'xxx' but 'yyy' was expected」というエラーが表示される場合、その関数が返す値の型が、定義されている型と異なることが原因です... 2022.12.09 C言語
C言語 【C言語】incompatible types when initializing type ‘xxx’ using type ‘yyy’ C言語で「incompatible types when initializing type 'xxx' using type 'yyy'」というエラーが表示される場合、その変数を初期化する値の型が、その変数の型と互換性がないことが原因で... 2022.12.09 C言語