結果
| 問題 | No.227 簡単ポーカー | 
| コンテスト | |
| ユーザー |  sasa | 
| 提出日時 | 2025-03-05 10:25:14 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 135 bytes | 
| コンパイル時間 | 553 ms | 
| コンパイル使用メモリ | 26,700 KB | 
| 実行使用メモリ | 8,608 KB | 
| 最終ジャッジ日時 | 2025-03-05 10:25:17 | 
| 合計ジャッジ時間 | 3,622 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 14 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:25: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘int’ [-Wformat=]
    7 |                 scanf("%d",p[i]);
      |                        ~^  ~~~~
      |                         |   |
      |                         |   int
      |                         int *
main.c:7:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |                 scanf("%d",p[i]);
      |                 ^~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
int main(){
	int card[5];
	int *p = card;
	for(int i = 0;i < 5;i++){
		scanf("%d",p[i]);
		printf("%d ",p[i]);
	}
}
            
            
            
        