結果
問題 |
No.290 1010
|
ユーザー |
👑 ![]() |
提出日時 | 2015-10-17 22:07:18 |
言語 | C90 (gcc 12.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 109 bytes |
コンパイル時間 | 222 ms |
コンパイル使用メモリ | 18,688 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 10:59:39 |
合計ジャッジ時間 | 4,222 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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"); | ^~~~ 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/ccGGeHxy.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"); puts("NO"); return 0; }