結果
| 問題 | No.552 十分簡単な星1の問題 |
| コンテスト | |
| ユーザー |
ctf_tte_oisino
|
| 提出日時 | 2017-11-01 23:04:31 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 137 bytes |
| 記録 | |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 36,992 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-16 16:18:11 |
| 合計ジャッジ時間 | 1,752 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 47 |
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:5:7: warning: 'char* gets(char*)' is deprecated [-Wdeprecated-declarations]
5 | gets(s);
| ~~~~^~~
In file included from main.cpp:1:
/usr/include/stdio.h:667:14: note: declared here
667 | extern char *gets (char *__s) __wur __attribute_deprecated__;
| ^~~~
/usr/bin/ld: /tmp/cc9TC1Ty.o: in function `main':
main.cpp:(.text.startup+0x9): 警告: the `gets' function is dangerous and should not be used.
ソースコード
#include <stdio.h>
#include <string.h>
int main(void){
char s[90];
gets(s);
if(strcmp(s,"0")==0)puts("0");
else printf("%s0",s);
}
ctf_tte_oisino