結果
| 問題 | 
                            No.374 コイン
                             | 
                    
| コンテスト | |
| ユーザー | 
                             zeosutt
                         | 
                    
| 提出日時 | 2016-06-05 01:15:57 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 1 ms / 1,000 ms | 
| コード長 | 58 bytes | 
| コンパイル時間 | 450 ms | 
| コンパイル使用メモリ | 19,328 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-07 22:41:54 | 
| 合計ジャッジ時間 | 1,366 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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)/putchar("SK"[a<b]);}
      |          ^~~~
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)/putchar("SK"[a<b]);}
      |                   ^~~~~
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)/putchar("SK"[a<b]);}
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)/putchar("SK"[a<b]);}
      |                   ^~~~~
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)/putchar("SK"[a<b]);}
      |                          ~^    ~~
      |                           |    |
      |                           |    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)/putchar("SK"[a<b]);}
      |                            ~^     ~~
      |                             |     |
      |                             int * long int *
      |                            %ld
main.c:1:39: warning: implicit declaration of function ‘putchar’ [-Wimplicit-function-declaration]
    1 | long a,b;main(){a=scanf("%d%d",&a,&b)/putchar("SK"[a<b]);}
      |                                       ^~~~~~~
main.c:1:39: note: include ‘<stdio.h>’ or provide a declaration of ‘putchar’
            
            ソースコード
long a,b;main(){a=scanf("%d%d",&a,&b)/putchar("SK"[a<b]);}
            
            
            
        
            
zeosutt