結果

問題 No.1485 運賃
ユーザー iwa_choco_168iwa_choco_168
提出日時 2019-12-01 17:17:21
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 117 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 26,256 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-17 11:20:03
合計ジャッジ時間 2,156 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: 関数 ‘main’ 内:
main.c:7:14: 警告: 1 番目の ‘printf’ の引数へ渡すときに整数からキャスト無しにポインタを作成しています [-Wint-conversion]
    7 |     printf(a + b);
      |            ~~^~~
      |              |
      |              int
次のファイルから読み込み:  main.c:1:
/usr/include/stdio.h:332:43: 備考: expected ‘const char * restrict’ but argument is of type ‘int’
  332 | extern int printf (const char *__restrict __format, ...);
      |                    ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main() {
    int a;
    int b;
    scanf("%d %d", &a, &b);
    printf(a + b);
    return 0;
}
0