結果
| 問題 |
No.591 (^o^)/
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-07 16:03:34 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 212 bytes |
| コンパイル時間 | 622 ms |
| コンパイル使用メモリ | 22,784 KB |
| 実行使用メモリ | 8,608 KB |
| 最終ジャッジ日時 | 2025-03-07 16:03:37 |
| 合計ジャッジ時間 | 2,779 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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",(char)firstParts,(char)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",(char)firstParts,(char)secondParts);
| ~^ ~~~~~~~~~~~~~~~~~
| | |
| char * int
ソースコード
#include <stdio.h>
void main(void){
char firstParts = '^';
char secondParts = 'o';
int input = scanf("%c\n%c\n",(char)firstParts,(char)secondParts);
printf("(%c%c%c)/\n",firstParts,secondParts,firstParts);
}
Maeda