結果
| 問題 |
No.597 concat
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-25 22:53:32 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 55 bytes |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 27,136 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 10:15:04 |
| 合計ジャッジ時間 | 625 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
1 | main(a){for(gets(&a);a=getchar(),~a;)a-10&&putchar(a);}
| ^~~~
main.c: In function 'main':
main.c:1:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:13: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
1 | main(a){for(gets(&a);a=getchar(),~a;)a-10&&putchar(a);}
| ^~~~
main.c:1:24: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
1 | main(a){for(gets(&a);a=getchar(),~a;)a-10&&putchar(a);}
| ^~~~~~~
main.c:1:1: note: 'getchar' is defined in header '<stdio.h>'; did you forget to '#include <stdio.h>'?
+++ |+#include <stdio.h>
1 | main(a){for(gets(&a);a=getchar(),~a;)a-10&&putchar(a);}
main.c:1:44: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
1 | main(a){for(gets(&a);a=getchar(),~a;)a-10&&putchar(a);}
| ^~~~~~~
main.c:1:44: note: include '<stdio.h>' or provide a declaration of 'putchar'
/usr/bin/ld: /tmp/ccgiR9Zo.o: in function `main':
main.c:(.text.startup+0x10): 警告: the `gets' function is dangerous and should not be used.
ソースコード
main(a){for(gets(&a);a=getchar(),~a;)a-10&&putchar(a);}