結果
| 問題 |
No.591 (^o^)/
|
| コンテスト | |
| ユーザー |
sk3388607083
|
| 提出日時 | 2018-06-25 11:03:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 234 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 22,016 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-30 22:38:24 |
| 合計ジャッジ時間 | 697 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%c", &T1);
| ~~~~~^~~~~~~~~~~
main.cpp:7:8: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%c", &T2);
| ~~~~~^~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
char T1, T2;
char S[7];
scanf("%c", &T1);
scanf("%c", &T2);
S[0] = '(';
S[1] = T1;
S[2] = T2;
S[3] = T1;
S[4] = ')';
S[5] = '/';
S[6] = '\0';
printf("%s\n", S);
return 0;
}
sk3388607083