結果

問題 No.3124 Twin
ユーザー hex4448
提出日時 2025-06-01 22:32:08
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 180 bytes
コンパイル時間 562 ms
コンパイル使用メモリ 24,448 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-01 22:32:10
合計ジャッジ時間 1,779 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 5 WA * 12
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:13: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=]
    5 |     scanf("%d %d", &x, &y);
      |            ~^      ~~
      |             |      |
      |             int *  long int *
      |            %ld
main.c:5:16: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=]
    5 |     scanf("%d %d", &x, &y);
      |               ~^       ~~
      |                |       |
      |                int *   long int *
      |               %ld
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%d %d", &x, &y);
      |     ^~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void) {
    long int x, y;
    scanf("%d %d", &x, &y);

    if (x == y)
    {
        printf("Yes\n");
    }else {
        printf("No\n");
    }
    
}
0