結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
👑 testestest
|
| 提出日時 | 2015-10-17 22:09:02 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 113 bytes |
| コンパイル時間 | 413 ms |
| コンパイル使用メモリ | 19,072 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-22 10:59:43 |
| 合計ジャッジ時間 | 4,591 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 24 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:3:1: warning: implicit declaration of function ‘gets’ [-Wimplicit-function-declaration]
3 | gets(gets(i));
| ^~~~
main.c:4:36: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
4 | if(i[4]>10||i[0]==i[1]||i[1]==i[2])puts("YES");else puts("NO");
| ^~~~
main.c:1:1: note: include ‘<stdio.h>’ or provide a declaration of ‘puts’
+++ |+#include <stdio.h>
1 | char i[4];
/usr/bin/ld: /tmp/ccFHBVG1.o: in function `main':
main.c:(.text.startup+0x12): 警告: the `gets' function is dangerous and should not be used.
ソースコード
char i[4];
int main(){
gets(gets(i));
if(i[4]>10||i[0]==i[1]||i[1]==i[2])puts("YES");else puts("NO");
return 0;
}
testestest