結果
| 問題 | No.591 (^o^)/ |
| コンテスト | |
| ユーザー |
cnyanko1
|
| 提出日時 | 2017-11-23 17:50:20 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 230 bytes |
| 記録 | |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 36,544 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-21 12:24:44 |
| 合計ジャッジ時間 | 2,206 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 7 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:10:13: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
10 | e=strcat("(",d);
| ^~~
main.cpp:6:10: warning: 'a' is used uninitialized [-Wuninitialized]
6 | scanf("%c",a);
| ~~~~~^~~~~~~~
main.cpp:5:11: note: 'a' was declared here
5 | char *a,*b,*c,*d,*e,*f;
| ^
main.cpp:7:10: warning: 'b' is used uninitialized [-Wuninitialized]
7 | scanf("%c",b);
| ~~~~~^~~~~~~~
main.cpp:5:14: note: 'b' was declared here
5 | char *a,*b,*c,*d,*e,*f;
| ^
ソースコード
#include<stdio.h>
#include<string.h>
int main(void){
char *a,*b,*c,*d,*e,*f;
scanf("%c",a);
scanf("%c",b);
c=strncat(a,b,1);
d=strncat(c,a,1);
e=strcat("(",d);
f=strcat(e,")/");
puts(f);
return 0;
}
cnyanko1