結果
問題 | No.354 メルセンヌ素数 |
ユーザー |
![]() |
提出日時 | 2017-03-31 18:00:51 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 34 bytes |
コンパイル時間 | 239 ms |
コンパイル使用メモリ | 25,856 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-02 02:08:17 |
合計ジャッジ時間 | 710 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 |
コンパイルメッセージ
main.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int] 1 | main(){char a[9];gets(a);puts(a);} | ^~~~ main.c: In function 'main': main.c:1:18: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration] 1 | main(){char a[9];gets(a);puts(a);} | ^~~~ main.c:1:26: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration] 1 | main(){char a[9];gets(a);puts(a);} | ^~~~ main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts' +++ |+#include <stdio.h> 1 | main(){char a[9];gets(a);puts(a);} /usr/bin/ld: /tmp/ccCEnL0N.o: in function `main': main.c:(.text.startup+0x10): 警告: the `gets' function is dangerous and should not be used.
ソースコード
main(){char a[9];gets(a);puts(a);}