結果

問題 No.2323 Nafmo、A+Bをする
ユーザー subsnsubsn
提出日時 2023-06-14 20:45:00
言語 C
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 56 bytes
コンパイル時間 748 ms
コンパイル使用メモリ 25,800 KB
実行使用メモリ 4,508 KB
最終ジャッジ日時 2023-09-05 06:46:16
合計ジャッジ時間 4,538 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c:1:1: 警告: 戻り値の型をデフォルトの ‘int’ にします [-Wimplicit-int]
    1 | main(a,b){
      | ^~~~
main.c: 関数 ‘main’ 内:
main.c:1:1: 警告: ‘a’ の型をデフォルトの ‘int’ にします [-Wimplicit-int]
main.c:1:1: 警告: ‘b’ の型をデフォルトの ‘int’ にします [-Wimplicit-int]
main.c:2:9: 警告: 関数 ‘scanf’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    2 |         scanf("%d",a);
      |         ^~~~~
main.c:1:1: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
  +++ |+#include <stdio.h>
    1 | main(a,b){
main.c:2:9: 警告: 組み込み関数 ‘scanf’ の互換性がない暗黙的な宣言です [-Wbuiltin-declaration-mismatch]
    2 |         scanf("%d",a);
      |         ^~~~~
main.c:2:9: 備考: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:4:9: 警告: 関数 ‘puts’ の暗黙的な宣言です [-Wimplicit-function-declaration]
    4 |         puts(a^b);
      |         ^~~~
main.c:4:9: 備考: include ‘<stdio.h>’ or provide a declaration of ‘puts’
main.c:4:15: 警告: 1 番目の ‘puts’ の引数へ渡すときに整数からキャスト無しにポインタを作成しています [-Wint-conversion]
    4 |         puts(a^b);
      |              ~^~
      |               |
      |               int
main.c:4:15: 備考: expected ‘const char *’ but argument is of type ‘int’

ソースコード

diff #

main(a,b){
	scanf("%d",a);
	scanf("%d",b);
	puts(a^b);
}
0