結果
| 問題 |
No.591 (^o^)/
|
| ユーザー |
|
| 提出日時 | 2017-11-24 19:56:46 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 210 bytes |
| コンパイル時間 | 103 ms |
| コンパイル使用メモリ | 26,752 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-11-27 07:08:04 |
| 合計ジャッジ時間 | 2,172 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 7 |
コンパイルメッセージ
main.c: In function 'main':
main.c:7:12: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
7 | printf('(');
| ^~~
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
356 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:12: warning: multi-character character constant [-Wmultichar]
8 | printf('%c',*a);
| ^~~~
main.c:8:12: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
8 | printf('%c',*a);
| ^~~~
| |
| int
/usr/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
356 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:12: warning: multi-character character constant [-Wmultichar]
9 | printf('%c',*b);
| ^~~~
main.c:9:12: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
9 | printf('%c',*b);
| ^~~~
| |
| int
/usr/include/stdio.h:356:43: note: expected 'const char * restrict' but argument is of type 'int'
356 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:10:12: warning: multi-character character constant [-Wmultichar]
10 | printf('%c',*a);
| ^~~~
main.c:10:12: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
10 | printf('%c',*a);
| ^~~~
| |
| int
/usr/include/stdio.h:356:43: note: expected 'const char *
ソースコード
#include<stdio.h>
int main(void){
char *a,*b,out[6];
*a=getchar();
*b=getchar();
printf('(');
printf('%c',*a);
printf('%c',*b);
printf('%c',*a);
printf(")/\n");
return 0;
}