結果
| 問題 |
No.427 テレビ
|
| コンテスト | |
| ユーザー |
Seto
|
| 提出日時 | 2017-01-15 06:05:06 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 151 bytes |
| コンパイル時間 | 160 ms |
| コンパイル使用メモリ | 19,456 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-21 13:05:52 |
| 合計ジャッジ時間 | 1,979 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | RE * 8 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:12: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 2 has type ‘long int’ [-Wformat=]
4 | scanf("%ld %ld", x, y);
| ~~^ ~
| | |
| | long int
| long int *
main.c:4:16: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 3 has type ‘long int’ [-Wformat=]
4 | scanf("%ld %ld", x, y);
| ~~^ ~
| | |
| | long int
| long int *
main.c:4:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%ld %ld", x, y);
| ^~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(){
long x, y;
scanf("%ld %ld", x, y);
if(x > y){
puts("TATE");
}
else{
puts("YOKO");
}
return 0;
}
Seto