結果
| 問題 | No.423 ハムスター語初級(数詞) |
| コンテスト | |
| ユーザー |
naoshi65536
|
| 提出日時 | 2016-09-22 22:28:44 |
| 言語 | C90(gcc12) (gcc 12.4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 99 bytes |
| 記録 | |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 28,100 KB |
| 最終ジャッジ日時 | 2026-02-23 22:23:42 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 WA * 1 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ‘gets’ is deprecated [-Wdeprecated-declarations]
6 | gets(buf);
| ^~~~
In file included from /usr/include/stdio.h:970,
from main.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:292:1: note: declared here
292 | gets (__fortify_clang_overload_arg (char *, , __str))
| ^~~~
main.c:6:9: warning: ignoring return value of ‘gets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | gets(buf);
| ^~~~~~~~~
/usr/bin/ld: /tmp/ccZfyQTX.o: in function `main':
main.c:(.text.startup+0x2b): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#include <stdio.h>
int main()
{
char buf[1000];
gets(buf);
fputs(buf, stdout);
puts("ham");
}
naoshi65536