結果
| 問題 | No.809 かけ算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-14 08:12:23 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 100 bytes |
| 記録 | |
| コンパイル時間 | 155 ms |
| コンパイル使用メモリ | 31,924 KB |
| 最終ジャッジ日時 | 2026-02-24 01:02:55 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 |
コンパイルメッセージ
main.c: In function 'main':
main.c:6:5: warning: 'gets' is deprecated [-Wdeprecated-declarations]
6 | gets(s+2);
| ^~~~
In file included from main.c:1:
/usr/include/stdio.h:667:14: note: declared here
667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
/usr/bin/ld: /tmp/ccSbTkJz.o: in function `main':
main.c:(.text.startup+0x1d): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#include <stdio.h>
int main()
{
char s[13] = "1 ";
gets(s+2);
puts(s);
return 0;
}