結果
| 問題 |
No.591 (^o^)/
|
| コンテスト | |
| ユーザー |
cnyanko1
|
| 提出日時 | 2017-11-23 17:31:51 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 193 bytes |
| コンパイル時間 | 224 ms |
| コンパイル使用メモリ | 22,016 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-27 05:48:15 |
| 合計ジャッジ時間 | 2,177 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 7 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%c",a);
| ~~~~~^~~~~~~~
main.cpp:7:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%c",b);
| ~~~~~^~~~~~~~
main.cpp:6:10: warning: ‘a’ is used uninitialized [-Wuninitialized]
6 | scanf("%c",a);
| ~~~~~^~~~~~~~
main.cpp:7:10: warning: ‘b’ is used uninitialized [-Wuninitialized]
7 | scanf("%c",b);
| ~~~~~^~~~~~~~
ソースコード
#include<stdio.h>
#include<string.h>
int main(void){
char *a,*b,*c,*d;
scanf("%c",a);
scanf("%c",b);
c=strcat(a,b);
d=strcat(c,a);
printf("(%s)/\n",d);
return 0;
}
cnyanko1