結果

問題 No.591 (^o^)/
ユーザー cnyanko1
提出日時 2017-11-23 17:46:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 191 bytes
コンパイル時間 502 ms
コンパイル使用メモリ 22,016 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-27 05:51:50
合計ジャッジ時間 2,255 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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);
      |     ~~~~~^~~~~~~~

ソースコード

diff #

#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;
}
0