結果
問題 |
No.290 1010
|
ユーザー |
👑 ![]() |
提出日時 | 2015-10-17 22:10:39 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 113 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 19,328 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-22 11:00:00 |
合計ジャッジ時間 | 3,850 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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[3]>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 | int main(){ /usr/bin/ld: /tmp/ccmjkGOe.o: in function `main': main.c:(.text.startup+0x1e): 警告: the `gets' function is dangerous and should not be used.
ソースコード
int main(){ char i[4]; gets(gets(i)); if(i[3]>10||i[0]==i[1]||i[1]==i[2])puts("YES");else puts("NO"); return 0; }