結果
| 問題 | No.591 (^o^)/ | 
| コンテスト | |
| ユーザー |  Maeda | 
| 提出日時 | 2025-03-07 16:03:00 | 
| 言語 | C (gcc 13.3.0) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 200 bytes | 
| コンパイル時間 | 820 ms | 
| コンパイル使用メモリ | 22,784 KB | 
| 実行使用メモリ | 8,608 KB | 
| 最終ジャッジ日時 | 2025-03-07 16:03:04 | 
| 合計ジャッジ時間 | 3,010 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | RE * 7 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:29: warning: format ‘%c’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
    6 |         int input = scanf("%c\n%c\n",firstParts,secondParts);
      |                            ~^        ~~~~~~~~~~
      |                             |        |
      |                             char *   int
main.c:6:33: warning: format ‘%c’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
    6 |         int input = scanf("%c\n%c\n",firstParts,secondParts);
      |                                ~^               ~~~~~~~~~~~
      |                                 |               |
      |                                 char *          int
            
            ソースコード
#include <stdio.h>
void main(void){
	char firstParts = '^';
	char secondParts = 'o';
	int input = scanf("%c\n%c\n",firstParts,secondParts);
	printf("(%c%c%c)/\n",firstParts,secondParts,firstParts);
}
            
            
            
        