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