結果
| 問題 | 
                            No.835 ジュース
                             | 
                    
| コンテスト | |
| ユーザー | 
                             zGb6E2aZRz6qwu9
                         | 
                    
| 提出日時 | 2019-06-20 15:46:24 | 
| 言語 | C90  (gcc 12.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 150 bytes | 
| コンパイル時間 | 963 ms | 
| コンパイル使用メモリ | 22,272 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-12-17 18:04:25 | 
| 合計ジャッジ時間 | 1,014 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | WA * 3 | 
| other | WA * 6 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:14: warning: format ‘%lf’ expects argument of type ‘double *’, but argument 2 has type ‘long double *’ [-Wformat=]
    5 |     scanf("%lf",&a);
      |            ~~^  ~~
      |              |  |
      |              |  long double *
      |              double *
      |            %Lf
main.c:7:15: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=]
    7 |     printf("%ld\n",ans);
      |             ~~^    ~~~
      |               |    |
      |               |    long long int
      |               long int
      |             %lld
main.c:5:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |     scanf("%lf",&a);
      |     ^~~~~~~~~~~~~~~
            
            ソースコード
#include<stdio.h>
int main(void){
    long double M,a;
    scanf("%lf",&a);
    long long int ans=a*1.5;
    printf("%ld\n",ans);
    return 0;
}
   
            
            
            
        
            
zGb6E2aZRz6qwu9