結果
| 問題 | 
                            No.9000 Hello World! (テスト用)
                             | 
                    
| ユーザー | 
                             yasosigu
                         | 
                    
| 提出日時 | 2015-05-07 03:05:49 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 96 bytes | 
| コンパイル時間 | 93 ms | 
| コンパイル使用メモリ | 22,400 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-05 19:22:36 | 
| 合計ジャッジ時間 | 463 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | WA * 4 | 
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:5:9: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[50]’ [-Wformat=]
    5 | scanf("%s" ,&s);
      |        ~^   ~~
      |         |   |
      |         |   char (*)[50]
      |         char*
main.cpp:5:6: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 | scanf("%s" ,&s);
      | ~~~~~^~~~~~~~~~
            
            ソースコード
#include<stdio.h>
int main()
{
 char s[50];
scanf("%s" ,&s);
printf("Hello World");
return 0;
}
            
            
            
        
            
yasosigu