結果

問題 No.427 テレビ
ユーザー Seto
提出日時 2017-01-15 06:07:12
言語 C90
(gcc 12.3.0)
結果
RE  
実行時間 -
コード長 148 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 19,072 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-21 13:05:55
合計ジャッジ時間 2,249 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 2
other RE * 8
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:11: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
    4 |   scanf("%d %d", x, y);
      |          ~^      ~
      |           |      |
      |           int *  int
main.c:4:14: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘int’ [-Wformat=]
    4 |   scanf("%d %d", x, y);
      |             ~^      ~
      |              |      |
      |              int *  int
main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    4 |   scanf("%d %d", x, y);
      |   ^~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<stdio.h>
int main(){
  int x, y;
  scanf("%d %d", x, y);
  
  if(x > y){
    puts("TATE");
  }
  else{
    puts("YOKO");
  }
  return 0;
}
0