結果
| 問題 |
No.374 コイン
|
| コンテスト | |
| ユーザー |
zeosutt
|
| 提出日時 | 2016-06-05 01:12:12 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 58 bytes |
| コンパイル時間 | 262 ms |
| コンパイル使用メモリ | 19,456 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 22:41:31 |
| 合計ジャッジ時間 | 1,173 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
コンパイルメッセージ
main.c:1:10: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | long a,b;main(){scanf("%d%d",&a,&b);a=!puts(a<b?"K":"S");}
| ^~~~
main.c: In function ‘main’:
main.c:1:17: warning: implicit declaration of function ‘scanf’ [-Wimplicit-function-declaration]
1 | long a,b;main(){scanf("%d%d",&a,&b);a=!puts(a<b?"K":"S");}
| ^~~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
+++ |+#include <stdio.h>
1 | long a,b;main(){scanf("%d%d",&a,&b);a=!puts(a<b?"K":"S");}
main.c:1:17: warning: incompatible implicit declaration of built-in function ‘scanf’ [-Wbuiltin-declaration-mismatch]
1 | long a,b;main(){scanf("%d%d",&a,&b);a=!puts(a<b?"K":"S");}
| ^~~~~
main.c:1:17: note: include ‘<stdio.h>’ or provide a declaration of ‘scanf’
main.c:1:25: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=]
1 | long a,b;main(){scanf("%d%d",&a,&b);a=!puts(a<b?"K":"S");}
| ~^ ~~
| | |
| | long int *
| int *
| %ld
main.c:1:27: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=]
1 | long a,b;main(){scanf("%d%d",&a,&b);a=!puts(a<b?"K":"S");}
| ~^ ~~
| | |
| int * long int *
| %ld
main.c:1:40: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
1 | long a,b;main(){scanf("%d%d",&a,&b);a=!puts(a<b?"K":"S");}
| ^~~~
main.c:1:40: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
ソースコード
long a,b;main(){scanf("%d%d",&a,&b);a=!puts(a<b?"K":"S");}
zeosutt